daily discovery

Memory dump of new things discovered daily.

Sunday, November 27, 2005

Recovering deleted files in reiserfs

If you have accidentally deleted some files in a reiserfs partition, you can attempt to recover by first quickly unmounting the partition, and execute the following as root:
reiserfsck --rebuild-tree -S [-l recovery.log] /dev/
This will place any leaf nodes that can be recovered into the lost+found directory in the root of the partition. One can then attempt to recover files by grepping through them, as file and directory names are not preserved.

Cheers,
Steve


0 Comments:

Post a Comment

<< Home