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.
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!