Running Ubuntu 20.04.1 LTS, I plugged in a usb flash drive and an external drive via usb.
Using GUI "Files" I created a new directory (let's call it New_Directory for further reference) in the external hard drive.
I then selected another directory in the usb flash drive (this directory contained only one archive), and cut it.
I switched to another window of "Files" where the external hard drive was opened. There I clicked "paste".
The moving process began. It was taking some time. I didn't notice if it finished or not, but at some point in time the external hard drive's status began rapidly changing, as if it was being plugged in and out quickly (which it was not - it sits firmly on a solid ground).
After that the directory I wanted to move disappeared. It is nowhere to be found. It isn't in Trash, hidden files do not display it among them, find -name dir_name
returns nothing.
Interestingly, the New_Directory also vanished. I can't find it. Could it be of importance that its name contained ;(
at the end? Yeah, irony.
Lessons learned:
- important files should rather be copied than moved;
- perhaps copying files to the desktop first is safer than from one external device to another.
Would you please suggest a way to restore this archive?
P. S. It was only later that I noticed "Undo" and "Redo" buttons in GUI "Files". They seem to only keep track of the last operation which unfortunately was overwritten since then. But I know for sure that when I cut and pasted the directory, it was not in the buffer - "paste" option was disabled, as if there was nothing to paste.
testdisk
/photorec
. – pLumo Jul 30 '20 at 09:42ddrescue
- to no avail so far, but it may be due to the fact that I don't yet know how to use it properly. I'll try other utilities you suggest too. – Ilya Chernov Jul 30 '20 at 09:45testdisk
, hoping that the "deleted" directory would still be kept in the usb drive from which I tried to move it. It turned out to be so. While group restoration didn't work, I managed to restore the file individually! (By "group restoration" I mean that I copied a number of files and directories, just out of curiosity - wanted to see what else I had there). – Ilya Chernov Jul 30 '20 at 10:30