1FSCK.CPM(1)                      User commands                     FSCK.CPM(1)
2
3
4

NAME ..

6       fsck.cpm - check a CP/M file system
7

SYNOPSIS .

9       fsck.cpm [-f format] [-n] image
10

DESCRIPTION .

12       fsck.cpm is used to check and repair a CP/M file system.  After reading
13       the directory, it makes two  passes.   The  first  pass  checks  extent
14       fields for range and format violations (bad status, extent number, last
15       record byte count, file name, extension, block  number,  record  count,
16       size  of  .COM  files,  time stamp format, invalid password characters,
17       invalid time stamp mode).  The second pass checks  extent  connectivity
18       (multiple allocated blocks and duplicate directory entries).
19
20       fsck.cpm can not yet repair all errors.
21

OPTIONS .

23       -f format
24              Use the given CP/M disk format instead of the default format.
25
26       -T libdsk-type
27              libdsk driver type, e.g. tele for Teledisk images or raw for raw
28              images (requires building cpmtools with support for libdsk).
29
30       -n     Open the file system read-only and do not repair any errors.
31

RETURN VALUE .

33       Upon successful completion, exit code 0 is returned.
34

ERRORS .

36       Any errors are indicated by exit code 1.
37

FILES .

39       /usr/share/cpmtools/diskdefs  CP/M disk format definitions
40

ENVIRONMENT

42       CPMTOOLSFMT     Default format
43

DIAGNOSTICS .

45       image: used/total files (n.n% non-contiguos), used/total blocks
46              No inconsistencies could be found.  The  number  of  used  files
47              actually  is  the  number of used extents.  Since a file may use
48              more than one extent, this may be greather than the actual  num‐
49              ber  of  files, but a correct measure would not reflect how many
50              files could still be created at  most.   A  file  is  considered
51              fragmented,  if  sequential  data  blocks pointed to by the same
52              extent do not have sequential block numbers.  The number of used
53              blocks includes the blocks used for system tracks and the direc‐
54              tory.
55

AUTHORS .

57       This program is copyright 1997–2012 Michael Haardt  <michael@moria.de>.
58       The   Windows   port   is  copyright  2000,  2001,  2011  John  Elliott
59       <jce@seasip.demon.co.uk>.
60
61       This program is free software; you can redistribute it and/or modify it
62       under  the  terms of the GNU General Public License as published by the
63       Free Software Foundation; either version 3 of the License, or (at  your
64       option) any later version.
65
66       This  program  is  distributed  in the hope that it will be useful, but
67       WITHOUT ANY  WARRANTY;  without  even  the  implied  warranty  of  MER‐
68       CHANTABILITY  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
69       Public License for more details.
70
71       You should have received a copy of the GNU General Public License along
72       with  this  program.   If  not,  write to the Free Software Foundation,
73       Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
74

SEE ALSO .

76       fsck(8), mkfs.cpm(1), cpm(5)
77
78
79
80CP/M tools                     October 25, 2014                    FSCK.CPM(1)
Impressum