LILO hangs during the boot process
After made a disk copy between 2 disks on RedHat 6.2 (yes it still exists !!!),, Lilo can't correctly boots , and The system respond by:
L80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80
I try to solve the pb by booting on the install cd, and create a new MBR by issuing the following command:
dd if=/mnt/cdrom/images/boot.img of=/dev/sda1 bs=512 count=1
but after the reboot i meet the same problem.
can anyone as an idea?
You can only make Lilo to boot again if the source and target disks are indentical in size and you have mirrored faithfully the image from one to anther.
Lilo relies on the exact position in the disk to boot the system so any change of its partition position relative to the hard disk will render Lilo useless.
You can get out of your trouble by booting up the PC with a Live CD, make a tempoarary directory in /mnt, monut your REd Hat partition on it, change root to the temp. directory and restore Lilo into the MBR.
mkdir /mnt/sda1 <----assuming Red Hat in sda1
mount /dev/sda1 /mnt/sda1
chroot /mnt/sda1 <----now you are inside Red Hat
lilo -b /dev/sda <---------tell Lilo to replicate itself in the MBR of your first Sata disk
Watch the reply from Lilo after issuing the lilo -b command because Lilo will tell you problem it encounters.
Your dd statement can be very dangerous because the 1st 512 bytes include the partition table. If the two disks are of different size then that statement will kill the 2nd disk.
May God has mercy on your disks.
One of the many reasons why I suggest grub, instead of LILO. It's simply a smarter loader, and when something goes south it puts you in an environment where you can realistically do something about it. Well worth looking into, and switching to, imho.
Lilo can be a bit rough but it is as tame as Grub if you know how to handle it. I think every Linux user should face it head on as about 40% of the distros are still using it.
There is nothing wrong with it. Grub is just simpler and has a capacity to do bigger things, like runs without being attached to an operating system or to boot 100+ systems without losing a breath.
|All times are GMT -5. The time now is 01:27 AM.|