Article 6MBXS How To Recover TXT File that Will Not Open or Copy, Input/Output Error

How To Recover TXT File that Will Not Open or Copy, Input/Output Error

by
coal-fired-linux
from LinuxQuestions.org on (#6MBXS)
Hello.

I have a few TXT files which no longer open. This problem has occurred from time to time on one TXT file while the other TXT files that I had been using still work. Perhaps there was an error when saving but I am not sure. Perhaps there is a problem finding or recognizing EOF or some similar issue.

I tried the "cp" command and one file copied the beginning of the file (many lines) but not the rest, while another file did not copy at all.

I have seen references to using "dd" but I have not seen any explanation of how to locate the file's physical location, so that I might do some kind of quick copy.

The TXT files might be large for a TXT file, sometimes maybe more than 1MB, but tiny compared to a multi-GB storage drive.

My past experience includes using the command line, using a hex editor, and compiling programs--but I am rusty.

Thank you.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments