-
Senior Member
registered user

Originally Posted by
vladx
l
Code:
vga=791
# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# --------------- `install-mbr(8)', `/usr/share/doc/lilo/',
# and `/usr/share/doc/mbr/'.
# +---------------------------------------------------------------+
# | !! Reminder !! |
# | |
# | Don't forget to run `lilo' after you make changes to this |
# | conffile, `/boot/bootmess.txt', or install a new kernel. The |
# | computer will most likely fail to boot if a kernel-image |
# | post-install script or you don't remember to run `lilo'. |
# | |
# +---------------------------------------------------------------+
# Support LBA for large hard disks.
#
lba32
# Overrides the default mapping between harddisk names and the BIOS'
# harddisk order. Use with caution.
#disk=/dev/hde
# bios=0x81
#disk=/dev/sda
# bios=0x80
# Specifies the boot device. This is where Lilo installs its boot
# block. It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/hda
# Specifies the device that should be mounted as root. (`/')
#
root=/dev/hda2
# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller. Using `compact' is especially recommended when
# booting from a floppy disk. It is disabled here by default
# because it doesn't always work.
#
# compact
# 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
# Specifies the location of the map file
#
map=/boot/map
# You can set a password here, and uncomment the `restricted' lines
# in the image definitions below to make it so that a password must
# be typed to boot anything but a default configuration. If a
# command line is given, other than one specified by an `append'
# statement in `lilo.conf', the password will be required, but a
# standard default boot will not require one.
#
# This will, for instance, prevent anyone with access to the
# console from booting with something like `Linux init=/bin/sh',
# and thus becoming `root' without proper authorization.
#
# Note that if you really need this type of security, you will
# likely also want to use `install-mbr' to reconfigure the MBR
# program, as well as set up your BIOS to disallow booting from
# removable disk or CD-ROM, then put a password on getting into the
# BIOS configuration as well. Please RTFM `install-mbr(8)'.
#
# password=tatercounter2000
# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
delay=20
# You can put a customized boot message up if you like. If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress. `single-key' goes with the `alias' lines in the
# `image' configurations below. eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
prompt
timeout=150
# prompt
# single-key
# delay=100
# timeout=100
# Kernel command line options that apply to all installed images go
# here. See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""
append="hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi apm=power-off nomce"
# Boot up Linux by default.
#
default=Linux
image=/boot/vmlinuz-2.4.22-xfs
label=Fail-Safe
initrd=/boot/initrd.gz
read-only
# restricted
# alias=1
image=/boot/vmlinuz-2.4.22-xfs-test
label=Knoppix
read-only
image=/vmlinuz.old
label=LinuxOLD
read-only
optional
# restricted
# alias=2
# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
# other=/dev/hda4
# label=HURD
# restricted
# alias=3
other=/dev/hda1
label="WinNT(hda1)"
root@navigator:~# ls -ltr /vmlinuz*
lrwxrwxrwx 1 root root 23 Nov 17 10:36 /vmlinuz -> boot/vmlinuz -2.4.22-xfs
root@navigator:~# ls -ltr /boot/vmlinuz*
-rw-r--r-- 1 root root 921593 Oct 3 21:01 /boot/vmlinuz-2.4.22-xfs
lrwxrwxrwx 1 root root 18 Nov 17 10:23 /boot/vmlinuz.old -> vml inuz-2.4.22-xfs
-rw-r--r-- 1 root root 970618 Nov 17 13:31 /boot/vmlinuz-2.4.22-xfs -test
lrwxrwxrwx 1 root root 23 Nov 17 13:31 /boot/vmlinuz -> vmlinuz -2.4.22-xfs-test
root@navigator:~#
But in the boot lilo menu only Linux and WinNT(hda1)
You have the symbolic links wrong and with the errors lilo will ignore the entries with them and not display them in the menu. This is how I have set it up on my computer:
Code:
HappyTux:/home/stephen# ll /vmlinuz*
lrwxrwxrwx 1 root root 26 2003-10-20 04:56 /vmlinuz -> boot/vmlinuz-2.4.22.031019
lrwxrwxrwx 1 root root 35 2003-08-29 02:36 /vmlinuz.failsafe -> /boot/vmlinuz-2.4.20-bf2.4-failsafe
lrwxrwxrwx 1 root root 26 2003-09-15 03:38 /vmlinuz.old -> boot/vmlinuz-2.4.22.030915
HappyTux:/home/stephen# ll /boot/vmlinuz-2.4.2*
-rw-r--r-- 1 root root 1.3M 2003-08-29 02:31 /boot/vmlinuz-2.4.20-bf2.4-failsafe
-rw-r--r-- 1 root root 993K 2003-09-15 03:24 /boot/vmlinuz-2.4.22.030915
-rw-r--r-- 1 root root 973K 2003-10-19 23:18 /boot/vmlinuz-2.4.22.031019
The /etc/lilo.conf entries:
Code:
# Boot up Linux by default.
#
default=Linux
image=/vmlinuz
label=Linux
read-only
# restricted
# alias=1
image=/vmlinuz.old
label=LinuxOLD
read-only
optional
# restricted
# alias=2
image=/vmlinuz.failsafe
label=LinuxFailsafe
read-only
optional
# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
other=/dev/hdb
label=KDE_CVS
# restricted
# alias=3
BTW how did you compile the new kernel it looks like you did not use the Debian method with the kernel-package program it will make a .deb package that you can install and it will take care of all this trouble you are having with updating the lilo.conf and making the correct symbolic links. A guide to creating a custom Debian package with the kernel-package tool. And now that I look at the posts again I see that when you have run /sbin/lilo after having made the changes you did to the lilo.conf it errored because you have no label=Linux entry left in the file so it is still using the old configuration written to the MBR. You need to fix the links and clean up the lilo.conf if you are not going to use a Linux entry as the default=Linux then you have to change it to the name of the label=of_image_you_want_to_use in the sections below it.
Similar Threads
-
By whoeverheis in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 03-25-2005, 07:13 PM
-
By tomjermy in forum Hardware & Booting
Replies: 1
Last Post: 03-17-2005, 01:07 AM
-
By emartinson in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 06-21-2004, 04:22 AM
-
By JockVSJock in forum General Support
Replies: 7
Last Post: 04-09-2004, 10:42 AM
-
By sminotti in forum Hdd Install / Debian / Apt
Replies: 5
Last Post: 08-04-2003, 03:59 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Seagate ST500DM009 BarraCuda 500 GB 3.5" SATA III Desktop Hard Drive
$14.99

Dell EMC WD-HITACHI H5H72101CLAR10T0 10TB 7.2K SAS 12Gb/s SED 3.5in A POH 0-50k
$189.99

5x HGST Ultrastar 4TB SAS 12Gb/s 7200RPM 3.5" HDD HUS726040AL5214 4Kn
$199.00

WD Ultrastar DC HC530 14TB SATA 6G 3.5" 7200RPM Enterprise HDD - WUH721414ALE604
$329.99

Toshiba 14TB MG07 MG07ACA14TEY 7.2K RPM SATA 6Gb/s 512e 3.5" Enterprise HDD
$299.00

Seagate ST28000NM001C 28TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive
$669.99

Seagate ST1000VM002 1TB 5900RPM 3.5" SATA 6GB/s HDD Video Hard Drive PC DVR
$24.99

Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5" 512e HDD NetApp X375A
$49.00

Seagate ST8000NM0075 Enterprise Capacity 3.5 HDD 8TB SAS Hard Drive 8TB EXOS
$184.99

Western Digital 1TB 3.5" SATA III 7200RPM Desktop Hard Drive
$29.99