On Wednesday 05 Oct 2011 16:32:10 Lavender wrote: > The configuration of win kernel in grub.conf is like below: > > rootnoverify (hd0,0) > makeactive > chainloader +1
Assuming that your MSWindows OS is on the first partition of the first (master) disk then the above is correct and grub should boot it fine; i.e. MSWindows is on /dev/sda1 > It worked yesterday , but after I rebuilding grub software, it can't work. > I don't know why, it still can boot gentoo kernel, I am confused,because > grub only can do operations to MBR, it can not influence contents on > windows partition. This is not entirely correct. GRUB will write its boot code where-ever *you* tell it to write it ... For example if you installed it on MSWindows' partition - instead of the disk MBR - you will most likely not be able to boot MSWindows! This is because you have overwritten the partition table with GRUB's code and GRUB cannot natively boot MSWindows. If for example you ran: grub-install /dev/sda1 instead of the correct stanza of: grub-install /dev/sda you would have written GRUB on the wrong place, the first partition boot record, instead of the disk's Master Boot Record. Of course your old GRUB code in the MBR is still there and it happily boots Linux. > I also tried boot manually in grub command interface, but after showing > "load stage2" it goes back to grub > .... I'm gonna pissed..... I have > many important things in windows system, will someone figure it out? Calm down. Your data is still there. Just the partition table has been overwritten - if indeed you typed the wrong device as I suspect above. So the command you need is fixboot and you need to run this from a MSWindows installation CD/USB stick on the first partition. Have a look on the Internet for more details on the fixboot command and its modern equivalent (if you're running Windows7). Also have a look on the Internet for MSWindows CDs or USB sticks to be able to run the command if you don't have one handy. HTH. -- Regards, Mick
signature.asc
Description: This is a digitally signed message part.