BLKCALC(1)
π BLKCALC(1) π
okay bestie, gather round, because this is blkcalc from the General Commands Manual, and she is lowkey the translator of the Unix world π«Ά
β¨ NAME β¨
blkcalc β the girl who converts between unallocated disk unit numbers and regular disk unit numbers. it's giving bilingual icon π
πΈ SYNOPSIS πΈ
blkcalc [-dsu unit_addr] [-vV] [-i imgtype] [-o imgoffset] [-b dev_sector_size] [-f fstype] image [images]
π¦ DESCRIPTION π¦
so here's the vibe: blkcalc creates a disk unit number mapping between two images β one normal, and another one that only contains the unallocated units of the first (that second one is literally the default behavior of the blkls(1) program, no cap). π
β οΈ bestie listen. One of the-d,-s, or-uoptions must be given. not optional. periodt.
here's how the three main character options work:
- if
-dis given, then theunit_addrvalue is the disk unit address in the regular image (i.e. fromdd). and if the unit is unallocated, its address in an unallocated image is given. π« - if
-uis given, then theunit_addrvalue is the disk unit address in the unallocated unit image (i.e. fromblkls(1)). its disk unit address in the original image is determined. β¨ - if
-sis given, then theunit_addrvalue is the disk unit address in the slack image (i.e. fromblkls -s). theimageis the full, original image (i.e. fromdd). π
also, tiny lore drop for the historians in the chat: blkcalc was called dcalc in TSK versions prior to 3.0.0. glow-up behavior fr fr π
π OPTIONS π
-f fstypeβ identify the File System type of the image. use'-f list'to list the supported file system types. if you don't give it, autodetection methods are used. she'll figure it out herself, she's smart π-i imgtypeβ identify the type of image file, such asraw. use'-i list'to list the supported types. if not given, autodetection methods are used. π-o imgoffsetβ the sector offset where the file system starts in the image. π-b dev_sector_sizeβ the size, in bytes, of the underlying device sectors. if not given, the value in the image format is used (if it exists), or512-bytes is assumed. default queen π-vβ Verbose output toSTDERR. she will tell you everything, and honestly? we love that πΈ-Vβ Display version. gotta know which era of her we're dealing with βimage [images]β the disk or partition image to read, whose format is given with'-i'. multiple image file names can be given if the image is split into multiple segments. if only one image file is given, and its name is the first in a sequence (e.g., as indicated by ending in'.001'), subsequent image segments will be included automatically. she just knows ππ«Ά
this is useful when keyword searching an image generated by blkls. it allows one to identify the original unit address and provides better documentation. like, receipts. we love receipts. π₯
π EXAMPLE π
# blkcalc -u 64 images/wd0e
look at her go πβ¨
π SEE ALSO π
π§ AUTHOR π§
Brian Carrier <carrier at sleuthkit dot org>
send documentation updates to <doc-updates at sleuthkit dot org> π
and that's the whole page, bestie β this was BLKCALC(1) from the General Commands Manual, mwah π stay iconic, go map some disk units π¦π
π¦ where this page comes from
- alpine 3.24: sleuthkit-doc 4.15.0-r0 Β· custom
- arch rolling: sleuthkit 4.15.0-1 Β· CPL-1.0 AND GPL-2.0-or-later AND IPL-1.0
- debian bookworm: sleuthkit 4.11.1+dfsg-1+b1 Β· CPL-1.0
- debian trixie: sleuthkit 4.12.1+dfsg-3 Β· CPL-1.0
- epel 10: sleuthkit 4.15.0-2.el10_3 Β· CPL-1.0 AND IPL-1.0 AND GPL-2.0-or-later
- epel 9: sleuthkit 4.15.0-2.el9 Β· CPL-1.0 AND IPL-1.0 AND GPL-2.0-or-later
- fedora 43: sleuthkit 4.14.0-4.fc43 Β· CPL-1.0 AND IPL-1.0 AND GPL-2.0-or-later
- fedora 43: sleuthkit 4.15.0-2.fc43 Β· CPL-1.0 AND IPL-1.0 AND GPL-2.0-or-later
- fedora 44: sleuthkit 4.14.0-5.fc44 Β· CPL-1.0 AND IPL-1.0 AND GPL-2.0-or-later
- fedora 44: sleuthkit 4.15.0-2.fc44 Β· CPL-1.0 AND IPL-1.0 AND GPL-2.0-or-later
- nixos 26.05: sleuthkit 4.14.0
- nixpkgs unstable: sleuthkit 4.15.0
- opensuse-leap 16.0: sleuthkit 4.12.1-bp160.1.13 Β· CPL-1.0 AND IPL-1.0 AND GPL-2.0-or-later
- opensuse-leap 16.0: sleuthkit 4.12.1-bp160.1.13 Β· CPL-1.0 AND IPL-1.0 AND GPL-2.0-or-later
- opensuse-leap 16.0: sleuthkit 4.12.1-bp160.1.13 Β· CPL-1.0 AND IPL-1.0 AND GPL-2.0-or-later
- opensuse-leap 16.0: sleuthkit 4.12.1-bp160.1.13 Β· CPL-1.0 AND IPL-1.0 AND GPL-2.0-or-later
- ubuntu jammy: sleuthkit 4.11.1+dfsg-1 Β· CPL-1.0
- ubuntu noble: sleuthkit 4.12.1+dfsg-1.1ubuntu2 Β· CPL-1.0
- ubuntu questing: sleuthkit 4.12.1+dfsg-3
- ubuntu resolute: sleuthkit 4.12.1+dfsg-3build1 Β· CPL-1.0
- ubuntu stonking: sleuthkit 4.14.0+dfsg-1 Β· CPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms