On Fri, Mar 09, 2012 at 04:12:40PM +0800, 赵佳晖 wrote:
>    Hello , everyone , just now , i have installed gentoo from ubuntu 11.10
> , And when i install the grub with the command : grub-install --no-floppy
> /dev/sda . And when i reboot , i aware that i have
> 
> override my MBR.  And Now how can i edit my grub in the gentoo to boot my
> windows 7 on /dev/sda1 ?
> 
>    For my windows boot manager has been override , should i use a windows
> live CD , and go to DOS to execute the command : " fdisk /mbr " ,  after
> that ,add the ubuntu and gentoo to the windows
> 
>  boot manager ?
> 
>    Can i boot the windows 7 from GRUB dircetly?
> 
>  PS: my grub version in gentoo is : GNU GRUB 0.97

Windows has (should have in a standard install ;) its own 'boot loader'
in its partition, it usually only installs a simple 'select the active
partition and boot from that' loader to the MBR, so in 99% it is enough
to just add 

title Windows
rootnoverify (hd0,0)
chainloader +1
makeactive


to /boot/grub/grub.conf, change (hd0,0) to whatever your windows
partition is ( hd0,0 is /dev/sda1, in hdX,Y  X is the disk number
(sda -> 0, sdb ->1, ..), Y is the partition number, counted from 0, ie
sda4 -> hd0,3)


yoyo


Reply via email to