Windows 10: Any way to recover/repair a text file corrupted by a BSOD? Solved

  1.    27 Mar 2018 #1

    Any way to recover/repair a text file corrupted by a BSOD?

    I'm furious! I spent several hours adding and updating the code in a large GUI application I'm developing, saving the changes every minute or so like a good boy. Well, I'd just finished a save when I got some kind of kernel BSOD. I rebooted and went back to the code file I had been working on and found to my horror that the second half of the text file -- the very area I had added hundreds of lines of code to, was now completely gone!

    It's not as if I hadn't been saving the file very, very often. And I do have a backup copy I made yesterday, but that doesn't include the hundreds of lines I added today! I'd never had a BSOD rape me the one this one did, and who could have foreseen such a thing?

    I have already tried running two different data recovery tools (obviously not from the same drive), Runtime Software's "Get Data Back" (simple and NTFS paid versions) as well as MiniTool Power Data Recovery paid version, but neither one was apparently designed to recover partially corrupted files.

    So I came to ask you folks if any of you know if there are any other options I can try. I'm pessimistic, but I didn't want to just surrender without asking...

      My ComputersSystem Spec

  2.    27 Mar 2018 #2

    OMG, I did it! I can scarcely believe it, but I did it!

    Here's what I did. I used a disk editor to search the entire disk for some text that would only exist within a disk region that contained the new code I was working on, whether allocated to a file or not. And it actually found it -- after the last good line of text in the very same file. It turned out that the last half of that file was not actually gone, but rather the corruption merely moved the effective EOF much earlier than it should have been. So I used that disk editor to simply copy the "missing" part of the file (the part after the bogus EOF) to another text file, then I opened up the original file for editing and pasted the missing text back into the original file and saved it.

    Bingo -- now the file had all of my hard work back in place! Hooray!!
      My ComputersSystem Spec

  3.    27 Mar 2018 #3

    Nice save, Thenin! A knowledge of file structures and layouts did you right in this case. Good job.
      My ComputersSystem Spec

  4.    29 Jun 2018 #4

    EdTittel said: View Post
    Nice save, Thenin! A knowledge of file structures and layouts did you right in this case. Good job.
    Wow, thanks enormously, Wise Guru Sir! Coming from you, that's high praise indeed!
      My ComputersSystem Spec


Related Threads
SFC failed to repair corrupted file in Performance & Maintenance
Hello, I'm not a computer enthusiast. I periodically run sfc, dism and chkdsk to keep my operating system in working condition. Just today when I ran sfc via an elevated command prompt window it found some corrupted files but was unable to fix. I...
Recover 10 key from corrupted hard drive in Installation and Upgrade
My aunt upgraded her 5 year old Win 7 desktop to Win 10. The PC ran well until this morning when she got errors upon boot (Preparing automatic repair, diagnosing your PC) After we tried and failed to get anything in the troubleshooter to 'repair'...
Hi, I still have a corrupted SDcard that contains images of families 3 years ago. The last action was viewing images and let windows load thumbnails without touching anything, and the sdcard suddenly got corrupted for no reason. Today, when i...
Solved Have some files corrupted and can't repair in Performance & Maintenance
Hi, have some files corrupted and can't repair. 90054 Maybe the images both online and offline from TechBench/Media Creation Tool aren't updated since the update came out yesterday... In my Laptop i have only opencl.dll corrupted.
Repair corrupted JPGs in Software and Apps
I recovered the pics after I deleted them, But half of them are corrupted ! Any suggestions about a software that I might use ! Thank you All.
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 00:56.
Find Us