LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Problem booting that removes /opt to /lost+found (https://www.linuxquestions.org/questions/slackware-14/problem-booting-that-removes-opt-to-lost-found-334919/)

samac 06-18-2005 12:55 PM

Problem booting that removes /opt to /lost+found
 
I have had a couple of really bad disk problems recently.

But I did not take a note of the disk error, so I will try to describe the symptoms.

/dev/hda6 mounted as / formatted reiserfs

System crashes and asks for the root password, I give this but then the system cannot find fortune and something else. It reboots.

I boot with knoppix.

reiserfsck /dev/hda6, it tells me to use the --rebuild-tree option

Once this has been done my entire /opt directory is in /lost+found. Copying all back to /opt cures the problem.

Any ideas?

I cannot see any references in the logs.

Samac

Sandman1 06-18-2005 01:57 PM

Reply
 
The reason why the things ended up in lost + found was because there was some corruption found on the disk and when fsck fixes problems it moves the files into lost+found. This is so you can recover some lost data.

Thanks
Sandy

samac 06-18-2005 03:04 PM

OK I now understand the lost+found part of the problem.

Any ideas how to track down the problem? Which log, if any, should I check? I don't want to lose another drive, two this year already, is it reiserfs?

samac

Sandman1 06-18-2005 03:14 PM

Reply
 
If there is a failing harddrive you could run;


dmesg | grep hd

If there is anything comming up about your harddives that are bad, bingo. If you use scsi then use this command instead:

dmesg | grep sd

samac 06-18-2005 05:35 PM

Many thanks.

dmesg | grep hd

All clear, nothing untoward at all...... Ho hum, guess I'll have to wait for another failure and take a note of the error message.

The Doctor will have to prescribe more regular back-ups.

samac


All times are GMT -5. The time now is 02:52 AM.