1BLKCALC(1)                  General Commands Manual                 BLKCALC(1)
2
3
4

NAME

6       blkcalc  -  Converts  between unallocated disk unit numbers and regular
7       disk unit numbers.
8

SYNOPSIS

10       blkcalc [-dsu unit_addr] [-vV] [-i imgtype] [-o imgoffset] [-b dev_sec‐
11       tor_size] [-f fstype] image [images]
12

DESCRIPTION

14       blkcalc creates a disk unit number mapping between two images, one nor‐
15       mal and another that only contains the unallocated units of  the  first
16       (the  default behavior of the blkls(1) program).  One of the -d, -s, or
17       -u options must be  given.   If  the  -d  option  is  given,  then  the
18       unit_addr  value  is  the  disk unit address in the regular image (i.e.
19       from dd ).  If the unit is unallocated, its address in  an  unallocated
20       image is given.  If the -u option is given, then the unit_addr value is
21       the disk unit  address  in  the  unallocated  unit  image  (i.e.   from
22       blkls(1) ).  Its disk unit address in the original image is determined.
23       If the -s option is given, then the unit_addr value is  the  disk  unit
24       address  in  the  slack  image  (i.e. from blkls -s).  The image is the
25       full, original image (i.e. from dd).  blkcalc was called dcalc  in  TSK
26       versions prior to 3.0.0.
27
28
29       -f fstype
30              Identify  the  File  System type of the image.  Use '-f list' to
31              list the supported file system types.  If not given,  autodetec‐
32              tion methods are used.
33
34       -i imgtype
35              Identify  the type of image file, such as raw.  Use '-i list' to
36              list the supported types.  If not given,  autodetection  methods
37              are used.
38
39       -o imgoffset
40              The sector offset where the file system starts in the image.
41
42       -b dev_sector_size
43              The  size,  in  bytes, of the underlying device sectors.  If not
44              given, the value in the image format is used (if it  exists)  or
45              512-bytes is assumed.
46
47       -v     Verbose output to STDERR.
48
49       -V     Display version.
50
51       image [images]
52              The  disk or partition image to read, whose format is given with
53              '-i'.  Multiple image file names can be given if  the  image  is
54              split  into multiple segments.  If only one image file is given,
55              and its name is the first in a sequence (e.g., as  indicated  by
56              ending  in  '.001'),  subsequent image segments will be included
57              automatically.
58
59
60       This is useful when keyword searching  an  image  generated  by  blkls.
61       This allows one to identify the original unit address and provides bet‐
62       ter documentation.
63
64

EXAMPLE

66       # blkcalc -u 64 images/wd0e
67
68

SEE ALSO

70       blkls(1),
71
72

AUTHOR

74       Brian Carrier <carrier at sleuthkit dot org>
75
76       Send documentation updates to <doc-updates at sleuthkit dot org>
77
78
79
80                                                                    BLKCALC(1)
Impressum