[Ilugc] harddisk in trouble after fsck

  • From: kapil@xxxxxxxxxxx (Kapil Hari Paranjape)
  • Date: Fri Jun 12 19:52:51 2009

Hello,

On Fri, 12 Jun 2009, Sudhir Gandotra wrote:

A harddisk on the laptop asked for fsck which was done.

It seems as if the wrong fsck was run or the system was erroneously
configured.

Now, all the folders and files are gone and they seem to be in the
lost+found directory and all the folders and files names have bene
changed to numerical.

How to recover the folders and files from the lost+found directory ?

These are _all_ the files which are recoverable but the process of
recovery will be painful because you need to identify each file.

The help will be great for an NGO whose important data is in the disk.

Restore from your last good backup. (You did take a backup did you
not?)

Then look at each file in the lost+found directory to identify
those that are useful to you. Here are some tricks to speed up that
process:

 a. Ask your users to try to remember any important work that they
 did _after_ your last backup. This will allow you to narrow down the
 files you are looking for.

 b. Use the "file" command to figure out which files have which type.
 Then categoriese the files according to type.

 c. Use the "grep" command to search for particular strings in the
 document files which will help you categorise further.

 d. After that you will have no option but to actually view the files
 using a suitable viewer and see if that particular file is worth
 saving.

Regards,

Kapil.

P.S. Perhaps someone here knows how to use "beagle" or "xapian" to
simplify (b) and (c).

P.P.S. "The first time you lose data is usually the last time
that you forget to take a backup."
--

Other related posts: