LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-24-2008, 05:13 PM   #1
mrmike503
LQ Newbie
 
Registered: Apr 2008
Distribution: Ubuntu/CRUX
Posts: 11

Rep: Reputation: 0
Too many files need repair on USB, says vfat


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.
 
Old 09-24-2008, 06:28 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
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.
 
Old 09-24-2008, 06:47 PM   #3
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, you should be able to recover the file with testdisk photorec.

This is a great tool...
http://www.cgsecurity.org/wiki/PhotoRec

Hope that helps, Glenn
 
Old 09-24-2008, 07:37 PM   #4
mrmike503
LQ Newbie
 
Registered: Apr 2008
Distribution: Ubuntu/CRUX
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GlennsPref View Post
Hi, you should be able to recover the file with testdisk photorec.

This is a great tool...
http://www.cgsecurity.org/wiki/PhotoRec

Hope that helps, Glenn
Worked like a charm. Thank you so much!
 
Old 09-24-2008, 10:42 PM   #5
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Glad to be of help.
 
Old 09-25-2008, 02:49 PM   #6
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Don't forget to back up your data this time!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Repair rar files in Linux nostromo Linux - Software 9 08-17-2012 09:08 PM
Repair Music Files, which prog is best??? rickon Linux - Software 2 08-18-2007 02:17 PM
I ran fsck.vfat to repair hard drive, and got a bunch of .REC files ! wearetheborg Linux - Hardware 12 04-14-2007 05:54 AM
How to repair a usb key? betchou Linux - Hardware 14 05-23-2005 10:14 AM
copy files from vfat to vfat from linux? purpleburple Linux - General 2 12-11-2002 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration