Linux - NewbieThis 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.
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.
I'm trying to run a dual boot Debian and Red Hat machine -- without much success. What I have managed to achieve is the following:
On boot -- LILO sees and loads Debian.
I've loaded the Red Hat onto the machine without a boot loader. Instead I created a boot disk.
Booting into Red Hat with the boot disk works great.
I kept the partitioning as simple as I could:
/dev/hda1 is set as bootable and is the Debian / drive
/dev/hda2 is swap
/dev/hda3 is also set as bootable and is the Redhat / drive
I guess the short version of my question is: "Where on the disk do I copy the contents of the Red Hat boot floppy? Once I've done that, I think I can properly configure the lilo.conf file.
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Rep:
You may not need to copy the contents of the RedHat boot floppy. You may just need to edit /etc/lilo.conf so that for a RedHat boot it points at /dev/hda3 as its /root.
Post your /etc/lilo.conf file and let us take a look.
Originally posted by hpladd I'm trying to run a dual boot Debian and Red Hat machine -- without much success. What I have managed to achieve is the following:
On boot -- LILO sees and loads Debian.
I've loaded the Red Hat onto the machine without a boot loader. Instead I created a boot disk.
Booting into Red Hat with the boot disk works great.
I kept the partitioning as simple as I could:
/dev/hda1 is set as bootable and is the Debian / drive
/dev/hda2 is swap
/dev/hda3 is also set as bootable and is the Redhat / drive
I guess the short version of my question is: "Where on the disk do I copy the contents of the Red Hat boot floppy? Once I've done that, I think I can properly configure the lilo.conf file.
you don't need to copy the boot disk contents, you just need to add an entry to your debian lilo.conf pointing to red hat and then run lilo.
example:
image = /boot/redhat-linux # (or whatever is the name of the kernel)
label = redhat
root=/dev/hda3
read-only
then run lilo as root (# lilo).
p.s. if red hat has its own boot directory, you may need to mount that somewhere first and point the image there to run lilo, e.g. mount /dev/hda3 /mnt/hda3, then for the image use /mnt/hda3/boot/kernel-name. or you might just be able to use the same /boot directly as debian, as long as your red hat kernel is there and it's a different kernel name. i'm not sure, but that might work.
Last edited by synaptical; 06-10-2005 at 04:44 PM.
Thanks, the lilo.conf file is surprisingly large. Debian places all sorts of comments in there. I'll try and sort the wheat from the chaff and post it.
In the mean time, I think that I've almost got it.
Then I can lilo w/out errors -- IF I have mounted the /dev/hda3 to the Debian /home/preston directory.
Of course when I reboot the hda3 mount doesn't occurr and lilo doesn't see the Red Hat Kernel.
Thanks you
hmm, i'll bet it's something to do with the initrd. i never used an initrd, and doing the mount thing always worked for me.
if that is indeed the problem, i guess the best (easiest ) thing to do would be to just make a subdirectory of your hda1 /boot directory and put your redhat boot files in there. then just point lilo there in the image and initrd lines. although i don't see why that should work and not the other partition.
do you use initrd for your debian install?
p.s. again: i would advise against mounting that stuff in your /home directory. who knows what kind of permissions things might also be screwing things up. i would strongly suggest making a directory in /mnt, calling it something like /mnt/hda3 or /mnt/redhat. then point lilo there, and after mounting the partition run lilo. it seems to me that should work.
Last edited by synaptical; 06-10-2005 at 08:16 PM.
Sounds like your configuring lilo from Debian and using the /boot partition from debian. (correct me if I'm wrong.)
Boot to Debian, then make this directory: /boot/RH/
Mount the /boot directory from the RH install somewhere, and copy the kernel image and initrd for your Red Hat install into the /boot/RH/ directory in the Debian system.
Add the following entry to /etc/lilo.conf in the Debian system:
# Red Hat boot section
Image=/boot/RH/vmlinux
initrd=/boot/RH/initrd-2.4.20-8.img
label=redhat
root=/dev/hda3
read-only
Tried all of the suggestions. I even tried copying the RH boot floppy's content to a directory of the debian partition -- no improvement, boots into Debian everytime.
Does lilo use relative addresses? Is it possible that moving the directories around has caused the th RH kernel to be lost , wrongly indexed, uhm dereferenced or whatever the term would be?
Rats, I can't help but think that just a few key strokes is going solve this. Again thanks all.
lilo.conf is below
Note:
/rh/rhb is the directory that contains the RH floppy's contents
/rh contains all of the Red Hat partition's /boot contents
# Red Hat on /dev/hda3:
image=/boot/rh/rhb/vmlinuz
label=redhat root=/dev/hda3
read-only
initrd=/boot/rh/rhb/initrd.img
if the boot floppy contents are the same as the /boot/rh directory, get rid of the rhb directory and keep it simple with just /boot/rh. i notice the debian kernel and initrd are in /, i think it does that by default, but it's probably better to have those in /boot, imho (don't forget to change lilo if you move them). it doesn't really matter, i just don't like having files in the root (/) filesystem.
Last edited by synaptical; 06-10-2005 at 10:23 PM.
Well I bodged it so badly that I all I could achieve was a kernel panic.
I reinstalled RH (this time with LILO) and then, I configured lilo utilizing the concepts learned here in this forum, and poof! I have a dual boot system.
Thanks again all.
Here's what's wierd -- no matter what inittab setting I use for Debian the machine it will not boot into graphical mode. I always have to "startx."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.