2

I mistakenly deleted the files and folder that were whole movies collection on my external drive, the only folder left is 2014, I don't know how. The problem is from shell I ran rm -rfcommand

So now I hope there is a way to restore them all, in the long past I have restored deleted data on Windows computer using data recovery software.

From the google search I came across this link: https://unix.stackexchange.com/questions/80270/unix-linux-undelete-recover-deleted-files

That shows using debugfs however I do not have any file naming : /dev/mapper/wks01-root , what should I do where it would be in case of Raspbian Jessie.

The file system on the external drive on which files and folder got deleted is NTFS.

I have lost lots of good collection of Movies until it is restored, any help would be greatly appreciated.

ChrisM
  • 139
  • 1
  • 9
Ciasto piekarz
  • 355
  • 2
  • 12
  • 28

3 Answers3

2

Give TestDisk a try. BUT from another computer.

As you have no Windows at hand, this runs under Linux.

Good luck.

Hendrik Eggers
  • 103
  • 1
  • 6
1

DISMOUNT THAT CARD RIGHT NOW.

It can be done, but let this be a lesson that there is no substitute for good backups. With the Rpi you are fortunate that you can use W32DiskImager periodically.

If you really have lost files without any kind of backups, immediately dismount the card, then get ready for this...

https://www.linux.com/news/bring-back-deleted-files-lsof

Hopefully you will learn to prepare instead of pray, in the future. (Of course, praying never hurts)

Piotr Kula
  • 17,336
  • 6
  • 66
  • 105
SDsolar
  • 2,378
  • 8
  • 26
  • 43
0

in the long past I have restored deleted data on Windows computer using a data recovery software

That's what you should do now then. Recovering data is about the filesystem occupying the partition where the files were stored, not the operating system or device used to do the deleting. Since the filesystem is NTFS, your best chance of recovery is via whatever tools are available on MS Windows for this purpose.

If the external drive is a spinning disk and you have not done much with it since your mistake, then your chances are pretty decent of recovering at least some of the stuff.

goldilocks
  • 60,325
  • 17
  • 117
  • 234