Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
11-08-2009, 09:11 AM
|
#16
|
Member
Registered: May 2009
Location: London
Distribution: Xubuntu 14.04
Posts: 49
Original Poster
Rep:
|
Quote:
Originally Posted by thorkelljarl
|
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
|
|
|
11-08-2009, 09:36 AM
|
#17
|
Member
Registered: Sep 2009
Location: Wirral, UK
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.
|
|
|
11-08-2009, 09:51 AM
|
#18
|
Member
Registered: May 2009
Location: London
Distribution: Xubuntu 14.04
Posts: 49
Original Poster
Rep:
|
Quote:
Originally Posted by JamesChamberlain
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?
|
|
|
11-08-2009, 09:53 AM
|
#19
|
Member
Registered: Sep 2009
Location: Wirral, UK
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 09:56 AM.
|
|
|
11-08-2009, 01:28 PM
|
#20
|
LQ Veteran
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
|
Quote:
Originally Posted by JamesChamberlain
Windows only, from what i think.
|
If you have grub installed in the linux distro partition then you can chainload that partition.
Here is a link to a tutorial where the author chainloaded 145 distros
http://www.justlinux.com/forum/showt...hreadid=147959
|
|
|
11-08-2009, 03:40 PM
|
#21
|
Member
Registered: May 2009
Location: London
Distribution: Xubuntu 14.04
Posts: 49
Original Poster
Rep:
|
Quote:
Originally Posted by Larry Webb
|
Thanks for the link.
|
|
|
All times are GMT -5. The time now is 11:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|