|
Editing
/etc/lilo.config. Not much here yet, website under construction. Having Two Bootloaders at Once. Installing Lilo during the installation when installing Ubuntu with the 'Alternate' install CD. Install Lilo with apt-get from terminal in a running system Run Liloconfig. Get the Lilo Manual. Install Lilo with Synaptic Package Manager...(in a running system) Install Lilo from a Linux Live CD...An emergency method for installing Lilo. (Even works for an non-bootable Ubuntu installation) Install Lilo from Breezy Install CD...An emergency method for installing Lilo. (Even works for an non-bootable Ubuntu installation) Adding you own customized LiLo Splashimage Error messages from LILO |
| herman@bookpc:~$ sudo gedit /etc/lilo.config |
| # Generated by liloconfig # This allows booting from any partition on disks with more than 1024 # cylinders. lba32 # Specifies the boot device boot=/dev/sda2 # Specifies the device that should be mounted as root. # If the special name CURRENT is used, the root device is set to the # device on which the root file system is currently mounted. If the root # has been changed with -r , the respective device is used. If the # variable ROOT is omitted, the root device setting contained in the # kernel image is used. It can be changed with the rdev program. root=/dev/sda2 # Bitmap configuration for /boot/coffee.bmp bitmap=/boot/coffee.bmp bmp-colors=12,,11,15,,8 bmp-table=385p,100p,1,10 bmp-timer=38,2,13,1 # Enables 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. # compact # Install the specified file as the new boot sector. # LILO supports built in boot sectory, you only need # to specify the type, choose one from 'text', 'menu' or 'bitmap'. # new: install=bmp old: install=/boot/boot-bmp.b # new: install=text old: install=/boot/boot-text.b # new: install=menu old: install=/boot/boot-menu.b or boot.b # default: 'menu' is default, unless you have a bitmap= line # Note: install=bmp must be used to see the bitmap menu. # install=menu install=bmp # Specifies the number of _tenths_ of a second LILO should # wait before booting the first image. LILO # doesn't wait if DELAY is omitted or if DELAY is set to zero. # delay=20 # Prompt to use certain image. If prompt is specified without timeout, # boot will not take place unless you hit RETURN prompt timeout=50 # Specifies the location of the map file. If MAP is # omitted, a file /boot/map is used. map=/boot/map # Specifies the VGA text mode that should be selected when # booting. The following values are recognized (case is ignored): # NORMAL select normal 80x25 text mode. # EXTENDED select 80x50 text mode. The word EXTENDED can be # abbreviated to EXT. # ASK stop and ask for user input (at boot time). # <number> use the corresponding text mode. A list of available modes # can be obtained by booting with vga=ask and pressing [Enter]. vga=normal # Defines non-standard parameters for the specified disk. #disk=/dev/sda # bios=0x80 # If you are using removable USB drivers (with mass-storage) # you will need to tell LILO to not use these devices even # if defined in /etc/fstab and referenced in /proc/partitions. # Adjust these lines to your devices: # # disk=/dev/sda inaccessible # disk=/dev/sdb inaccessible # These images were automagically added. You may need to edit something. image=/boot/vmlinuz-2.6.20-15-generic label="Lin 2.6.20img0" initrd=/boot/initrd.img-2.6.20-15-generic read-only image=/boot/vmlinuz-2.6.20-16-generic label="Lin 2.6.20img1" initrd=/boot/initrd.img-2.6.20-16-generic read-only image=/boot/memtest86+.bin label="Memory Test+" read-only # If you have another OS on this machine (say DOS), # you can boot if by uncommenting the following lines # (Of course, change /dev/hda2 to wherever your DOS partition is.) # other=/dev/hda2 # label="MS Windows" |
| herman@bookpc:~$ ls /boot abi-2.6.17-10-generic initrd.img-2.6.17-10-generic Ubuntusplash.xpm.gz abi-2.6.17-11-generic initrd.img-2.6.17-11-generic vmlinuz-2.6.17-10-generic config-2.6.17-10-generic memtest86+.bin vmlinuz-2.6.17-11-generic config-2.6.17-11-generic System.map-2.6.17-10-generic grub System.map-2.6.17-11-generic |
| herman@bookpc:~$ sudo apt-get install lilo |
| herman@bookpc:~$ sudo apt-get install lilo Password: Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: lilo-doc mbr The following NEW packages will be installed: lilo 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/343kB of archives. After unpacking 1098kB of additional disk space will be used. Media change: please insert the disc labeled 'Ubuntu 6.10 _Edgy Eft_ - Release i386 (20061025.1)' in the drive '/cdrom/' and press enter |
| working... |
Ubuntu Configuration
|
|
Preconfiguring packages ... Selecting previously deselected package lilo. (Reading database ... 128285 files and directories currently installed.) Unpacking lilo (from .../lilo_22.6.1-7ubuntu2_i386.deb) ... Setting up lilo (22.6.1-7ubuntu2) ... |
| herman@bookpc:~$ ls /boot abi-2.6.17-10-generic initrd.img-2.6.17-11-generic abi-2.6.17-11-generic memtest86+.bin coffee.bmp sarge.bmp config-2.6.17-10-generic sid.bmp config-2.6.17-11-generic System.map-2.6.17-10-generic debian.bmp System.map-2.6.17-11-generic debianlilo.bmp Ubuntusplash.xpm.gz grub vmlinuz-2.6.17-10-generic initrd.img-2.6.17-10-generic vmlinuz-2.6.17-11-generic herman@rocky:~$ |
| herman@bookpc:~$ sudo liloconfig |
Package Configuration
|
| herman@bookpc:~$ sudo cp /etc/fstab /etc/fstab.backup |
| herman@bookpc:~$ sudo gedit /etc/fstab |
| # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # /dev/hda2 UUID=61e29deb-c5c3-4401-8557-81482aedc839 / ext3 defaults,errors=remount-ro 0 1 # /dev/hda1 UUID=124D-170D /media/hda1 vfat defaults,utf8,umask=007,gid=46 0 1 # /dev/hda5 UUID=a08d44f6-d681-4901-a7cc-345fc9fa9eb6 none swap sw 0 0 /dev/cdrom /media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 |
| # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # UUID=61e29deb-c5c3-4401-8557-81482aedc839 /dev/hda2 / ext3 defaults,errors=remount-ro 0 1 # UUID=124D-170D /dev/hda1 /media/hda1 vfat defaults,utf8,umask=007,gid=46 0 1 # UUID=a08d44f6-d681-4901-a7cc-345fc9fa9eb6 /dev/hda5 none swap sw 0 0 /dev/cdrom /media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 |
Package Configuration
|
Package Configuration
|
Package Configuration
|
Package Configuration
|
Package Configuration
|
Package Configuration
|
| herman@red:~$ sudo liloconfig Searching for installed kernels and updating image entries ... Warning: Partition 2 on /dev/sda is not marked Active. Warning: Unable to determine video adapter in use in the present system. Warning: Video adapter does not support VESA BIOS extensions needed for display of 256 colors. Boot loader will fall back to TEXT only operation. Added Lin_2.6.20img0 * Added Memory_Test+ OK. If you installed the master boot record, and the partition boot record, you may boot Linux by holding down the shift key as the system boots, and then pressing the 2 key when you see the "1234F:" prompt. For more information about LILO, see the documentation in /usr/share/doc/lilo/. For details about the MBR, see also /usr/share/doc/mbr/. |
| Note: You can now use Super Grub Disk to boot your computer with if it becomes accidentally unbootable due to some boot loader problem. Super grub Disk will bypass your MBR without touching it, (unless you want it to). Super Grub Disk Page........................................................................Super Grub Disk Page |
| herman@red:~$ cp /usr/share/doc/lilo/Manual.txt.gz /home/herman |
| herman@red:~$ gunzip Manual.txt.gz |




| Note: You can now use Super Grub Disk to boot your computer with if it becomes accidentally unbootable due to some boot loader problem. Super grub Disk will bypass your MBR without touching it, (unless you want it to). Super Grub Disk Page........................................................................Super Grub Disk Page |
| ubuntu@ubuntu:~$ sudo parted /dev/hda |
| ubuntu@ubuntu:~$ sudo parted /dev/hda GNU Parted 1.7.1 Using /dev/hda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Disk /dev/hda: 160GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 75.2GB 75.2GB primary fat32 boot 2 75.2GB 157GB 81.9GB primary ext3 3 157GB 160GB 2887MB extended 5 157GB 160GB 2887MB logical linux-swap (parted) |
| (parted) > set 2 boot on |
| (parted) print Disk /dev/hda: 160GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 75.2GB 75.2GB primary fat32 2 75.2GB 157GB 81.9GB primary ext3 boot 3 157GB 160GB 2887MB extended 5 157GB 160GB 2887MB logical linux-swap (parted) quit |
| ubuntu@ubuntu:~$ sudo mkdir /mnt/ubuntu |
| ubuntu@ubuntu:~$ sudo mount -t ext3 /dev/hda2 /mnt/ubuntu/ |
| ubuntu@ubuntu:~$ sudo cp /mnt/ubuntu/etc/fstab /mnt/ubuntu/etc/fstab.backup |
| ubuntu@ubuntu:~$ sudo gedit /mnt/ubuntu/etc/fstab |
| # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # /dev/sda2 UUID=2d58733e-b9be-4c9e-a6a1-c0a30f783341 / ext3 defaults,errors=remount-ro 0 1 # /dev/sda1 UUID=3D4D-16F1 /media/sda1 vfat defaults,utf8,umask=007,gid=46 0 1 # /dev/sda2 UUID=320D-180E /media/sda2 vfat defaults,utf8,umask=007,gid=46 0 1 # /dev/sda5 UUID=5d65f4b4-b659-460e-8bca-78328c4d6d23 none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 |
| # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # UUID=2d58733e-b9be-4c9e-a6a1-c0a30f783341 /dev/hda2 / ext3 defaults,errors=remount-ro 0 1 # UUID=3D4D-16F1 /media/sda1 /dev/sda1 vfat defaults,utf8,umask=007,gid=46 0 1 # UUID=320D-180E /media/sda2 /dev/sda2 vfat defaults,utf8,umask=007,gid=46 0 1 # UUID=5d65f4b4-b659-460e-8bca-78328c4d6d23 /dev/sda5 none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 |
| ubuntu@ubuntu:~$ sudo mount -t proc none /mnt/ubuntu/proc |
| ubuntu@ubuntu:~$ sudo mount -o bind /dev/ /mnt/ubuntu/dev |
| ubuntu@ubuntu:~$ sudo chroot /mnt/ubuntu /bin/bash |
|
root@ubuntu:/# apt-get install lilo Reading package lists . . . Done Building dependency tree . . . Done Suggested Packages: lilo-doc mbr The following NEW packages will be installed: lilo 0 upgraded, 1 newly installed, 0 to remove and 128 not upgraded. Need to get 343kB of archives. After unpacking 1098kB of additional disk space will be used. Get:1 http://au.archive.ubuntu.com dapper/main lilo 1:22.6.1-7ubuntu2 [343kB] Fetched 343kB in 7s (48.0kB/s) Preconfiguring packages . . . Selecting previously deselected package lilo. (reading database . . . 69523 files and directories currently installed.) Unpacking lilo (from . . . /lilo_1%3a22.6.1-7ubuntu2_i386.deb) . . . Setting up lilo (22.6.1-7ubuntu2) . . .lilo -b |
|
root@ubuntu:/# lilo -b /dev/hda |
| root@ubuntu:/# exit |
|
ubuntu@ubuntu:~$ sudo umount /mnt/ubuntu/proc |
| ubuntu@ubuntu:~$ sudo umount /mnt/ubuntu/dev |
|
ubuntu@ubuntu:~$ sudo umount /mnt/ubuntu |
| ubuntu@ubuntu:~$ exit |
|
ubuntu@ubuntu:~$ sudo umount -a |
| Note: You can now use Super Grub Disk to boot your computer with if it becomes accidentally unbootable due to some boot loader problem. Super grub Disk will bypass your MBR without touching it, (unless you want it to). Super Grub Disk Page........................................................................Super Grub Disk Page |
| herman@bookpc:~$ sudo cp my_first_lilosplash.bmp /boot |
| herman@bookpc:~$ sudo gedit /etc/lilo.config |
| # Bitmap configuration for /boot/coffee.bmp bitmap=/boot/coffee.bmp bmp-colors=12,,11,15,,8 bmp-table=385p,100p,1,10 bmp-timer=38,2,13,1 |
| # Bitmap configuration for /boot/coffee.bmp bitmap=/boot/my_first_lilosplash.bmp bmp-colors=12,,11,15,,8 bmp-table=385p,100p,1,10 bmp-timer=38,2,13,1 |
| herman@bookpc:~$ sudo lilo -v |
|
When LILO loads itself, it displays the word "LILO".
Each letter is printed before or after performing some specific action.
If LILO fails at some point, the letters printed so far can be used to
identify the problem. This is described in more detail in the technical
overview. Note that some hex digits may be inserted after the first "L" if a transient disk problem occurs. Unless LILO stops at that point, generating an endless stream of error codes, such hex digits do not indicate a severe problem. (<nothing>) No part of LILO has been loaded. LILO either isn't installed or the partition on which its boot sector is located isn't active. L <error> ... The first stage boot loader has been loaded and started, but it can't load the second stage boot loader. The two-digit error codes indicate the type of problem. (See also section "Disk error codes".) This condition usually indicates a media failure or a geometry mismatch (e.g. bad disk parameters, see section "Disk geometry"). LI The first stage boot loader was able to load the second stage boot loader, but has failed to execute it. This can either be caused by a geometry mismatch or by moving /boot/boot.b without running the map installer. LIL The second stage boot loader has been started, but it can't load the descriptor table from the map file. This is typically caused by a media failure or by a geometry mismatch. LIL? The second stage boot loader has been loaded at an incorrect address. This is typically caused by a subtle geometry mismatch or by moving /boot/boot.b without running the map installer. LIL- The descriptor table is corrupt. This can either be caused by a geometry mismatch or by moving /boot/map without running the map installer. LILO All parts of LILO have been successfully loaded. |