ReiserFS File Undelete HOWTO - CGSecurity
/**/
var skin = "monobook";
var stylepath = "/mw/skins";
var wgArticlePath = "/wiki/$1";
var wgScriptPath = "/mw";
var wgServer = "http://www.cgsecurity.org";
var wgCanonicalNamespace = "";
var wgNamespaceNumber = 0;
var wgPageName = "ReiserFS_File_Undelete_HOWTO";
var wgTitle = "ReiserFS File Undelete HOWTO";
var wgArticleId = 1779;
var wgIsArticle = true;
var wgUserName = null;
var wgUserLanguage = "en";
var wgContentLanguage = "en";
/**/
ReiserFS File Undelete HOWTO
From CGSecurity
Jump to: navigation, search
If you accidentally deleted some files from a ReiserFS partition, don't loose every hope,
you may recover your data following this howto.
In this example, the ReiserFS filesystem is mounted on /home directory
and the ReiserFS device is /dev/hda1.
As root, unmount ReiserFS partition from where to recover deleted files
umount /home
If you can't umount the partition (umount: /home: device is busy),
try again in single user mode
init 1
or boot from a Linux Live cdrom.
Backup the partition.
It's highly recommanded to backup the current partition.
dd if=/dev/hda1 of=reiserfs.dd bs=4096 conv=noerror
Undelete the files by scanning the whole partition
reiserfsck --rebuild-tree --scan-whole-partition reiserfs.dd
Create the mount point
mkdir /mnt/recovery
Mount the image on this directory
mount -o loop reiserfs.dd /mnt/recovery
Some recovered files will be at their previous location but most recovered files
will be in /mnt/recovery/lost+found. Now remount the original partition
mount /home
and copy the recovered files to the original place.
For desesperates cases, you can also try PhotoRec.
Category: Data Recovery
if (window.isMSIE55) fixalpha();
Data Recovery
TestDisk
PhotoRec
download
This page was last modified 21:37, 7 November 2006.
Content is available under GNU Free Documentation License 1.2.
if (window.runOnloadHook) runOnloadHook();