Directory shows as "unknown type" - any way to recover it?
Hello!
For unknown reason some files/directories on hard drive are not accessible anymore. If I do ls -l /full/path/ the corrupted directory shows like: Code:
drwxr-xr-x 12 user user 16384 2006-04-17 22:56 name_of_good_directory I've already checked the hard drive on possible sector loss or such - nothing wrong with it... System info: OS: Ubuntu 6.06 Kernel: 2.6.15-27-386 Filesystem: ext3 Hard drive connected via PCI Promise ATA100 controller Thank you! |
If this is on your boot partition then you should force an fsck during the next reboot as follows:
Code:
root> shutdown -fr now |
This may just be a permissions problem on the directory, not corruption. A directory that is readable, but not executable, gives you strange results when you try to list it's contents.
Here's an example I just tried on my own system. The "corruption" shows up when I give the directory a weird 444 mode. The "corruption" dissappears when I change it back to a more reasonable 555 permission. Code:
$ mkdir dir1 |
Thanks for the replies.
Unfortunately its not permission issue...I just ran fsck and it indeed found some problems with these folders/files...Though I did answer "no" when it asked me to repair them, because I'm afraid by doing that I might lose the files completely... Should I continue repair it with fsck or there is a better way to recover the files? Thank you. |
If fsck finds files with problems it will put those files in the lost+found directory at the top of the partition's file system. Chances are that these files will not have their original name. Also, they may only be fragments of the original files.
I would try haertig's idea. Code:
root> chmod 777 bad-directory Code:
root> mkdir tmp Otherwise I don't know of any other method of getting into that bad directory prior to using fsck. |
Have a look at testdisk. I had a partition that came up unknown, large storage partition, and test disk fixed it for me. I never did figure out why Debian or XP Pro could not "see" it, it was there, just unrecognizable.
|
Quote:
http://www.cgsecurity.org/wiki/TestDisk_Download |
All times are GMT -5. The time now is 06:00 AM. |