LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 12-03-2008, 04:34 AM   #1
wanderingmind
Member
 
Registered: Sep 2005
Location: UK
Distribution: Ubuntu 12.04 LTS
Posts: 76

Rep: Reputation: 16
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..!
 
Old 12-03-2008, 05:10 AM   #2
chipotphe
Member
 
Registered: Nov 2007
Posts: 62

Rep: Reputation: 16
Do you have several HD's?

Post the output of fdisk -lu or maybe a problem with device.map
 
Old 12-03-2008, 05:58 AM   #3
wanderingmind
Member
 
Registered: Sep 2005
Location: UK
Distribution: Ubuntu 12.04 LTS
Posts: 76

Original Poster
Rep: Reputation: 16
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
 
Old 12-03-2008, 06:11 AM   #4
chipotphe
Member
 
Registered: Nov 2007
Posts: 62

Rep: Reputation: 16
Quote:
Originally Posted by wanderingmind View Post
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
 
Old 12-03-2008, 06:18 AM   #5
wanderingmind
Member
 
Registered: Sep 2005
Location: UK
Distribution: Ubuntu 12.04 LTS
Posts: 76

Original Poster
Rep: Reputation: 16
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.
 
Old 12-03-2008, 06:24 AM   #6
wanderingmind
Member
 
Registered: Sep 2005
Location: UK
Distribution: Ubuntu 12.04 LTS
Posts: 76

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by chipotphe View Post
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.
 
Old 12-03-2008, 07:07 AM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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?
 
Old 12-03-2008, 07:22 AM   #8
wanderingmind
Member
 
Registered: Sep 2005
Location: UK
Distribution: Ubuntu 12.04 LTS
Posts: 76

Original Poster
Rep: Reputation: 16
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!
 
Old 12-03-2008, 08:39 PM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy way to create distro? Any stripped to the WM distros? colinstu Linux - Distributions 2 05-25-2008 08:48 PM
How to switch Distros when a Distro is already installed? moving2linux Linux - Newbie 10 04-08-2008 01:18 PM
Two Grubs? And Windows partition problem after dual Linux install. baxam Linux - Newbie 4 06-10-2005 09:56 AM
Using distro specific applications in other distros webwolf70 Linux - Software 1 09-12-2004 07:43 PM
removing kernel entries in grubs tr3s Red Hat 7 09-03-2003 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration