ReiserFS: Difference between revisions

From miki
Jump to navigation Jump to search
(Created page with '__TOC__ This page is part of the Linux Disk Management pages. == Tuning == For better performance, use mount switch <code>noatime,notail</code> (see [http://www.funtoo.org/…')
 
No edit summary
 
Line 5: Line 5:
== Tuning ==
== Tuning ==
For better performance, use mount switch <code>noatime,notail</code> (see [http://www.funtoo.org/en/articles/linux/ffg/2/])
For better performance, use mount switch <code>noatime,notail</code> (see [http://www.funtoo.org/en/articles/linux/ffg/2/])

== Undelete ==
See [http://antrix.net/posts/2004/reiserfs-undeletedata-recovery-howto/]. Basically:
* Stop any activity on the partition, unmount it!
* Mount back the partition '''read-only''', backup all data:
<source lang=bash>
sudo tar cvzpf /data/backup.tgz .
</source>
* Unmount the partition
* Run ''reiserfsck'' (this step might corrupt even un-damaged files):
<source lang=bash>
reiserfsck --rebuild-tree -S -l /root/recovery.log /dev/hda3
</source>
* Look for files in <tt>lost+found</tt>
* Restore the backup
<source lang=bash>
sudo tar xvzpf /data/backup.tgz
</source>

Latest revision as of 18:50, 1 January 2012

This page is part of the Linux Disk Management pages.

Tuning

For better performance, use mount switch noatime,notail (see [1])

Undelete

See [2]. Basically:

  • Stop any activity on the partition, unmount it!
  • Mount back the partition read-only, backup all data:
sudo tar cvzpf /data/backup.tgz .
  • Unmount the partition
  • Run reiserfsck (this step might corrupt even un-damaged files):
reiserfsck --rebuild-tree -S -l /root/recovery.log /dev/hda3
  • Look for files in lost+found
  • Restore the backup
sudo tar xvzpf /data/backup.tgz