Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
software:files [2013/09/19 16:40]
127.0.0.1 external edit
software:files [2018/01/10 18:22]
cyril [Data recovery]
Line 8: Line 8:
   * partition your hard drive to have a separate partition for system and data   * partition your hard drive to have a separate partition for system and data
   * put important application data on the data partition (configuration, emails, ...)   * put important application data on the data partition (configuration, emails, ...)
-  * do a full mirror backup of the data partition regularly (eg with rsync) on an external hard drive or a network drive. Try to keep one copy somewhere else from your home (network drive, or one at home and one at work).+  * do a full mirror backup of the data partition regularly (eg with rsync or a deduplicate software such as Attic) on an external hard drive or a network drive. Try to keep at least one copy somewhere else from your home (network drive, or one at home and one at work).
   * take precautions to put the odds on your side in case of problem: make copies of your disks MBR (output of command p of fdisk), of your encrypted partitions headers, etc.   * take precautions to put the odds on your side in case of problem: make copies of your disks MBR (output of command p of fdisk), of your encrypted partitions headers, etc.
  
Line 49: Line 49:
 ext3grep <partition> --restore-inode <inode> # inodes => files ext3grep <partition> --restore-inode <inode> # inodes => files
 </code> Notes: "restore-all" failed while building stage2 cache with error "ext3grep: init_directories.cc:535: void init_directories(): Assertion `lost_plus_found_directory_iter != all_directories.end()' failed.". However doing a "ls inode" created this stage2 cache, and afterwards "restore-all" worked... but just restored everything on the disk even not deleted files/dirs, not taking into account the "after" option... But manually editing the stage2 cache to only keep files/dirs you want to restore then "restore-all" worked perfectly! </code> Notes: "restore-all" failed while building stage2 cache with error "ext3grep: init_directories.cc:535: void init_directories(): Assertion `lost_plus_found_directory_iter != all_directories.end()' failed.". However doing a "ls inode" created this stage2 cache, and afterwards "restore-all" worked... but just restored everything on the disk even not deleted files/dirs, not taking into account the "after" option... But manually editing the stage2 cache to only keep files/dirs you want to restore then "restore-all" worked perfectly!
 +  * ''ext4magic''
   * others: debugfs, foremost, [[http://freshmeat.net/projects/unrm/|unrm]], [[http://freshmeat.net/projects/ext3undel|ext3undel]]   * others: debugfs, foremost, [[http://freshmeat.net/projects/unrm/|unrm]], [[http://freshmeat.net/projects/ext3undel|ext3undel]]
  
software/files.txt ยท Last modified: 2024/04/22 00:04 by cyril
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0