BLKCALC(1) | General Commands Manual | BLKCALC(1) |
blkcalc - Converts between unallocated disk unit numbers and regular disk unit numbers.
blkcalc [-dsu unit_addr] [-vV] [-i imgtype] [-o imgoffset] [-b dev_sector_size] [-f fstype] image [images]
blkcalc creates a disk unit number mapping between two images, one normal and another that only contains the unallocated units of the first (the default behavior of the blkls(1) program). One of the -d, -s, or -u options must be given. If the -d option is given, then the unit_addr value is the disk unit address in the regular image (i.e. from dd ). If the unit is unallocated, its address in an unallocated image is given. If the -u option is given, then the unit_addr value is the disk unit address in the unallocated unit image (i.e. from blkls(1) ). Its disk unit address in the original image is determined. If the -s option is given, then the unit_addr value is the disk unit address in the slack image (i.e. from blkls -s). The image is the full, original image (i.e. from dd). blkcalc was called dcalc in TSK versions prior to 3.0.0.
This is useful when keyword searching an image generated by blkls. This allows one to identify the original unit address and provides better documentation.
# blkcalc -u 64 images/wd0e
Brian Carrier <carrier at sleuthkit dot org>
Send documentation updates to <doc-updates at sleuthkit dot org>