Recover your files
You have to complete 6 steps to restore your files:
-
Scan for your files.
hfsprescue -s1 <device node|image file> [-b <block size>] [-o <offset in bytes>] [-d <working / destination directory>] [-f|--force]
-
Cleanup file database.
hfsprescue -s2 [--utf8len <value 1 to 5>] [--future-days <days>] [-d <working directory>]
-
Restore your files.
hfsprescue -s3 <device node|image file> [-b <block size>] [-o <offset in bytes>] [-d <working directory>] [--vh-file <file name>] [--eof-file <file name>] [-c <file number>] [--alternative]
-
Restore your directory structure.
hfsprescue -s4 [-d <working directory>]
-
Move the restored files to the correct directories.
hfsprescue -s5 [-d <working directory>]
-
Last step, finalize and cleanup.
hfsprescue -s6 [-d <working directory>] [-k]
hfsprescue will guide you through every step and is telling you the command for the next step.
A simple example for the 6 steps:
hfsprescue -s1 /dev/sdb2
hfsprescue -s2
hfsprescue -s3 /dev/sdb2
hfsprescue -s4
hfsprescue -s5
hfsprescue -s6
© 2024 by
Elmar Hanlhofer
|