Grub 1.97 error 2
The dreaded GRUB error, dun dun dun. GRUB is a bootloader program capable of supporting multiple operating systems. In my case Ubuntu 9.10 and Windows XP. If you’ve ever set up a dual boot system you’ll be familiar with GRUB. If you’ve ever used a dual boot system for more than a month you’ll be familiar with GRUB’s error codes. In my case it was Error 2: 2 : Bad file or directory type.
My setup: I have 2 harddrives in my system. A 75gb Western Digital Raptor and a 500gb Western Digital standard SATA drive. The Raptor houses the Windows OS and it’s where I install any apps that normally take a long time to load. The 500GB drive is for everything else, including a second partition containing my Ubuntu file system and the GRUB loader.
Recently my graphics card began to go all stupid on me resulting in hard Windows crashes, this in turn caused file errors in the NTFS partition of my 500GB harddrive. And apparently glitches in the NTFS portion of your HDD can have an odd cascading effect that fucks up your GRUB loader, causing error 2. Normally the solution would be as simple as running Windows chkdsk at load time but since GRUB doesn’t load I can’t boot Windows directly. Additionally I didn’t have a Windows install disk handy to run a recovery console.
Just to be clear, the HDD isn’t failing. I made sure of that using Western Digital’s hard drive integrity tool. (Additionally you can try and let their tool repair the harddrive, it didn’t work for me.)
Enter Super Grub Disk. SGD is basically GRUB for idiots. It holds your hand through the entire process and is pretty good at fixing or rebuilding the GRUB loader in a semi-automated fashion. In my case I simply had it reset to the Windows boot loader. After I was able to verify and clean my harddrive I reloaded GRUB and away I went. Easy peasy.
