If the dd command shown in post #18 is correct, then there appears to have been a transcription error in post #16. If so, that resolves that issue.I am also a bit confused: there have been multiple recommendations to not do any work on the external disk, as that could further impact in my ability to recover the data - but there are then recommendations to perform work on the disk.
Is this to say that filesystem check (fsck) won't cause further complications - and if not, what work should I avoid doing on the drive? I can't mount the drive, so it isn't as if I can write data to it, so I am getting confused.
On the matter of doing "work" on the external drive, these are the considerations that matter, as I understand them:
There's data you wish to recover from the external drive.
In post #16 you mentioned that the command blkid could see the drive.
Now, given those facts, if you use recovery tools like testdisk or photorec, they are used without mounting the external drive. If the external drive is not mounted, nothing is changed on it, rather it is merely read by the tools, and not altered. Hence any concern about messing up the external drive more than it is, can be dispelled because of the way these tools work. In fact, the tools testdisk and photorec don't read at the filesystem level, rather they read at the lower level of the disk itself directly on the block device.
There are several ways of using the tools: 1. from a live disk or rescue disk which contains them, or 2. from having them installed on the existing installation if it's working properly. If the installed system is not working perfectly well, then use a live disk.
Often in such situations, the advice is to make a byte-for-byte copy of the disk that holds the data that the user wishes to recover, and work with recovery tools on that copy of the disk. That's an extra precaution and protection, and something you could consider, but you'd need another 5TB disk to do that, and it doesn't appear necessary in this situation as I understand it.
On the matter of whether your work on the /var directory or partition played a role in the problem with the external disk, it is still unclear. If /var was on the installed system and not on the external disk, then the likelihood of the /var directory activities disabling or causing malfunction of the external disk is remote to say the least. If the /var directory was on the external disk, that's a different matter, hence the request for the output of the two commands: lsblk and blkid, as root, with the external disk plugged in, suggested in post #17. They will hopefully show the disks and the mounts and provide more context. I hope this clears a few things up.
Last edited:

