Let's assume for the moment that you are not in a hurry.
Reboot your machine and enter the root password to
get to the maintenance shell.
Run fsck against the /usr partition ( /dev/sda5 ?).
Respond n (for NO) to all questions and try to get
as sense of how much damage you have. In most cases,
you could just go ahead and respond y (for YES) to
everything, but I'm being carefull.
If you don't appear to have lost entire major directories,
repeat the fsck and respond y. You can even use fsck -y /dev/sdaN
I believe.
If fsck really doesn't want to work right this way, get a
live CD distribution like Knoppix and boot it and use fsck
from it to fix your file systems. You can even Knoppix to
backup whatever you can.
Repeat the procedure with /home ( /dev/sda9 ?).
Regards,
Jim Ramsey
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "Akron Linux Users Group" group.
> To post to this group, send email to Akro...@googlegroups.com
> To unsubscribe from this group, send email to AkronLUG+u...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/AkronLUG?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>
The actual command to safely check each of the file systems are below.
These commands are considered safe, but there is no guarantee that
any file system check will work. The only thing guaranteed to work is
a backup. If you can't boot up enough to run these commands, any
"live" CD such as knoppix, gentoo, even a redhat boot CD will do. The
live CD will boot, then provide you with the ability to run commands.
Make sure that the partitions are not "mounted" when you run the
e2fsck checks.
/sbin/e2fsck -p /dev/sda8
/sbin/e2fsck -p /dev/sda9
If you have further questions, please let me know.
Scott M
You have a 160GB SATA hard drive, I believe.
I'm also assuming that you will shortly be in
the market for a new hard drive but need to
secure as much of the contents of the old one
as possible.
I would suggest the following.
Get a knoppix CD distribution and an external USB hard drive.
They aren't expensive and they are really usefull.
You may want to reformat the USB drive to EXT3 instead of FAT
or NTFS to use it with Linux.
Use the Knoppix distribution to mount the the variuse partitions
on the SATA drive read-only and copy them to the USB hard drive.
You can use "cp -av" or "rsync" to do the copying.
In addition, I have a marvelous little tool for converting ATA
and SATA drives into USB drives. With that, it's possible to
do the backup using an entirely different computer.
Another simple suggestion... If this disk failure is heat related
at all, you may find that you can turn you machine off for a while
and then start it up and run it without error. This is another advantage
of the conversion tool I described above. You can keep the old
drive cooler while you copy off data.
Regards,
Jim Ramsey
On Monday 22 September 2008 18:38:06 arch3angel wrote:
>
Scott M
Make absolutely certain the file system is unmounted before using fsck.
Expect to find some lost files in the lost+found directory, but the
file names will be missing. Use 'file' and such to figure out what
these missing files are - if possible,
-S