Rescue mode basics - darrenldl/blockyarchive GitHub Wiki

Rescue

Typical command run

blkar rescue DISK_IMAGE RESCUE_DIR LOGFILE

LOGFILE allows you to resume your progress similar to ddrescue.

Rescue mode is similar to ddrescue in usage, but blkar only scans linearly and does not have algorithms for extracting as much data as possible from a failing disk. If you have a failing drive, DO NOT use blkar directly on the failing disk, use a proper imaging software to create an image first, then use blkar on the image.

Rescue mode extracts all versions of SBX blocks and store them as RESCUE_DIR/UID where the UID is the file uid of the SBX container.

Sample run

$ blkar rescue disk.img rescued_data rescue.log
Press Ctrl-C to interrupt
Data rescue progress
Time elapsed : 00:00:00  Average rate :  13.55M bytes/s
Number of bytes processed             : 1355264
Number of blocks processed            : 2544
Number of blocks processed (metadata) : 3
Number of blocks processed (data)     : 2541

Rescued data

$ ls rescued_data/
4557A870EFE5

Log file content

$ cat rescue.log 
bytes_processed=1355264
blocks_processed=2544
meta_blocks_processed=3
data_blocks_processed=2541