LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 04-11-2004, 11:51 AM   #1
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Rep: Reputation: 30
Question [debian]lilo.conf


Hello
I have Linux Mandrake on my pc.I wanted to add debian to it so i installed it.But now i want to change my lilo.conf so i can start my debian en mandrake on my debian lilo.After some strugling with the script i don't have any warnings and errors.
But the problem is, i cant start my mandrake.I can't select an os, it doesn't waits for an key and it starts after about a second but i set my delay to 100(10 seconds if im right).

Here's my lilo.conf:

PHP Code:
lba32
boot
="/dev/hda1"
message = /boot/boot_message.txt
prompt
timeout
="100"

change-rules
reset

vga
="791"

image="/vmlinuz"
root="/dev/hda1"
label="Mandrake"
read-only

other
=/dev/hda4
label
="Debian"
image="/dev/hda4"
root="/dev/hda4" 
Could anyone please help me?
thanx Hylke
 
Old 04-11-2004, 12:04 PM   #2
nalg0rath
Member
 
Registered: Feb 2004
Location: Stockholm, Sweden.
Distribution: Gentoo Linux
Posts: 30

Rep: Reputation: 15
I don't know if this will make any difference but ty to edit the line:
'timeout="100"'
to
'timeout 100'

That is how i have it in my grub.conf...
 
Old 04-11-2004, 12:06 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
Please try to post in the correct forum. This forum is for member success stories and not for problems.

Moved to Linux-Newbie.

Did you run (as root) /sbin/lilo after you made the changes?

Welcome to LQ
 
Old 04-11-2004, 12:36 PM   #4
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Original Poster
Rep: Reputation: 30
Thanx for the replies.
The " and the " removing didn't helped.

I runned lilo(as root) evry time i've changed my lilo.conf so i don't think that's the problem.Any suggestions what todo?
hylke
 
Old 04-11-2004, 02:54 PM   #5
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
You probably have to add delay

From the lilo.conf manpage

Code:
delay=tsecs
  Specifies the number of tenths of a second the boot
  loader  should wait before booting the first image.
  This is useful on  systems  that  immediately  boot
  from  the  hard  disk  after enabling the keyboard.
  The boot loader doesn't wait if `delay' is  omitted
  or is set to zero.
 
Old 04-11-2004, 03:06 PM   #6
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Original Poster
Rep: Reputation: 30
I added that (delay=100) but it still starts immediatly.Does anyone have some suggestions how i can fix it(without reinstalling my debian).
thanx Hylke
 
Old 04-11-2004, 11:24 PM   #7
emetib
Member
 
Registered: Feb 2003
Posts: 482

Rep: Reputation: 33
is this your deb or mdk lilo? what do you have written to the mbr of your disk?
i would put your lilo to the mbr boot=/dev/hda, and then if you want your system to boot to one or the other by default, add default="the label you want". other than those suggestions i dont' see anything wrong with the conf file.

rerun /sbin/lilo and give it a shot.

good luck.
 
Old 04-12-2004, 01:01 AM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 69
Quote:
Originally posted by hylke
I added that (delay=100) but it still starts immediatly.Does anyone have some suggestions how i can fix it(without reinstalling my debian).
thanx Hylke
You may want to try installing lilo to the MBR instead of the / partition (boot=/dev/hda1) of Mandrake like you are doing now all the changes you are making are never read the lilo has to be written to the MBR to overwrite the one that is already there and still being used.

Code:
lba32 
boot=/dev/hda
root=/dev/hda4
delay=20
prompt 
timeout=100 
 
# Specifies the location of the map file
#
map=/boot/map

# Installs the specified file as the new boot sector
# You have the choice between: bmp, compat, menu and text
# Look in /boot/ and in lilo.conf(5) manpage for details
#
install=/boot/boot-menu.b


vga=791 

# append=""

default=Debian
 
image=/vmlinuz 
          label="Debian" 
          read-only 
 
other=/dev/hda1 
          label="Mandrake"
Now that should get you a lilo menu in the MBR of hda so that you will be able to choose between Debian and Mandrake using this as the lilo.conf in Debian. You would now have to mount the Mandrake install while still booted in Debian mount /dev/hda1 /mnt then vi /mnt/etc/lilo.conf and assuming that the Mandrake lilo worked before the Debian install change the boot=/dev/hda to boot=/dev/hda1 next chroot /mnt/ /sbin/lilo -b /dev/hda1 -v to write the Mandrake lilo to Mandrake's / partition, reboot and if I have not left anything out you should be able to boot either Debian or Mandrake. When you choose the Mandrake depending on how the lilo is setup there you can get a second lilo screen if it was already configured to display one if not then it would be a boot straight to Mandrake except for any delay that is set in it's lilo.conf.


BTW. Before you do any of this though you have made and tested a Debian boot disk?
 
Old 04-12-2004, 01:11 AM   #9
chubby tubby
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
lilo.conf

Editing Lilo to boot multiple Linux partitions

If for example you want to run Windows, Mandrake, Xandros and Debian on your computer, you will have to set up lilo in the following way.

The reason for this is because every lilo will have a different "append" statement in the lilo.conf file. This could result in having problems with your cdrom drives or even booting up the wrong kernel for your Linux.

Example: Windows = Hda1
Debian = Hda5
Swap = Hda6
Xandros = Hda7
Mandrake=Hda8

1st: Edit Mandrake lilo.conf. This will be found in "/etc/lilo.conf" .

Boot = Hda8

Don't forget to type "lilo" at a console as root.

2nd: Edit Xandros lilo.conf.

Boot = Hda7

Type "lilo" at a console as root.

3rd: Edit Debian lilo.conf.

Other = Hda8
Label = Mandrake
Default = Mandrake

Other = Hda7
Label = Xandros
Default = Xandros

Then run lilo at a console as root and reboot your computer.
 
Old 04-12-2004, 05:10 AM   #10
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Original Poster
Rep: Reputation: 30
One small problem:
I can't get to my mandrake.I dont have a floppy to start my mandrake partition.When i mounted my mandrake partition on my debian and then started lilo(/mnt/mandrake/sbin/lilo) it cant find his modules because its looking in the wrond folder(my debian folders and not in my mandrake folders).So i cant start lilo.
Any suggestions?
thanx hylke
 
Old 04-12-2004, 09:40 AM   #11
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Original Poster
Rep: Reputation: 30
B.T.W. Where can i found on my lilo partition a program to make a boot floppy?
thanx Hylke
 
Old 04-12-2004, 03:20 PM   #12
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Original Poster
Rep: Reputation: 30
Isn't there anyone who knows where i can find it?
 
Old 04-12-2004, 05:11 PM   #13
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 69
Quote:
Originally posted by hylke
B.T.W. Where can i found on my lilo partition a program to make a boot floppy?
thanx Hylke
mkboot should do it in Debian what is the exact error you get when you run the chroot command cut'n'paste it here if you can.
 
Old 04-12-2004, 11:42 PM   #14
emetib
Member
 
Registered: Feb 2003
Posts: 482

Rep: Reputation: 33
to get to your mdk, drop your first disk in and reboot. when it asks about install or other options, hit F1. look through the list and tell it to put your lilo back in. once it's in you can boot into mdk and reload the lilo.conf how you want it. make sure that you tell it to have it on the mbr.

/sbin/lilo -b /dev/hda

make sure that you change it to how you want it before you run /sbin/lilo or you will have to do it once again. you could also put it on a floppy if you want.

mkbootdisk
that's in mdk. format the disk first.

cheers.
 
Old 04-13-2004, 12:19 PM   #15
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Original Poster
Rep: Reputation: 30
Thanx for all your supprt.But happutuxes way worked.Thank you all verry much.
Hylke
 
  


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
Lilo.conf when using Slackware and Debian Menestrel Linux - General 5 06-14-2005 05:53 PM
lilo.conf and lilo.conf.anaconda difference blackzone Linux - General 1 07-06-2004 04:15 AM
lilo.conf.anaconda v. lilo.conf rbaird2001 Red Hat 1 04-01-2004 01:16 PM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 09:22 PM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 04:53 PM


All times are GMT -5. The time now is 10:32 AM.

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