This is a followup on my original post Recover accidentally deleted directory which may be deleted in the future.
In the process of backing up my audio books, I "permanently" removed a folder (with subfolders) that I had already exclusively moved to that drive. It's path is /media/gratis/Seagate Expansion Drive/Audiobooks/Jason Dark
. The sole folder in that should be called John Sinclair; but I'm not sure about that.
Which tool offers the best chances to recover those files? I haven't written plenty on that drive afterwards; so I hope for the best. It's not that other methods failed; I just cant get my head around what to do and I want to be cautious. It's a NTFS Drive.
According to testdisk it has an "EFI GPT" Partition table.
Disk /dev/sdb - 5000 GB / 4657 GiB - CHS 608001 255 63, sector size=512 - Seagate Expansion Desk, FW:9401
Information According to "Disks" (Ubuntu Standard Software):
NTFS; GUID Partition Table; [...] Partition Type: Microsoft Reserved
Attempt 1: First off, ntfsprogs
seems to no longer be in repos (those mentioned by another user); but it is already installed on my machine so no problems there. I always get the error:
Access is denied because the NTFS volume is already exclusively opened. The volume may be already mounted, or another software may use it which could be identified for example by the help of the 'fuser' command. You can use force option to avoid this check, but this is not recommended and may lead to data corruption.
Although I only just plugged it in and even quit Nautilus by force (nautilus -q
).
Therefore, I ran sudo ntfsundelete /dev/sdb2 -f
. That gave me a list of a bunch of files, 205013 to be exact. Now, what I want is the content of the directory .../Audiobooks/Jason\ Dark/
to be restored. What do I have to do? It's contents are .m4b
& .opus
files and folders, of course.
udisksctl unmount --block-device /dev/sdb2
orsudo umount /dev/sdb2
(replacesdb
with whatever the kernel name of the drive is currently). – David Foerster Jun 04 '17 at 12:02I will try to work with the link you provided (I did read some ntfsundelete tutorial) but I was hoping for a short series of concrete commands or steps in a gui because I thought I had sufficiently outlined my problem.
– Markus Gratis Jun 05 '17 at 16:37gratis@Zarathustra:~$ sudo umount /dev/sdb2 gratis@Zarathustra:~$ sudo ntfsundelete /dev/sdb2 Volume is scheduled for check. Please boot into Windows TWICE, or use the 'force' option. NOTE: If you had not scheduled check and last time accessed this volume using ntfsmount and shutdown system properly, then init scripts in your distribution are broken. Please report to your distribution developers (NOT to us!) that init scripts kill ntfsmount or mount.ntfs-fuse during shutdown instead of proper umount.
& same if I use udisksctl unmount --block-device /dev/sdb2 first
– Markus Gratis Jun 05 '17 at 16:45{}
button in the editor toolbar) will be much more readable there; alternatively you can use a pastie service for longer listings and include the link of your pastie in your question. Overall it’s best to have everything relevant in one place. Additionally, comments may be deleted for various reasons. Thanks. – David Foerster Jun 05 '17 at 16:49I'm just running the deep analysis via testdisk which will take a while.
– Markus Gratis Jun 06 '17 at 18:19