LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-18-2005, 04:46 AM   #1
ntoughe
LQ Newbie
 
Registered: Oct 2004
Location: France
Distribution: Reddhat,Fedora 12,CentOS
Posts: 23

Rep: Reputation: 15
LILO hangs during the boot process


Hi,
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?
 
Old 11-18-2005, 08:53 AM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
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
exit
reboot

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.
 
Old 11-18-2005, 09:44 AM   #3
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,401

Rep: Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119
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.
 
Old 11-18-2005, 10:44 AM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LILO Probs Hangs at boot slakware-oldie Slackware - Installation 1 10-13-2005 12:06 AM
Boot process hangs while dcetecting hardware jmilks Slackware - Installation 2 02-10-2005 06:46 AM
Unable to boot to WindowsXP Pro from LILO, Slackware 10. (Hangs) DaneM Slackware 5 07-13-2004 02:38 AM
Lilo boot hangs when trying to boot Win2K Gates1026 Linux - General 2 01-20-2004 10:42 AM
LILO Hangs at Boot After Sarge Upgrade oxleyk Debian 1 11-28-2003 05:48 PM


All times are GMT -5. The time now is 09:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration