Linux - GeneralThis 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
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.
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.
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.
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.