LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   lilo (https://www.linuxquestions.org/questions/linux-newbie-8/lilo-345870/)

darkangel29 07-22-2005 09:44 PM

LILO
 
Im tryin to use linux to boot windows and mandrake form 1st hd and college linux from 2hd. I can only boot windows and mandrake college just give me some error msg. This is my lilo.conf:
default="WindowsXP_home"
boot=/dev/hda
map=/boot/map
keytable=/boot/us.klt
prompt
nowarn
timeout=150
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz-2.6.11-6mdk
label="Mandrake"
root=/dev/hda3
initrd=/boot/initrd.img
append="splash=silent acpi=ht resume=/dev/hda4"
vga=788
read-only
other=/dev/hda1
label="WindowsXP_home"
image=/boot/vmlinuz
label="failsafe"
root=/dev/hda3
initrd=/boot/initrd.img
append="failsafe splash=silent acpi=ht resume=/dev/hda4 devfs=nomount"
read-only
other= /dev/hdb
label="College_Linux"
map-drive= 0x80
to = 0x81
map-drive= 0x81
to = 0x80
image=/boot/vmlinuz
root=/dev/hdb2
initrd=/boot/initrd.img
read-only
Can anybody help me out??

synaptical 07-22-2005 09:55 PM

Re: LILO
 
Quote:

Originally posted by darkangel29

other=/dev/hda1
label="WindowsXP_home"

image=/boot/vmlinuz
label="failsafe"
root=/dev/hda3
initrd=/boot/initrd.img
append="failsafe splash=silent acpi=ht resume=/dev/hda4 devfs=nomount"
read-only

other= /dev/hdb <-- take this out
label="College_Linux"
map-drive= 0x80
to = 0x81
map-drive= 0x81
to = 0x80
image=/boot/vmlinuz
root=/dev/hdb2
initrd=/boot/initrd.img
read-only
Can anybody help me out??

take out that "other= /dev/hdb" line. i don't know about the map drive stuff, i would try without all that just to keep it simple. if it doesn't work you can always uncomment it again.

darkangel29 07-22-2005 10:30 PM

I try what you said but it just didnt work I think all I need is to make lilo look for the hd2 for college linux and not in hd1.

synaptical 07-22-2005 10:56 PM

try mounting your college linux partition and then pointing lilo there for the image. for example:

mkdir /mnt/hdb2
mount /dev/hdb2 /mnt/hdb2

then change the line in lilo to:

image=/mnt/hdb2/boot/vmlinuz

then run lilo.

possibly the "other=/dev/hdb" tells lilo to look there for the image, but i'm not sure. i don't recall ever using that when i booted 2 hard drives.

are you getting any errors when you write lilo? :confused:

darkangel29 07-22-2005 11:28 PM

I try that but it didn work. I think it just look in hda and I think i need the other=/dev/hdb or something similar in order for it to look in the hdb and not hda.
How can I do this? I don't received any error writing lilo.conf

synaptical 07-23-2005 08:56 AM

Quote:

Originally posted by darkangel29
I try that but it didn work. I think it just look in hda and I think i need the other=/dev/hdb or something similar in order for it to look in the hdb and not hda.
How can I do this? I don't received any error writing lilo.conf

sorry, i don't use initrd so i neglected to specify to also change that path. so mount the partition at /mnt/hdb2, and then use this in lilo.conf:

image=/mnt/hdb2/boot/vmlinuz
label="College_Linux"
root=/dev/hdb2
initrd=/mnt/hdb2/boot/initrd.img
read-only

don't forget to run lilo after you make the changes, and watch for errors or omissions. it should look like this:

# lilo
Added Mandrake
Added Windows_XP_home*
Added failsafe
Added College_Linux

also notice i took all that "map drive" out, but you can just use comment marks if you want. if this method works, you won't need that.

the boot=/dev/hda in the beginning tells lilo to write to the MBR of hda, and with the partition mounted i think lilo should be able to read what it needs to so it can then boot /dev/hdb (i'm assuming you're doing all this from mandrake). i don't *think* you need to write to MBR of hdb, because that would require you to change your BIOS settings each time you booted so it would know to boot from master or slave drive. so that doesn't really make sense, although that actually would be one way to do it that would probably work. it's not the best way, though, so try this first. gl, i hope it works b/c i'm running out of ideas. :p


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