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       -n     Open the file system read-only and do not repair any errors.
27

RETURN VALUE .

29       Upon successful completion, exit code 0 is returned.
30

ERRORS .

32       Any errors are indicated by exit code 1.
33

FILES .

35       /usr/share/cpmtools/diskdefs  CP/M disk format definitions
36

DIAGNOSTICS .

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

AUTHORS .

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

SEE ALSO .

69       fsck(8), mkfs.cpm(1), cpm(5)
70
71
72
73CP/M tools                     December 20, 2009                   FSCK.CPM(1)
Impressum