With the imminent release of Windows 7, I decided to give it a try on my own machine. Windows 7 RTM (Release to Manufacturer) has already been released through MSDN, and as a UofT student I was able to grab my own copy through MSDNAA @ UofT.
A clean installation of Windows 7 is actually quite painless. The setup process is quite fast, and it installed most of the necessary drivers from the get-go.
However, you’ll run into a spot of trouble if you’re running a dual boot *nix <-> ‘doze box. Windows 7 will obliterate your GRUB and you’ll be able to boot into Windows only.
Well, that’s really no biggie as it happens with all Windows installations, not just 7. With a bit of Googling, I found a nice blog post that walks you through how to get GRUB back.
However, the instructions above assume that your new Windows partition is located at (hd0,0), and that might not actually be the case. For my own installation, my Windows partition was indeed installed in the harddrive’s first partition, but booting into the Windows option at the GRUB screen gave me a “BOOTMGR is missing” error. I tried to run the disk repair off of the original Windows 7 DVD, but that didn’t fix it.
After a bit of Googling and a bit of investigation on the disk partitions, I found out that Windows 7 makes two partitions when you first install it. If you fire up GParted, you’ll see that there is a small (1 – 8mb, the size varies) partition right before the actual Windows partition.
Because of this, you’ll need to modify the line root (hd0,0) under Windows in your GRUB menu.lst file to point to your actual partition, which would be at (hd0,1)! Or better yet, follow the instructions in the link and use the proper hdd partition reference so you don’t have to mess around with menu.lst.
5 Comments
This article is probably the best guide for it.
And it has pictures!!!
https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows
mmm, pictures, thanks dude
OK, im a noob on linux, go to the facts:
I installed first windows, then i try to install kubuntu 9.10 just for don’t having this problem. But the install of grub at mbr seems not effect, on rebooting, windows enter without the screen and options from grub.
if possible that windows uses other boot sector ? what’s happen ?
on using gparted, it shows me a lot of partitions: 2 of them are “unalocated”, one have 1 mb size, other have 7,02mb. One have taking my attention, is the hd(0,1), a exclusive partiotion requested by the windows instalation that in grub shows as boot, not the primary (hd0,0)
If possible to install grub at this partition ? how i can do this for grub menu appears and i can realy choose my system to start ?
@carlos
Okay so that’s exactly the problem with the new Windows 7 boot manager. Most people (like you and me) don’t _want_ to deal with GRUB, so they install Windows 7 first, then install Ubuntu or Kubuntu and let the installer sort it out. The problem with _that_ procedure is that the _existing_ GRUB installers point to the MAIN windows 7 partition, and not the super small 1mb boot partition.
So basically what u want to do is boot off of your Kubuntu LiveCD, and then in the terminal do something like:
Hope that works for you. Make sure u modify ur grub list too! Again, there’s quite a few guides out there that’ll help u, one from the post, and one from @Peter in the comments
Thanks!
One Trackback
[...] a previous post (Recovering GRUB After Installing Windows 7) I described a situation where GRUB would not be able to detect your Windows 7 boot partition after [...]