LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Dual-booting with two separate hard drives (https://www.linuxquestions.org/questions/linux-general-1/dual-booting-with-two-separate-hard-drives-42434/)

leeman_s 01-22-2003 09:44 PM

Dual-booting with two separate hard drives
 
Most things I read for dual-booting is for dual-booting with only 1 hard drive. In my case I'm going to be installing on a second physical hard drive. How do I setup LILO to do this?

watashiwaotaku7 01-22-2003 09:54 PM

its really very easy the only difference really should be the label of the hdd in lilo.conf make sure you install to the mbr of the first


driveprompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
ignore-table
image=/boot/bzImage-2.4.20
label=linux
root=/dev/hdb5
initrd=/boot/initrd.img
append="quiet devfs=mount hdc=ide-scsi"
vga=788
read-only
image=/boot/vmlinuz
label=linux-nonfb
root=/dev/hda5
initrd=/boot/initrd.img
append="devfs=mount hdc=ide-scsi"
read-only
image=/boot/vmlinuz
label=failsafe
root=/dev/hda5
initrd=/boot/initrd.img
append="failsafe devfs=nomount hdc=ide-scsi"
read-only
other=/dev/hda1
label=windows
table=/dev/hda
other=/dev/fd0
label=floppy
unsafe

fstreed 01-22-2003 09:56 PM

I don't know what distro you are using but with SuSE or Mandrake you just tell it to install LILO in the MBR and it will automatically install it on the first hard drive.

rnturn 01-22-2003 11:16 PM

Re: Dual-booting with two separate hard drives
 
Quote:

Originally posted by leeman_s
I'm going to be installing on a second physical hard drive. How do I setup LILO to do this?
Make sure there's a `stanza' in your lilo.conf that contains the line:

root=/dev/hdb (or whatever the second drive is called)

and the appropriate line for specifying the name of the kernel file.

I use this on a couple of system. Works like a charm. You can boot off the third drive if you like as well, etc. (I boot Linux from /dev/sdc, for example.)


All times are GMT -5. The time now is 10:42 PM.