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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
image = /boot/redhat-linux # (or whatever is the name of the kernel)
label = redhat
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 05:44 PM.
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.
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 09: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
# Red Hat on /dev/hda3:
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 11:23 PM.