Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I used the Fedora rescue utility which has restored my grub menu BUT there is now some confusion between the location of my /boot partition and the location specified in the grub.conf file.
According to linux the /boot partition is on /dev/sda6 and in the grub.conf file I have root(hd0,6) but this gives grub error 17 when I select linux from the grub menu, so I edited the location and changed it to root(hd0,5) and I could boot into linux.
The question now is do I just change the grub.conf file to root(hd0,5) permanently or is this an indication that something is still wrong?
My /grub/device.map file has
(fd0) /dev/fd0
(hd0) /dev/sda
Is this correct?
I don't want to change it and at some point in the future after installing a new kernel have to go through the same problems again.
Thanks
Jay
Distribution: Red Hat Enterprise Linux / Fedora 11
Posts: 47
Rep:
Quote:
Originally Posted by Jay88
I used the Fedora rescue utility which has restored my grub menu BUT there is now some confusion between the location of my /boot partition and the location specified in the grub.conf file.
According to linux the /boot partition is on /dev/sda6 and in the grub.conf file I have root(hd0,6) but this gives grub error 17 when I select linux from the grub menu, so I edited the location and changed it to root(hd0,5) and I could boot into linux.
The question now is do I just change the grub.conf file to root(hd0,5) permanently or is this an indication that something is still wrong?
My /grub/device.map file has
(fd0) /dev/fd0
(hd0) /dev/sda
Is this correct?
I don't want to change it and at some point in the future after installing a new kernel have to go through the same problems again.
Thanks
Jay
Setting to root (hd0,5) in grub.conf is fine. The reason they differ is that because linux will start your first partition as, for example sda1, whereas grub will see it as hd0,0, here you can see the difference.
Edit grub to hd0,5 permanently for the location of your kernel and initial ramdisk and youll be good to go.
Setting to root (hd0,5) in grub.conf is fine. The reason they differ is that because linux will start your first partition as, for example sda1, whereas grub will see it as hd0,0, here you can see the difference.
Edit grub to hd0,5 permanently for the location of your kernel and initial ramdisk and youll be good to go.
Ok thanks, I will do this it's just that I thought that before grub loads it runs some kind of 'chainloader+1' command so that it adds 1 to the value provided as the partition holding the boot files or is this only for booting windows?
Distribution: Red Hat Enterprise Linux / Fedora 11
Posts: 47
Rep:
Quote:
Originally Posted by Jay88
Ok thanks, I will do this it's just that I thought that before grub loads it runs some kind of 'chainloader+1' command so that it adds 1 to the value provided as the partition holding the boot files or is this only for booting windows?
Windows only, from what i think.
Last edited by JamesChamberlain; 11-08-2009 at 08:56 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.