• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Datenwiederherstellung nach versehentlichem löschen

skurial

Member
Hi zusammen!
Habe in nem unendlichen Anfall von Unachtsamkeit nen wichtigen Ordner ohne Backup auf einer Reiser Partition gelöscht - gibts irgendwelche recovery Programme um die gelöschten Dateien wiederherzustellen?
Vielen Dank!
 

Grothesk

Ultimate Guru
Schwierig.
PhotoRec kann sowas _eigentlich_ ganz gut. Allerdings gerade nicht bei ReiserFS.

http://www.cgsecurity.org/wiki/PhotoRec_DE
 
A

Anonymous

Gast
bei reiserfs hast du gute Chancen wenn du schnell bist und nicht allzuviel in dem Filesystem passiert ist.
Such mal bei google nach "undelete reiserfs linux" dort findest du zB
NOTE: These steps are only for really bad hard disk muck-ups and accidentally deleted files. For normal filesystem inconsistencies, don't use these steps!

Once you realize that you've lost data, don't do anything else on that partition - you may cause that data to be overwritten by new data.
Unmount that partition. e.g., umount /home
Find out what actual device this partition refers to. You can usually get this information from the file /etc/fstab. We'll assume here that the device is /dev/hda3.
Run the command: reiserfsck --rebuild-tree -S -l /root/recovery.log /dev/hda3

You need to be root to do this. Read the reiserfsck man page for what these options do and for more options. Some interesting options are '--rebuild-sb, --check'

After the command finishes, which might be a long time for a big partition, you can take a look at the logfile /root/recovery.log if you wish.

Mount your partition: mount /home
Look for the lost+found directory in the root of the partition. Here, that would be: /home/lost+found
This directory contains all the files that could be recovered. Unfortunately, the filenames are not preserved for a lot of files. You'll find some sub-directories - filenames within those are preserved!
Look through the files and copy back what you need.

robi
 
OP
S

skurial

Member
Vielen Dank für die Hilfe! Photrec hat super funktioniert in meinem Fall!

Gibt es für die konsole vielleicht einen Befehl wo ich innerhalb eines Ordners alle Dateien löschen lassen kann die kleiner wie bsp. 200kb sind? So kann ich mal das meiste aus den geretteten Files aussortieren. Danke!
 

admine

Ultimate Guru
skurial schrieb:
Gibt es für die konsole vielleicht einen Befehl wo ich innerhalb eines Ordners alle Dateien löschen lassen kann die kleiner wie bsp. 200kb sind? So kann ich mal das meiste aus den geretteten Files aussortieren. Danke!

Schau dir "find" mit Option "-size" an ... siehe Man-Pages.
 
Oben