Steps in Recovering Deleted Files in ReiserFS Partition

Asked By 40 points N/A Posted on -


I want to get back suddenly deleted file in reiserfs. Is it possible? If yes, how can I undelete files in reiserfs? Please, tell me in details.


Answered By 0 points N/A #152443

Steps in Recovering Deleted Files in ReiserFS Partition


You can try the following solution for accidentally deleted files. But don't use these steps for normal filesystem inconsistencies.
– As you think that you have lost data, do not do anything else on that partition, here you may do data to be overwritten by new data.
– Unmount that partition using like :
umount /home
– Now you have to find out the actual device this partition refers to. You can get this information using the file /etc/fstab. We will assume that here device is /dev/hda3.
– Now run the following command :
reiserfsck –rebuild-tree -s -l /root/recovery.log /dev/hda3

After the above command finishes, it can take long time for a big partition to finish, now you can check at the logfile /root/recovery.log
– Mount your partition using :
mount /home
– Now look at the lost+found directory in root of partition. In this case it can be :
– This directory contains all the files that could be recovered. Because, the filenames are not preserved for a lot of files. You will find some sub-directories – filenames within those are preserved.
– Look through the files and copy back what you need.

Login/Register to Answer

Related Questions