forked from lipro-cpm4l/cpmtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiskdefs.5
42 lines (42 loc) · 2.17 KB
/
diskdefs.5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.\" Believe it or not, reportedly there are nroffs which do not know \(en
.if n .ds en -
.if t .ds en \(en
.TH DISKDEFS 5 "Jan 23, 2019" "CP/M tools" "File formats"
.SH NAME \"{{{roff}}}\"{{{
diskdefs \- CP/M disk and file system format definitions
.\"}}}
.SH DESCRIPTION \"{{{
The diskdefs file contains CP/M format descriptions,
because CP/M in general does not store those in the file system and there are
no standards of any kind.
.PP
A diskdefs file consists of one or more entries of the format:
.PP
.nf
.RS
\fBdiskdef\fP \fIname\fP # disk format name
\fBseclen\fP \fIsize\fP # bytes per physical sector
\fBtracks\fP \fIcount\fP # the number of tracks per disk
\fBsectrk\fP \fIcount\fP # the number of physical sectors per track
\fBblocksize\fP \fIsize\fP # the number of bytes per block
\fBmaxdir\fP \fIcount\fP # the number of directory entries - 1
\fBboottrk\fP \fInumber\fP # the number of boot tracks
[\fBskew\fP \fInumber\fP] # the sector skew
[\fBskewtab\fP \fIsector\fP[\fB,\fP\fIsector\fP]...] # the sector skew table
[\fBos\fP \fB2.2\fP|\fB3\fP|\fBisx\fP|\fBp2dos\fP|\fBzsys\fP # the OS
[\fBoffset\fP \fIsize\fP] # the number of bytes per partition
[\fBlogicalextents\fP \fIcount\fP] # the number of logical extents per drive
[\fBlibdsk:format\fP \fIname\fP] # the libdsk format this is based on (if any)
\fBend\fP<
.RE
.fi
.PP
\fBskew\fP and \fBskewtab\fP must only be used exclusively.
.LP
Specifiers of \fIK\fP, \fIM\fP, \fIT\fP or \fIS\fP may be appended to denote kilobytes, megabytes, tracks or sectors. If provided, a specifier must immediately follow the numeric value with no whitespace. For convenience upper and lower case are both accepted and only the first letter is significant, thus 2KB, 8MB, 1000trk and 16sec are valid values. The \fBoffset\fP must appear subsequent to \fBseclen\fP and \fBsectrk\fP values for the sector and track units to work.
.PP
Comments are marked with a leading hash or semicolon and extend to the end of the line.
.\"}}}
.SH "SEE ALSO" \"{{{
.IR cpm (5)
.\"}}}