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 |
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 |
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 |
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 |
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. |