BLOCKCALC(1)					     BLOCKCALC(1)


NAME
       blockcalc - Converts between unallocated block numbers and
       regular block numbers.

SYNOPSIS
       blockcalc [-du] block image

DESCRIPTION
       blockcalc creates  a  block  number  mapping  between  two
       images,	one  normal  and  another  that only contains the
       unallocated blocks of the first.	 One  of  the  -d  or  -u
       options	must  be  given.  If the -d option is given, then
       the block value is the block number in the  regular  image
       (i.e. from dd(1)).  If the block is unallocated, its block
       number in an unallocated image is given.	 If the -u option
       is  given, then the block value is the block number in the
       unallocated block image (i.e.  from unrm(1)).   Its  block
       number  in the original image is determined.  The image is
       the full, original image (i.e. from dd(1)).


       This is useful when using lazarus on an image generated by
       unrm.   This  allows  one  to  identify the original block
       value and provides better documentation.


EXAMPLE
       # blockcalc -u 64 images/wd0e


SEE ALSO
       dd(1), unrm(1), lazarus(1)


HISTORY
       blockcalc first appeared in TCTUTILs v1.01.

AUTHOR
       Brian Carrier <carrier@cerias.purdue.edu>








User Manuals		     MAY 2001				1


