Hi,
I have a very strange external USB drive which I know is the enclosure as the internal drive is a Seagate 160GB IDE HD.
I recently pulled this drive out of a dead server as I was using it as an nfs export but now I have to use it as external USB HD since I don't have any other machines to put it in.
The weird thing was that one folder after powering on and auto-mount-usb kicked in, became locked as permissions got all screwed for some reason or other. Even after unmounting before disconnecting it.
Anyway some inodes became unattached and the boot record got all mangled.
I ran fsck /dev/sdb1 on it and attempted a manual repair so I pressed yes to everything that it wanted me to which in turn deleted inodes and other bits and peices.
I then ran fsck -a /dev/sdb1 on it and it claimed that there was a large percentage of non-continuous information.
I guess I should have run e2fsck -p /dev/sdb1 instead but what is done is done and now I have a deleted folder and 4GB of data in lost+found dir on the filesystem root (not to be confused with the / directory!!).
I have discovered this page
http://www.xs4all.nl/~carlo17/howto/undelete_ext3.html
in the mean time but I am after a quick fix if there is any like running a command with a particular option flag......
It's not a big issue since I do have all my data backed up but it's a hassle to go through 100s of DVD's where the information is stored on.
This is really why I don't like using external USB drives with Linux as they just aren't stable!! I mean in the server it would have been fine and on a reboot would have automatically fixed any errors leaving me with a usable drive with all folders and files intact.
Too bad I don't have enough money to go for a nice mutli-Terrabyte NAS or SAN system as that would sort all my issues out :-( (12TB should do it!! -uh)
Anyhow if anyone has any ideas or suggestions then please do get back to me!!! I would really appreciate it.
[edit]all I'm after really is just to recover those 'lost' files into the folder they were originally in with the proper names for each file as at the moment they are just numbers and letters with no sense in human terms.
Thanks