This question already has an answer here:

Good day everyone I do not understand why i can't access the file on my flash drive. I edited the said file less than 2 minutes, saved it, made sure to click the unmount button and restarted my computer (i learned to click the unmount the hard way). Now when i tried to access the file its giving me the following error: Unexpected error: Error reading from file: Input/output error

when i try to copy it to another location on the drive i get the following Error opening file '/media/ubuntu/Drive Name/New Folder/file name': Read-only file system

When i copy the file to the desktop i get the following: Error splicing file: Input/output error

But when i am able to open the file and a SIGNIFICANT AMOUNT of detail is missing. about 6 months worth of detail. Please i must recover the full amount of details in that document. Since i added info and saved it under that same name, will disk carving be of any help?

Thank you very much

marked as duplicate by DavidPostill Sep 27 at 19:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 0 down vote accepted

Sound like a defective/corrupted drive/file/file system.

This is important:

You should immediately make an "raw" image of the drive and try to restore/recover the file form the image. Do not try to write to the flash drive. This might result on more loss. Better don't use the drive at all except for making the image.

Once you have the image, try to mount it and see if the corruption is only on the one file. After that you have to start to recover the file manually but it might not be possible at all. Please post the specific problems for further help.

And backup your data on a daily basis so you won't have to learn it the hard way again!

  • Something has been telling me to make a backup of this particular file for a while and i just didn't listen. But why though? I used it less than 2 two minutes. I should use dd to an image and save it as an .img? – JDDoe Sep 27 at 20:00
  • @JDDoe I'm not sure if DD image can handle flash drives, but if you search on how to make flash drive image you will find plenty of answers. Why it went bad? Who know, maybe the flash drive it self is stating to fail, I just had this happen to me last week. And if you don't find enough answers/information on how to create the image or recover the data just ask as second (specific!) question. – Albin Sep 27 at 20:10
  • I was able to image the drive using dd and guymager. Mount and try image recovery. Will i be able to mount if from an external hard drive and try to recover the files on the same hard drive. I have another question. SInce i have saved this same file on the same location many times, if i do a recovery will it recover the files under their original name for example if the file was named what.txt will it recover the file under what.txt? If not thats going to be A LOT of text files to go through? Will i be able to specify the date i want it to recover through. lets say within the past week? – JDDoe Sep 28 at 19:46
  • @JDDoe is that a question or a statement? – Albin Sep 28 at 19:48
  • sorry the question will be these: Will i be able to mount if from external hard drive A and recover the files to the same hard drive? Since i have saved this same file on the same location many times, if i do a recovery will it recover the files under their original name for example if the file was named what.txt will it recover the file under what.txt? Thank you – JDDoe Sep 28 at 20:22

Not the answer you're looking for? Browse other questions tagged or ask your own question.