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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Recently, my USB drive has refused to allow any Windows or Linux system to access my photo directory that I have on the USB drive. Whenever I did ls, the results were just a mess of symbols, and a repeat of Input/Output error. I used dmesg, and received a "FAT: Filesystem panic" error. I proceeded to find out that sometimes running the command "sudo fsck.msdos -a /dev/pathtodevice" would fix the problem (In this case, the damaged files in the /photos directory). However, once the command ran, it went through many files... and finally finished with this:
Quote:
/PHOTOS/998\0000000.\000I\030
Bad file name.
Auto-renaming it.
Renamed to 998\0000000.\000I\030
/PHOTOS/999\0000000.\000W
Bad file name.
Auto-renaming it.
Renamed to 999\0000000.\000W
/PHOTOS/\223\234\010_\233.\235G
Bad file name.
Auto-renaming it.
Too many files need repair.
Is there any way to repair this USB without reformatting it? I don't have this data saved anywhere else, and would really like to salvage it if my USB is on it's way out.
Oh, and my USB is an old SanDisk Cruzer Micro 512 MB.
look up the man page on the command dd, and search in here for it
Code:
$ man dd
Hopefully that might help you, but I have to say it doesn't sound like a job i'd want. pendrives have a shelflife, and should only ever be a mobile version of your data on your PC.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.