Two cases arise:
(1) Your system is configured to install LILO on the MBR. In this case,
boot to the recovery media, Select Utilites, and 'Exec LILO'. Do NOT
select 'Write Boot Record' -- this will almost always cause the error you're
trying to fix. If this doesn't work, proceed to step (3).
(2) Your system is configured to install LILO onto an individual partition's
boot track. The first step in this case is the same as above; use the
recovery diskettes to run Utilities:Exec LILO. However, you also should
run 'Write Boot Record' to rewrite the MBR.
If (2) does not work, it may be the case that the MBR stored on the floppy
diskettes contains LILO. In this case, you'll want to get a new one from
the restored system. To do this, boot to the diskettes, select Utilites:
Shell, and run:
mount -r /dev/sda1 /mount
(replace /dev/sda1 with the name of the device holding the filesystem which
contains the information in /boot).
Then run
ls -l /mount
and look for a file called (usually) virgin.mbr. This is a
'normal' MBR file. If you find it, run the following:
cat /mount/virgin.mbr >/boot_block
Then exit the shell, and select Utilities:Write Boot Record . Reboot, and
your system should function properly. If not, continue to (3).
(3) If neither of the above helps you, then it is most likely an issue with
LBA mode. To modify this, you'll need to boot up under the recovery
media. Be sure to load the Misc Disks if
you're using floppy diskettes using the Utilities:Load Disks option. Then
select Utilities:Shell .
Then mount all your filesystems under
/mount. For example, to mount the root filesystem, try the following:
mount /dev/sda1 /mount
Note that you should replace /dev/sda1 with the device node that holds your
root filesystem. Be sure to mount /boot if it is not included in your
root filesystem (if an ls -l /mount/boot does not list any files,
your /boot filesystem is separate from your root filesystem, and must
be mounted before you continue).
Now run:
vi /mount/etc/lilo.conf
to edit the lilo.conf file on your hard drive. If it contains the 'linear'
keyword, try removing it. If it does not, add it near the top (before
the first image= or other= line).
Finally, run:
lilo -r /mount
to reinstall LILO. Be SURE to UNMOUNT YOUR FILESYSTEMS in the reverse
order you mounted them (i.e., umount /dev/sda1 would be last
in the above example).
|