Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
|
|
12-03-2008, 05:34 AM
|
#1
|
Member
Registered: Sep 2005
Location: UK
Distribution: Ubuntu 12.04 LTS
Posts: 76
Rep:
|
Two distros, two GRUBS, can't boot the other distro
Hi
Running OpenSUSE as a main distro, with GRUB on the MBR. (root at hda5)
Had 2 unused partitions, onto which I have installed /home and root (at hda6) of Arch Linux (earlier Debian). When installing, I put the GRUB to the root partition (hda6).
To the openSUSE grub at MBR, I have added a new chainloader option, which, when selected, takes me to the Arch Linux GRUB at hda6.
Now, I haven't been able to actually boot Arch, nor Debian earlier with this same setting. Neither from the Arch, nor the openSUSE GRUB (even by editing the GRUBS to point to the correct kernel and initrd's.
Menu.lst of the Arch GRUB:
-------------------------------
# (0) Arch Linux
title Arch Linux
root DEVICE NOT FOUND
kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/4652b23e-b2a4-4a44-82cb-be9709c4de7f ro
initrd /boot/kernel26.img
--------------------------------
/boot of Arch:
--------------------------------
config-2.6.26-1-amd64
grub
initrd.img-2.6.26-1-amd64
System.map-2.6.26-1-amd64
vmlinuz-2.6.26-1-amd64
--------------------
Menu.lst of SUSE:
--------------------------------------
title openSUSE 11.0 - 2.6.25.18-0.2
root (hd1,4)
kernel /boot/vmlinuz-2.6.25.18-0.2-default root=/dev/disk/by-id/scsi-SATA_IC35L020AVER07-_SVPTVF08599-part5 resume=/dev/sda1 splash=silent showopts vga=0x317
initrd /boot/initrd-2.6.25.18-0.2-default
title Arch chainloader
rootnoverify (hd1,4)
chainloader (hd1,5)+1
title Arch direct
root (hd1,4)
kernel /boot/vmlinuz root=/dev/disk/by-id/scsi-SATA_IC35L020AVER07-_SVPTVF08599-part6
initrd /boot/kernel26.img
-------------------------------------
Note the "DEVICE NOT FOUND" in GRUB. I have edited it to point to correct hd(1,5). Note SUSE is hd(1,4)
Also note the last line of SUSE GRUB "Arch direct". I have added it using YAST, and while pointing it to the correct device (hda6 = hd(1,6)), Yast assigned it hd(1,4), and even if I edit it manually in grub to be hd(1,6), I can't boot to Arch.
The GRUBs do not give consistent error messages either. Sometimes it's "file not found", sometimes something else.
I am totally puzzled by this. Suggestions greatly appreciated..!
|
|
|
12-03-2008, 06:10 AM
|
#2
|
Member
Registered: Nov 2007
Posts: 62
Rep:
|
Do you have several HD's?
Post the output of fdisk -lu or maybe a problem with device.map
|
|
|
12-03-2008, 06:58 AM
|
#3
|
Member
Registered: Sep 2005
Location: UK
Distribution: Ubuntu 12.04 LTS
Posts: 76
Original Poster
Rep:
|
fdisk -lu
Disk /dev/sda: 20.5 GB, 20576747520 bytes
255 heads, 63 sectors/track, 2501 cylinders, total 40188960 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x3cc40730
Device Boot Start End Blocks Id System
/dev/sda1 * 63 1028159 514048+ 82 Linux swap / Solaris
/dev/sda2 1028160 40178564 19575202+ 5 Extended
/dev/sda5 1028223 15454529 7213153+ 83 Linux
/dev/sda6 15454593 25768259 5156833+ 83 Linux
/dev/sda7 25768323 38074049 6152863+ 83 Linux
/dev/sda8 38074113 40178564 1052226 83 Linux
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x4eddbdf2
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 124086059 62042998+ 83 Linux
/dev/sdb2 124086060 156296384 16105162+ 5 Extended
/dev/sdb5 124086123 156296384 16105131 83 Linux
Disk /dev/sdc: 262 MB, 262144000 bytes
16 heads, 32 sectors/track, 1000 cylinders, total 512000 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x91f72d24
Device Boot Start End Blocks Id System
/dev/sdc1 * 32 511999 255984 6 FAT16
|
|
|
12-03-2008, 07:11 AM
|
#4
|
Member
Registered: Nov 2007
Posts: 62
Rep:
|
Quote:
Originally Posted by wanderingmind
Note the "DEVICE NOT FOUND" in GRUB. I have edited it to point to correct hd(1,5). Note SUSE is hd(1,4)
|
hd(1,5) is a grub notation : stands for : 6th partition on second hd
(Counting in grub starts at 0 !
hda is mostly hd(0
But this depends on your device.map
post your device.map
|
|
|
12-03-2008, 07:18 AM
|
#5
|
Member
Registered: Sep 2005
Location: UK
Distribution: Ubuntu 12.04 LTS
Posts: 76
Original Poster
Rep:
|
device.map says
(hd1) /dev/sda
(hd0) /dev/sdb
I has wondering a bit earlier why suse is on hd(1,4) since it's the first hd.
|
|
|
12-03-2008, 07:24 AM
|
#6
|
Member
Registered: Sep 2005
Location: UK
Distribution: Ubuntu 12.04 LTS
Posts: 76
Original Poster
Rep:
|
Quote:
Originally Posted by chipotphe
hd(1,5) is a grub notation : stands for : 6th partition on second hd
|
Yes, I'm aware of this. I think I have tried the correct options in any case.
|
|
|
12-03-2008, 08:07 AM
|
#7
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
device(s).map determines the hd# value (in theory). A little odd that it's out of order though.
Any reason you have (hd1,4) for rootnoverify and (hd1,5) for chainloader? Shouldn't they match?
|
|
|
12-03-2008, 08:22 AM
|
#8
|
Member
Registered: Sep 2005
Location: UK
Distribution: Ubuntu 12.04 LTS
Posts: 76
Original Poster
Rep:
|
I think I have found the source of confusion..
The device.map in the second (Arch) GRUB is
(hd0) /dev/hda
(hd1) /dev/hdd
So the device maps of the two grubs don't match. I can't boot right now to do experiments but will try later today if it leads to a solution.
Shadow7: I don't know - perhaps they should!
|
|
|
12-03-2008, 09:39 PM
|
#9
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
You could always use the command mode of grub. "c" instead of selecting a menu option. Type in the menu.lst entry manually. It has help and tab completion so you should be able to notice what grub is trying to do, versus what you have in your configuration. And adjust accordingly. Or not.
|
|
|
All times are GMT -5. The time now is 07:33 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
|
|