SeqBox and BlockHashLoc file recovery tools

Martin Brinkmann
Jun 26, 2017
Data recovery, Software
|
4

SeqBox and BlockHashLoc are two file recovery tools designed to help recover files if the file system of a storage device is not accessible anymore.

Files may become inaccessible in a number of ways. They may have been deleted, they may be corrupt, or if the underlying file system of the storage device is corrupt or deleted.

The latter can be extremely frustrating, as file recovery software usually won't be able to recover most files, especially if they were fragmented on the drive.

While backups help, they require storage space that is at least as large as the total amount of data that all files occupy that need to be backed up. Since it is recommended to create multiple backups, it usually means that backup storage needs to have a multiple of the size of the backed up data.

SeqBox and BlockHashLoc

SeqBox and BlockHashLoc, the latter is based on the former, are two tools that create recovery files that users and system administrators may use when disaster strikes. The tools are not a replacement for backups, as they cannot restore files if some data is not available anymore, but they may complement traditional backup solutions.

Both applications calculate cryptographic hashes of all blocks that compose a file. The recovery process uses the information to select the blocks on the storage device that the original file was made of to piece them together.

Traditional recovery solutions are not able to do so, as they don't have the information and don't know which blocks belong to a file and which don't if the file system is missing or corrupt.

The main difference between SeqBox and BlockHashLoc is that the former creates a standalone container that contains the recovery information, the latter a parallel file.

BlockHashLoc

The program is provided as two Python scripts; one -- BHLMake -- that you can run to create BHL files with block-hases and metadata, and the other -- BHLReco -- to run recovery operations.

You can run the program using the command bhlmake *.* to process all files in a directory, or use specific filters, e.g. blhmake *.jpg to process all JPG images.  You may use the -r parameter to recurse directories on top of that.

The program creates small bhl files for each file that is processed during the make process. These files are used later on by the recovery process. The -t parameter runs tests on these files to make sure they are not corrupt. The recovery files are relatively small, usually between 6 and 10% of the original file.

To restore files after disaster struck, you'd run the bhlreco storagedevice -bhl *.bhl command. You need to replace storagedevice with the disk that you want scanned.

SeqBox

seqbox

SeqBox works a bit different from BlockHashLoc. It comes with four tools instead of two. You can use the tool SBXEnc to encode a file to a SBX Container, and SBXDec to decode it back to the original file.

The two recovery tools are SBXScan, which scans a set of files and creates an SQLite database with the recovery information, and SBXReco which uses the recovery information of SBXScan to recover the files.

Closing Words

BlockHashLoc and SeqBox are two interesting programs that may help with file recovery under certain circumstances.

While they do use the same methods to identify files on a storage device, they differ when it comes to the output. SeqBox creates an container with the file in question, BlockHashLoc a separate file instead.

Now You: how do you protect important files?

 

Summary
SeqBox and BlockHashLoc file recovery tools
Article Name
SeqBox and BlockHashLoc file recovery tools
Description
SeqBox and BlockHashLoc are two file recovery tools designed to help recover files if the file system of a storage device is not accessible anymore.
Author
Publisher
Ghacks Technology News
Logo
Advertisement

Tutorials & Tips


Previous Post: «
Next Post: «

Comments

  1. Maelish said on June 27, 2017 at 4:28 pm
    Reply

    I’d recommend Spinrite. In a worst case scenario, that’s the software I depend on. It’s fantastic.

  2. bufferer said on June 27, 2017 at 1:48 pm
    Reply

    “These programs will run into recovery issues if the file system is not accessible anymore”

    Not quite. At least TestDisk is used to repair disks that appear as raw partition. A raw partition can’t be accessed in anyway.

    Besides, there isn’t a singular fix-it-all tool. It’s all complementary to each other. I’ll remember these tools for next time. The more tools the better.

  3. joel said on June 27, 2017 at 9:50 am
    Reply

    Are they kinda like PhotoRec and TestDisk?

    1. Martin Brinkmann said on June 27, 2017 at 10:02 am
      Reply

      Joel, no they are different. PhotoRec and Testdisk recover files by scanning “what is there”. These programs will run into recovery issues if the file system is not accessible anymore.

      The two programs discussed in this article create recovery information before the fact. If the file system changes or gets corrupt, you may still recover files that you have prepared using these tools.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.