Corrupted USB flash drive needs fixing (Fedora/Linpus)
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Corrupted USB flash drive needs fixing (Fedora/Linpus)
Hi,
I unwisely lent my USB stick to a friend who desperately needed to copy some files between home and work. When she returned it, I plugged it in and found the files could not be read (I have a few things on there she was told not to delete). It appears to have become corrupted- can't say how it happened as I wasn't with her, though she was successful in using it (windows machines of some variety).
Output of ls is a succession of 'ls:cannot access <garbage> Input/output error' with the odd 'No such file or directory' interspersed between them.
I'd like to recover my files if possible, a few are latest versions and hence the backups aren't up to date.
I'm using an Acer Aspire one with the supplied Linpus linux (based on fedora 8), also have access to my old laptop and desktop with older versions of fedora on them.
On the Aspire one, kernel is 2.6.23.9lw
The usb drive is a 16GB Super-Talent (really small one) which mounts as /media/disk
Using fsck gives a response of:
fsck 1.40.2 (12-Jul-2007)
Checking all file systems.
[/sbin/fsck.ext2 (1) -- /] fsck.ext2 disk /dev/sda1
fsck.ext2 however results in:
e2fsck 1.40.2 (12-Jul-2007)
fsck.ext2: Is a directory while trying to open disk
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
I've read that using e2fsck on a mounted drive is a bad idea, so am looking for suggestions. I just want to recover the files (and am hoping I can then format the disk and make it useable again).
Any suggestions would be much appreciated. Thanks for your time.
If she successfully used it on Windows that would indicate that it's filesystem is probably FAT*, try using Windows data recovery tools eg. GetDataBack ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.