The file system stores the metadata separately from the data - the drive controller tells the host machine that it has 2tb of storage; the files all look like they are stored OK on the device, but when the controller tries to retrieve them, it’s addressing nonexistent storage for the contents.
Relieved to see this isn’t a factor in the issue described in this thread.
Middle column: The hex values of the bytes in the file
Last column: The text representation of the bytes
The numbers will look weird since they are in hex. Hex is a number system commonly used in computers. It goes from 1-16 rather than 1-10. But you can just look at the last column to see what characters are in the file. Sometimes if a byte at the beginning gets messed up it causes the text processing to get messed up. Having a zero or certain control characters might do it. The hex dump should allow you to see each and every character in the file from beginning to end.
Thanks. I’m quite conversant in hex, so much so that each of my hands grew three extra fingers . The dumps in that case just showed garbage. No way to resolve what happened now.
What you’re describing here sounds so different from the vi versions I’ve had experience with, as to not be recognizable as the same program. The last time I used vi, you started off in command mode, and needed to use a control-key combination (that was not listed on screen) to even get into editing mode, and then once in editing mode, to do anything other than editing (like, say, save the work that you’ve done), you needed a different control-key combination (which the program also didn’t tell you) to get back to command mode. I don’t think it even supported arrow keys, and it certainly didn’t support the mouse.
Are you really claiming that you use an infinite undo function in an editor as a type of source control? Please correct me if I have misinterpreted, but not in a million years would I think to use an editor function to access a revision from months ago. That job is for Git, Perforce, etc.
Of course not. But one thing I have done is made some minor changes in a program, commented some stuff out, saved the file, and done some testing, only to decide to open up the file again and undo the changes. Not months, but let’s say 10 minutes.
Here is a screenshot of the version I was describing:
You will notice the pull-down menu tabs and the toolbar at the top, and the mouse functionality.
But it is absolutely the same program you are describing, you can run it from a text-only “terminal” environment like the Command Prompt (in which the arrow keys still work, and also the mouse depending on the terminal emulator), and, yes, it still has the concept of “modes”, which if you don’t like then you don’t like, but is explained in the first minute of the new-user tutorial (hint: the “Control” key is not involved Unless you want to select a rectangular block of text rather than by lines, that’s control-v)
ETA I brought up Vim in this thread because I do use it for text editing tasks in Windows, for which it is more than suitable and not hard to use. And, what is relevant here, you will immediately be able to distinguish a file full of text from one filled with null bytes or other garbage. But many other text editors can do so as well, or you can use a hex editor, eg HxD - Freeware Hex Editor and Disk Editor | mh-nexus
If you are using notepad, try looking at the status bar at the bottom of the window and report back what it reads (for example, “Ln 1, Col 16 | 100% | Windows (CRLF) | UTF-8”). If you can’t see a status bar you can enable it in View->Status bar.
It’s certainly looking like the data I had in this file is gone. It’s not a huge issue. But I wanted to make whatever attempts I could to recover it before acknowledging it’s lost and deleting the file.