LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-05-2008, 07:07 PM   #1
nightrider
Member
 
Registered: Apr 2005
Location: Sao Paulo - Brazil
Distribution: Open Suse 12.1 64
Posts: 166

Rep: Reputation: 15
LILO files corruption


I bought a hard disk(a SAMSUNG IDE 40 GB) and ask the seller to install it in my computer. It was a used HD. There were new 160GB or used 40 GB IDE disks in the store. As the 160GB was too expensive I ask to install the used one. I never have trouble with used HD before.

When I arrive at home and power on the machine, Mandriva can't access the new(old) disk. When I boot the machine in windows, the drive letters was interrupted indicating that windows knows that the drive was present but can't access it too. I tried to partitioning with drake and finally I have success with partition magic under windows. Note that in the way from the store to my home the disk seems to lost its partitions.

I format the partitions and give them names. Finally I try to give a name to each partition that I had in each disk. I used the Mandriva configuration center. Okay. When I reboot the machine, linux didn't boot. When I selected linux from LILO menu it reports an error in the superblock. I try to recover with e2fsck -b 8183 /dev/hda without success. I lose. I install Mandriva again in the extf3 partition of the original disk and everything seems to be running well, finally. Except that I only can access the ext3 partition of the new(old) disk with root. But this is a matter to a future question. (Before re-install Mandriva I had copy the data from the extf3 of the disk that was corrupted to the new one using Mandriva 2006 Live CD)

Tomorrow morning I power on the machine. Surprise: The LILO menu didn't appear. In its place appeared a letter "L" in the line 1 column 1 of the screen and pairs of 9's till the middle of the screen and the system freezes. I'm writing you after boot via Mandriva 2006 live CD. If I define mounting points and mount the drives data seems to be ok in the partitions.

Is there a way of reconstruct the LILO entries in the way I can at least save some files of the HD?

My theory is that the new(old) disk I bought have problems and it causes troubles to the IDE controller and the controller corrupts the LILO menu. Is this theory a possible cause of the trouble?

All the troubles seems began after I install this new used disk as slave.

I forgot to say that I replace my CD recorder drive by a new LG DVD recorder drive dual layer. When I try to burn a CD with K3B the system reports no disks in drive. Is this correct? I can't burn CDs in a DVD recorder drive? Or is this error an indication os troubles with the controller? I had successfully burn 2 DVDs before the trouble with the CD burn.

Greetings from Sao Paulo - Brazil

Ricardo

P.S.: Next sunday I'll go to the store and complain about the disk, but I'd like to know if my ideas are correct.
 
Old 02-05-2008, 08:03 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Linux Mint 18
Posts: 7,809

Rep: Reputation: 294Reputation: 294Reputation: 294
Quote:
Originally Posted by nightrider View Post

Tomorrow morning I power on the machine. Surprise: The LILO menu didn't appear. In its place appeared a letter "L" in the line 1 column 1 of the screen and pairs of 9's till the middle of the screen and the system freezes. I'm writing you after boot via Mandriva 2006 live CD. If I define mounting points and mount the drives data seems to be ok in the partitions.

Here is an explanation of the LILO error codes:

http://tldp.org/HOWTO/Bootdisk-HOWTO/a1483.html

Since you got an L and nothing else that means that the part of LILO on the MBR was read in successfully but the part of LILO in the Mandriva /boot directory was not read in successfully. The part of LILO that it could not find is /boot/boot.b.

Quote:
Originally Posted by nightrider View Post

I'm writing you after boot via Mandriva 2006 live CD. If I define mounting points and mount the drives data seems to be ok in the partitions.

Is there a way of reconstruct the LILO entries in the way I can at least save some files of the HD?
Boot into the live CD and check to see if /boot/boot.b and /etc/lilo.conf are OK. If both of those files are good you can probably fix LILO.

The Mandriva live CD probably has an option to boot into an existing OS. If it does then boot the Mandriva live CD and then use it to boot into the Mandriva OS you installed on the new hard drive. Then log in and su to root. Issue the command to install LILO to the MBR:

lilo

After you re-install LILO you can try to save some of the files on this hard drive. Actually you can try to save the files even if you don't get LILO re-installed.

Quote:
Originally Posted by nightrider View Post

My theory is that the new(old) disk I bought have problems and it causes troubles to the IDE controller and the controller corrupts the LILO menu. Is this theory a possible cause of the trouble?

All the troubles seems began after I install this new used disk as slave.
Your problems could be caused by having two devices installed on the same address. Check your hard drives and DVD to see if you have two masters or two slaves.

Quote:
Originally Posted by nightrider View Post

I forgot to say that I replace my CD recorder drive by a new LG DVD recorder drive dual layer. When I try to burn a CD with K3B the system reports no disks in drive. Is this correct? I can't burn CDs in a DVD recorder drive? Or is this error an indication os troubles with the controller? I had successfully burn 2 DVDs before the trouble with the CD burn.
Look at the specifications for your LG DVD recorder. Will it burn both CDs and DVDs?

-----------------
Steve Stites
 
Old 02-06-2008, 10:01 AM   #3
nightrider
Member
 
Registered: Apr 2005
Location: Sao Paulo - Brazil
Distribution: Open Suse 12.1 64
Posts: 166

Original Poster
Rep: Reputation: 15
Hi jailbait!

The files /boot/boot.b and /etc/lilo.conf were absent. I go back to the store and leave my machine over there. They will replace the HD and the DVD writer... BUt I lost all software in the both partitions.

Thank you for your help.

Ricardo
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
corruption error while ripping ogg files in Konqueror - do they ever stop? tuffstuff Linux - Software 1 04-02-2007 01:41 PM
data corruption when cp'ing files across sata disks!! garba Linux - Hardware 3 04-26-2006 05:38 PM
Corruption of tar files from fat32 to ext3? BluePyre Linux - General 5 07-11-2004 10:40 AM
Can't see LILO files on diskette laceupboots Linux - Newbie 6 01-21-2004 01:23 AM
/bin files corruption chuck77 Linux - General 5 04-25-2003 03:30 AM


All times are GMT -5. The time now is 11:05 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration