LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-22-2005, 10:44 PM   #1
darkangel29
Member
 
Registered: Nov 2004
Location: Puerto Rico
Distribution: Ubuntu 10.04
Posts: 121

Rep: Reputation: 15
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??

Last edited by darkangel29; 07-22-2005 at 10:45 PM.
 
Old 07-22-2005, 10:55 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 47
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.
 
Old 07-22-2005, 11:30 PM   #3
darkangel29
Member
 
Registered: Nov 2004
Location: Puerto Rico
Distribution: Ubuntu 10.04
Posts: 121

Original Poster
Rep: Reputation: 15
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.
 
Old 07-22-2005, 11:56 PM   #4
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 47
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?
 
Old 07-23-2005, 12:28 AM   #5
darkangel29
Member
 
Registered: Nov 2004
Location: Puerto Rico
Distribution: Ubuntu 10.04
Posts: 121

Original Poster
Rep: Reputation: 15
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

Last edited by darkangel29; 07-23-2005 at 12:34 AM.
 
Old 07-23-2005, 09:56 AM   #6
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 47
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 02:15 PM
Upgraded kernel, lilo.conf, didn't run /sbin/lilo dtashima Linux - Newbie 4 10-18-2004 12:21 PM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 06:00 PM
new kernel causes lilo crash; /sbin/lilo = Warning: device 0x0305 exceeds 1024 cylind dandysf Linux - Software 0 08-26-2003 05:50 PM
Made a bootdisk with RedHat 7.1 to boot: Gave me SYSLINUX, not LILO:Want to use LILO Colonel Panic Linux - Software 0 08-17-2001 07:21 PM


All times are GMT -5. The time now is 08:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration