Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-13-2005, 02:31 PM   #1
LQ Newbie
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
LILO booting probem with 2 partitions.


I'm new to Linux and I have some problems with lilo. I have 2 slackware partitions (one for testing and the other one for doing serious stuff) on a 40GB hard drive on my Laptop and I want to be able to boot on both.

The problem I have is, only the partiton which is the current root and from where I try to install lilo will work the other one will boot, but during startup, many programs like modprobe, mount, cardmgr, will complain that files are missing (No such files or directory) and the computer will stop booting.

Looks like an access path problem to me, but the 'root' variables in my lilo.conf seems to be ok. I've read the man pages for lilo.conf and the user.tex but didn't find anything very useful for my problem.

By the way, what program is use to read .tex document on unix system? I try tex and latex but got many errors so I ended with a text editor and found many programing codes with the text.

Hmmmm... so much to learn when you start on a new system! :-)

Here is my lilo.conf:


boot = /dev/hda
timeout = 50
vga = 773

image = /boot/vmlinuz
root = /dev/hda3
label = slackware_main

image = /boot/vmlinuz
root = /dev/hda5
label = slackware_test


/dev/hda3 = 6GB primary type partition
/dev/hda6 = 6GB logical type partition

My Setup:

40GB Western Digital HD
HP P3 700MHz Pavilion Laptop
256 MB RAM

Thanks for any help.

Old 09-13-2005, 03:13 PM   #2
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I believe in your post hda5 is the 2nd Slackware but you put hda6 in one of the line
telling us its size.

One of the way you can try is to replicate the boot loader in hda5.

You do this by mounting hda5 after booting to hda3, log in as root, and click terminal mode. Then type

mkdir /mnt/hda5
mount /dev/hda5 /mnt/hda5
chroot /mnt/hda5

now you are inside hda5 system so type

lil -b /dev/hda5

This should refresh Lilo in the root partition of hda5 and you will be told of any problem enountered by Lilo.

Lilo does not check your files. Your description would suggest the kernel in hda5 is in trouble to me.
Old 09-15-2005, 08:15 AM   #3
LQ Newbie
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0

Oops! Sorry for the /dev/hda6 ref, my mistake.

Ok thank you for the reply, but I solved my problem soon after my first post by mounting hda5 partition and replace image=/boot/vmlinuz in my lilo.conf for image=/mnt/hda5/boot/vmlinuz.

I think the problem with image=/boot/vmlinuz is when I install lilo, I had hda3 as root and the same kernel was linked for both partition, obviously the kernel from the root partition. Not good! :-)

Now everything is working perfectly I have my drive with 6 partitions on it and I can boot msdos, win2k and 2 linux distros with the lilo boot loader.

I have to say that I like your answer its a very good tip if you want to install lilo for other systems than the root.



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
lilo - partitions broken ebil Linux - Software 3 11-02-2004 09:04 PM
[SOLVED] lilo boot of two partitions frankzen Slackware 3 10-16-2004 11:30 PM
Will LILO handle 15 partitions? dufferin Slackware 15 12-01-2003 12:45 PM
LILO: LILO lost upon booting. Nevchift Mandriva 3 09-16-2003 07:21 AM
Three O/S's, Partitions, and Lilo jbboulder Linux - Newbie 2 11-28-2001 02:05 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:04 AM.

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