Jump to content


Photo

Recovery deleted direcory


  • Please log in to reply
10 replies to this topic

#1 ims

  • PLi® Core member
  • 11,049 posts

+165
Excellent

Posted 11 June 2019 - 07:54

Today morning - in Dream-explorer plugin I removed whole "movie" directory (placed on usb hdd mounted as /hdd).

Exist some utilities for e2 box (mips32el, but I can plug it to arm too) recovery files in this directory or for recovery this whole directory with all subdirs too ?


Kdo nic nedělá, nic nezkazí!

Re: Recovery deleted direcory #2 Erik Slagter

  • PLi® Core member
  • 45,155 posts

+495
Excellent

Posted 11 June 2019 - 09:23

from ext2 to ext3 to ext4 it becomes progressively harder to recover files after deletion.

 

There is a tool though that tries to find and stitch together media files. I'm not too sure it also works for transport streams though. It's called "testdisk" and it has a program called "photorec" with it.

 

I don't think it's in our OE though.


* Wavefrontier T90 with 28E/23E/19E/13E/9E/4.8E/0.8W/5W via SCR switches 2 x 2 x 6 user bands
* Ziggo digital cable TV (FTA)
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.

Re: Recovery deleted direcory #3 littlesat

  • PLi® Core member
  • 47,853 posts

+499
Excellent

Posted 11 June 2019 - 10:45

That is the risk of a plugin like "Dream-explorer"... with normal E2 the files are moved to .Trash...


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Recovery deleted direcory #4 ims

  • PLi® Core member
  • 11,049 posts

+165
Excellent

Posted 11 June 2019 - 11:03

No, my target was remove picons (which I installed due somebody ;) ) ... I do not know, why I used movie - too early in the morning for me.


Kdo nic nedělá, nic nezkazí!

Re: Recovery deleted direcory #5 ims

  • PLi® Core member
  • 11,049 posts

+165
Excellent

Posted 11 June 2019 - 12:13

It has no sence with photorec ... thousands and thousands .ts and .mpg files with 12kB-24kB...


Kdo nic nedělá, nic nezkazí!

Re: Recovery deleted direcory #6 littlesat

  • PLi® Core member
  • 47,853 posts

+499
Excellent

Posted 11 June 2019 - 12:32

I prefer for such job to use the console (putty)... you can do an extra check with ls before deleting... With the UI browser an accident does happen too easily.


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Recovery deleted direcory #7 mrvica

  • Senior Member
  • 670 posts

+37
Good

Posted 11 June 2019 - 13:27

there are more recovery tools, give it a try

https://www.ubuntupi...sionals-choice/



Re: Recovery deleted direcory #8 ims

  • PLi® Core member
  • 11,049 posts

+165
Excellent

Posted 11 June 2019 - 14:49

I prefer for such job to use the console (putty)... you can do an extra check with ls before deleting... With the UI browser an accident does happen too easily.

 

I see, how I starting putty from bed ;)

It was overwhelming. Instead delete on 'movie' I press it one directory botton - on 'movie'. And with confirmation ! Well, the box has 1TB free space again.

 

there are more recovery tools, give it a try

https://www.ubuntupi...sionals-choice/

 

Thx, but all this softs are more/less for corrupted filesystem etc. I have not corrupted filesystem, I used standard remove directory... and it seems, it is big problem under ext3/4.


Kdo nic nedělá, nic nezkazí!

Re: Recovery deleted direcory #9 40H3X

  • PLi® Contributor
  • 3,108 posts

+113
Excellent

Posted 11 June 2019 - 17:47

You could look at "photorec" in combination with "foremost"  both are native in the Kali Linux distro

 

https://www.cgsecuri...S_with_TestDisk

https://www.cgsecuri...g/wiki/PhotoRec

 

...and there are solutions when you move the USB over to Windows https://www.easeus.c...-ext3-drive.htm


Edited by 40H3X, 11 June 2019 - 17:48.

Hardware: Vu+ Uno 4k SE - Samsung HM500JI 500GB 2.5 inch - Edision OS mio 4K - Spycat Mini Plus - Vu+ Zero - Vu+ Duo - WD 1TB - Fuba 78 cm - Tripleblock LNB Quad 19.2/23.5/28.2 - NAS 4TB RAID 1
Software : OpenPLi - OScam - Settings van Hans  -  Autotimer  -  EPGImport


Re: Recovery deleted direcory #10 Erik Slagter

  • PLi® Core member
  • 45,155 posts

+495
Excellent

Posted 14 June 2019 - 09:44

Bottom line is that the more advanced a file system becomes, the less remains of a deleted file. Compare to FAT where only one bit is toggled in the FAT entry so very easy to undelete. With ext2 is still was more less possible, ext3 less and with ext4 it's simply impossible.

 

It would be nice if the file system itself would have a feature to support salvaging of deleted files (like Novell did), instead of relying on design flaws (FAT...). So it would not touch any data or metadata used by now deleted files until there are no more really free block and then start recycling the ones deleted longest ago.

 

Or use a NAS that does support snapshot backups  ;) AFAIK BTRFS also supports something like that.


* Wavefrontier T90 with 28E/23E/19E/13E/9E/4.8E/0.8W/5W via SCR switches 2 x 2 x 6 user bands
* Ziggo digital cable TV (FTA)
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.

Re: Recovery deleted direcory #11 WanWizard

  • Forum Moderator
    PLi® Core member
  • 46,688 posts

+766
Excellent

Posted 14 June 2019 - 15:43

Same with XFS and ZFS. Snapshots, but no undelete facitity.


Currently in use: VU+Duo 4K (2xFBC S2), Amiko Viper T2C (T2), SAB Alpha Triple HD (S2+T2), Zgemma H3.T2C (T/C), Zgemma H6 (fallback), VU+Zero (fallback)

Many answers to your question can be found in our new and improved wiki.

note: I do not provide support via PM !

 





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users