Jump to content

How to edit Lilo.conf?


Recommended Posts

:wall: I want to add some lines to Lilo.conf file in my Mandrake linux 10.0. Apparentlly Lilo in my system is lacking some lines that are preventing him from prompting the booting screen that shows the OS systems that are booting in my computer. I have windows XP and Mandrake linux 10. I need specifics on how to change permissions to access this file, also the commands I need to execute to perform this task, also where should I perform this task within my linux system, etc. Sorry for being so annoyance, I'm a complete newbie with just hours of experience in Linux. This is how Lilo.conf looks like in my system:

 

/etc/lilo.conf file :

 

boot=/dev/hda

map=/boot/map

VGA=NORMAL # Add line to set the resolution for the booting screen

default="linux-i686-up-4GB"

keytable=/boot/us.klt

PROMPT # Add line to ask Lilo to prompt the booting screen

nowarn

TIMEOUT=100 # Add line to force a delay before Lilo loads the default system ( Linux )

message=/boot/message

menu-scheme=wb:bw:wb:bw

image=/boot/vmlinuz

label="linux"

root=/dev/hda5

initrd=/boot/initrd.img

append="devfs=mount acpi=ht splash=silent"

vga=788

read-only

image=/boot/vmlinuz

label="linux-nonfb"

root=/dev/hda5

initrd=/boot/initrd.img

append="devfs=mount acpi=ht"

read-only

image=/boot/vmlinuz-i686-up-4GB

label="linux-i686-up-4GB"

root=/dev/hda5

initrd=/boot/initrd-i686-up-4GB.img

append="devfs=mount acpi=ht splash=silent"

read-only

image=/boot/vmlinuz-2.6.3-7mdk

label="263-7"

root=/dev/hda5

initrd=/boot/initrd-2.6.3-7mdk.img

append="devfs=mount acpi=ht splash=silent"

read-only

image=/boot/vmlinuz

label="failsafe"

root=/dev/hda5

initrd=/boot/initrd.img

append="failsafe acpi=ht devfs=nomount"

read-only

other=/dev/hda1

label="windows"

table=/dev/hda

other=/dev/hdb1

label="windows2"

table=/dev/hdb

map-drive=0x80

to=0x81

map-drive=0x81

to=0x80

other=/dev/fd0

label="floppy"

unsafe

 

Any suggestions are very welcome, Thank's

 

Javi

 

[moved from Installing Mandrake by spinynorman]

Link to comment
Share on other sites

From what I can see, everything looks ok in your lilo.conf file.

 

FYI, changing the permissions on this file is a bad idea. It's better to edit the file as root if you need to.

 

Open a terminal, type 'su' (no quotes) and hit enter

You will be prompted to enter the root password, enter it and press enter (the cursor will not move)

then type something like 'kwrite /etc/lilo.conf' (no quotes, assuming you're in KDE)

 

After you make any changes to this file, save it. Then in a console as root you need to type one of the following commands:

 

lilo

lilo -v

 

and hit enter. This will make lilo process the changes. It looks to me, though that everything is just fine in that file. the options for 'linux', 'linux-i686-up-4GB' and others will take you to Mandrake. The entry for 'windows' will boot to XP. I'm guessing the 'windows2' entry is a separate fat32 partition.

Link to comment
Share on other sites

Hi LiquidZoo, I was able to do the changes to my Lilo.conf successfully, thank's for your kind help. I saw for the first time the Lilo boot up screen and it doesn't look pretty. It shows all of this entries in the screen:

 

linux-i686-up-4GB ( apparently this one is to boot Mandrake Linux partition)

linux

linux nonfb

263-7

failsafe

windows ( Apparently this one is to boot Windows XP partition)

windows2

floppy

 

Do I need all this mess in that screen, or there is anything I can do to prevent Lilo from showing this entries in the booting screen. Also, Can I change the name Lilo display in this screen to make it more friendly to the user. The only ones I will like to keep is the ones for mandrake linux partiton and windows XP partition. The windows2 entry is a second ntfs hard drive I have in my machiine that I use for data storage.

 

Javi

Link to comment
Share on other sites

To change the name:

 

Edit the lilo.conf file and change what's in the label= parts. No spaces.

 

You can delete the other entries if you want, it would be better to comment them out, though. Just put a # at the begining of each line. Make sure you get all of them, though; and make sure you re-run lilo once you make the changes.

Link to comment
Share on other sites

Hi LiquidZoo,

Which entries should I keep showing on the screen and which ones should I comment out. And also can you show me how my lilo.conf whould looks like with the lines comments out ( # ) so I have a better idea in what to do and don't leave anything out.

 

Hi cannonfodder,

When I execute this " cp lilo.conf lilo.bkup", where this backup file is going to be place, and also to you, which entries should I delete.

 

Javi

Link to comment
Share on other sites

You will have to type

 

cd /etc

 

first and the backup file will go to the current directory /etc. It's just like a file copy in DOS.

 

root=/dev/hda
map=/boot/map
VGA=NORMAL # Add line to set the resolution for the booting screen
default="linux-i686-up-4GB" # This matches the label for the entry you want as default
keytable=/boot/us.klt
PROMPT # Add line to ask Lilo to prompt the booting screen
nowarn
TIMEOUT=100 # Add line to force a delay before Lilo loads the default system ( Linux )
message=/boot/message
menu-scheme=wb:bw:wb:bw
#
# first entry starts with image. Note that the label matches the line above?
image=/boot/vmlinuz-i686-up-4GB
label="linux-i686-up-4GB"
root=/dev/hda5
initrd=/boot/initrd-i686-up-4GB.img
append="devfs=mount acpi=ht splash=silent"
read-only
#
# second entry is your windows OS
other=/dev/hda1
label="windows"
table=/dev/hda
#
# Another windows?
other=/dev/hdb1
label="windows2"
table=/dev/hdb
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80

Link to comment
Share on other sites

boot=/dev/hda

map=/boot/map

VGA=NORMAL          #  Add line  to set the resolution for the booting screen

default="linux-i686-up-4GB"

keytable=/boot/us.klt

PROMPT                  #  Add line to ask Lilo to prompt the booting screen

nowarn

TIMEOUT=100          # Add line to force a delay before Lilo loads the default system ( Linux )

message=/boot/message

menu-scheme=wb:bw:wb:bw

image=/boot/vmlinuz

label="linux"

root=/dev/hda5

initrd=/boot/initrd.img

append="devfs=mount acpi=ht splash=silent"

vga=788

read-only

image=/boot/vmlinuz

label="linux-nonfb"

root=/dev/hda5

initrd=/boot/initrd.img

append="devfs=mount acpi=ht"

read-only

image=/boot/vmlinuz-i686-up-4GB

label="linux-i686-up-4GB"

root=/dev/hda5

initrd=/boot/initrd-i686-up-4GB.img

append="devfs=mount acpi=ht splash=silent"

read-only

image=/boot/vmlinuz-2.6.3-7mdk

label="263-7"

root=/dev/hda5

initrd=/boot/initrd-2.6.3-7mdk.img

append="devfs=mount acpi=ht splash=silent"

read-only

image=/boot/vmlinuz

label="failsafe"

root=/dev/hda5

initrd=/boot/initrd.img

append="failsafe acpi=ht devfs=nomount"

read-only

other=/dev/hda1

label="windows"

table=/dev/hda

other=/dev/hdb1

label="windows2"

table=/dev/hdb

map-drive=0x80

to=0x81

map-drive=0x81

to=0x80

other=/dev/fd0

label="floppy"

unsafe

becomes

 

boot=/dev/hda
map=/boot/map
VGA=NORMAL          #  Add line  to set the resolution for the booting screen
default="Mandrake"
keytable=/boot/us.klt
PROMPT                   #  Add line to ask Lilo to prompt the booting screen
nowarn
TIMEOUT=100          # Add line to force a delay before Lilo loads the default system ( Linux )
message=/boot/message
menu-scheme=wb:bw:wb:bw
#image=/boot/vmlinuz
#label="linux"
#root=/dev/hda5
#initrd=/boot/initrd.img
#append="devfs=mount acpi=ht splash=silent"
#vga=788
#read-only
#image=/boot/vmlinuz
#label="linux-nonfb"
#root=/dev/hda5
#initrd=/boot/initrd.img
#append="devfs=mount acpi=ht"
#read-only
#image=/boot/vmlinuz-i686-up-4GB
label="Mandrake"
root=/dev/hda5
initrd=/boot/initrd-i686-up-4GB.img
append="devfs=mount acpi=ht splash=silent"
read-only
#image=/boot/vmlinuz-2.6.3-7mdk
#label="263-7"
#root=/dev/hda5
#initrd=/boot/initrd-2.6.3-7mdk.img
#append="devfs=mount acpi=ht splash=silent"
#read-only
#image=/boot/vmlinuz
#label="failsafe"
#root=/dev/hda5
#initrd=/boot/initrd.img
#append="failsafe acpi=ht devfs=nomount"
#read-only
#other=/dev/hda1
label="XP"
table=/dev/hda
other=/dev/hdb1
#label="windows2"
#table=/dev/hdb
#map-drive=0x80
#to=0x81
#map-drive=0x81
#to=0x80
#other=/dev/fd0
#label="floppy"
#unsafe

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...