LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   changing default root in GRUB... (https://www.linuxquestions.org/questions/linux-software-2/changing-default-root-in-grub-636460/)

zero_cool666 04-19-2008 11:52 AM

changing default root in GRUB...
 
Hey .I have a dual boot system with vista and fedora 7.. wel i first instaled fedora 7 on my (hd0,7) drive and then i actualy removed a vista partition from partition table.. so wot hapened that my fedora 7 drive is now (hd0,6). my GRUB is in mbr.. the problem is that wen the system starts it gets me into the grub console (the grub.conf or menu.lst wont load)... then when i write the 'root' command it says (hd0,7) is my root.. so i have to change it by using 'root (hd0,6)' .. nd then by using the configfile command have to give GRUB the menu.lst file.. then it loads smoothly.. inside the grub.conf file the root is already set at (hd0,6)

Please tel me how can i change the the root location for GRUB so that it loads the grub.conf automatically from (hd0,6)..

Thanx

jailbait 04-19-2008 12:13 PM

Reinstall the MBR by using the grub-install command:

grub-install hd0

See:

man grub-install

------------------
Steve Stites


All times are GMT -5. The time now is 03:47 PM.