I accidentally did
mv file /an/important/directory
instead of
mv file /an/important/directory/ormv file -t /an/important/directory,
so it now looks like /an/important/directory/ is clobbered. (I thought I† aliased mv to mv -i to prevent this kind of thing…)
But my filesystem is not smaller, making me think the files have not actually moved and I could do something to an inode to help the system find and organise those non-deleted files again.
Added: since same drive is apparently important, I should add that /media/target.folder is what I clobbered. I was trying to move stuff off /dev/sda1.
† sudo mv: oh wait. I didn't alias mv=mv -i in /home/root/.bash_aliases as well as in ~/.bash_aliases. sudo mv likely calls the root version. Whoops.
UPDATE: Per @HackSlash’s comment, here is what my /media directory looks like:
i@scheherezade:/media$ ls -oh
total 80K
drwxr-xr-x 4 root 4.0K Jul 26 16:17 backup
drwxr-xr-x 2 root 4.0K Dec 8 2016 DEIMOS
drwxrwxrwx 69 mars 4.0K Mar 14 13:20 PHOBOS
drwxr-xr-x 113 i 56K Jul 26 18:10 media
drwxr-xr-x 4 root 4.0K Mar 31 08:43 opt
drwxrwxr-x 7 i 4.0K Mar 30 17:27 puck
I was trying to move file to /media/media, where the first /media is the system saying "things that are mounted", and the second /.../media is me saying "video and audio files". Something is clearly different about /media/media, but I don’t know if this answers @HackSlash’s suggestion about symlinks.