LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-08-2003, 08:19 PM   #1
General_Tso
Member
 
Registered: Jan 2003
Location: New York, NY, USA
Distribution: Mac OS X (10.4.6), Ubuntu 6.06
Posts: 183

Rep: Reputation: 30
GRUB: Booting RH9 and Debian


Hey folks.

This should be an easy one... I googled the hell out of this issue and looked around here without any luck, but I'm sure this has been touched on before. Sorry for the redundant post, ahead of time.

I have a desktop running two hard drives. I installed Debian on the first one (a mix of Sarge and Sid with a custom kernel 2.4.21.030708) where hda1 is /boot, hda2 is swap, hda3 is /, and hda4 is /home. I installed RH9 on the second one (kernel 2.4.20-8) where hdb1 is /boot, hdb2 is /, hdb3 is swap, and hdb4 is /home.

I installed Debian first with no bootloader except on a bootdisk, and then I installed RH9 hoping that GRUB detect everything. I added "Debian GNU/Linux" where hda3 was selected partition to boot. However, when I choose Debian to boot at startup, I get the error:

Quote:
Booting "Debian GNU/Linux"

rootnoverify (hd1,2)
chainloader +1

Error 13: Invalid or unsupported executible format.
If need be, I'll post the grub.conf file. I'm sure there is a simple solution, but I didn't want to monkey with it any more after I've gotten my desktop almost completely like I like it.

Thanks!

--GT

[Edit: Incorrect "hda" replaced with "hdb."]

Last edited by General_Tso; 07-08-2003 at 10:16 PM.
 
Old 07-08-2003, 09:02 PM   #2
asc3ndant
LQ Newbie
 
Registered: Mar 2003
Posts: 28

Rep: Reputation: 15
post your grub.conf file....
and how can both drives be named hda?

in the grub.conf file you just need to specify two separate kernels that can be booted on the two separate drives (and the root fs on each)...

also, where is grub located, mbr or some other partition...

grub.conf should look like:

...
kernel (hd0,0)/bzImage root=/dev/hda3 ... other kernel args
kernel (hd1,0)/vmlinuz root=/dev/hdb3 ... other kernel args
...

where hda = drive with debian, and hdb = drive with rh, and bzImage is the kernel you compiled and vmlinuz-2.4.20-8 is the kernel anaconda gave you in rh.

post your grub.conf file for more help
 
Old 07-08-2003, 10:21 PM   #3
General_Tso
Member
 
Registered: Jan 2003
Location: New York, NY, USA
Distribution: Mac OS X (10.4.6), Ubuntu 6.06
Posts: 183

Original Poster
Rep: Reputation: 30
asc3ndant,

You were right. RH9 was on hdb--sorry for the confusion. Also, GRUB was installed on the MBR. Here is grub.conf.

Quote:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdb2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
password --md5 [omitted]
title Red Hat Linux (2.4.20-8)
root (hd1,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.20-8.img
title Debian GNU/Linux
rootnoverify (hd1,2)
chainloader +1
Thanks!

--GT
 
Old 07-10-2003, 10:00 AM   #4
General_Tso
Member
 
Registered: Jan 2003
Location: New York, NY, USA
Distribution: Mac OS X (10.4.6), Ubuntu 6.06
Posts: 183

Original Poster
Rep: Reputation: 30
Hey folks:

I made the following changes to my bootloader after screwing around with it for a while and I managed to get Debian to boot. However, when I try apt-get update or apt-get install, all the sources "do something wicked," or something to that affect. I think I messed up my permissions somehow when Debian boots by omitting something in GRUB--but your guess is as good as mine. Does anyone have any ideas? I'm stumped.

--GT

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdb2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
password --md5 [omitted]
title Red Hat Linux (2.4.20-8)
root (hd1,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.20-8.img
title Debian GNU/Linux
root (hd0,0)
kernel /vmlinuz-2.4.21.030708
 
Old 07-12-2003, 10:24 AM   #5
General_Tso
Member
 
Registered: Jan 2003
Location: New York, NY, USA
Distribution: Mac OS X (10.4.6), Ubuntu 6.06
Posts: 183

Original Poster
Rep: Reputation: 30
Thread moved here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rh9 debian migration grub question virgin Linux - Newbie 1 05-13-2005 04:50 PM
GRUB stalls on RH9 dual booting XP paul1892 Linux - Newbie 3 01-02-2005 08:52 AM
LILO/GRUB for dual booting Gentoo and Debian. rmanocha Linux - Software 2 02-22-2004 01:23 PM
Booting from Grub XP/RH9 hoffman Linux - Newbie 4 11-11-2003 09:41 PM
Dual Booting Debian w/ RH9 General_Tso Debian 9 07-19-2003 06:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:01 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration