1FSCK.CPM(1) User commands FSCK.CPM(1)
2
3
4
6 fsck.cpm - check a CP/M file system
7
9 fsck.cpm [-f format] [-n] [-u] image
10
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, in‐
17 valid 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
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
32 -u Show all CP/M file names in upper case.
33
35 Upon successful completion, exit code 0 is returned.
36
38 Any errors are indicated by exit code 1.
39
41 /usr/share/cpmtools/diskdefs CP/M disk format definitions
42
44 CPMTOOLSFMT Default format
45
47 image: used/total files (n.n% non-contiguos), used/total blocks
48 No inconsistencies could be found. The number of used files ac‐
49 tually is the number of used extents. Since a file may use more
50 than one extent, this may be greather than the actual number of
51 files, but a correct measure would not reflect how many files
52 could still be created at most. A file is considered frag‐
53 mented, if sequential data blocks pointed to by the same extent
54 do not have sequential block numbers. The number of used blocks
55 includes the blocks used for system tracks and the directory.
56
58 This program is copyright 1997–2021 Michael Haardt <michael@moria.de>.
59 The Windows port is copyright 2000, 2001, 2011 John Elliott
60 <jce@seasip.demon.co.uk>.
61
62 This program is free software; you can redistribute it and/or modify it
63 under the terms of the GNU General Public License as published by the
64 Free Software Foundation; either version 3 of the License, or (at your
65 option) any later version.
66
67 This program is distributed in the hope that it will be useful, but
68 WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
69 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
70 Public License for more details.
71
72 You should have received a copy of the GNU General Public License along
73 with this program. If not, write to the Free Software Foundation,
74 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
75
77 fsck(8), mkfs.cpm(1), cpm(5)
78
79
80
81CP/M tools Jan 22, 2021 FSCK.CPM(1)