I use Ubuntu as my primary operating system. Because I needed Visual Studio for college, I also installed Windows 7 on the same hard-drive.
To be able to access files on the Linux partition, I installed a little program called Ext2Fsd. Unfortunately, it wasn’t updated to work with Ext4 partitions so, yesterday, I decided to uninstall it. After restarting the machine, GRUB wouldn’t load; the partition table was busted.
This is the process I went through to make everything go back to normal:
Deleting GRUB
- Get a Windows 7 .iso image
- Burn it to a USB stick using Windows USB/DVD Tool
- Boot from the stick drive
- Choose “Repair Windows”
- In the Command Promt, type
Bootrec.exe /FixMbr
At this point, I was able to boot Windows. In hindsight, I could have skipped this part completely.
Rebuilding the partition table
- Get an Ubuntu 10.04 .iso image
- Burn it to a USB stick using UNetbootin
- Boot from the stick drive
- Recover Ubuntu partition using gpart
- Re-install Grub
In hindsight, I could have ran gpart directly under Windows.
Anyway, back to work…