1dsktrans(1) Emulators dsktrans(1)
2
3
4
6 dsktrans - Copy from one floppy or image file to another
7
9 dsktrans [-itype TYPE] [-otype TYPE] [-iside SIDE] [-oside SIDE]
10 [-icomp COMP] [-ocomp COMP] [-idstep] [-odstep] [-retry COUNT] [-format
11 FMT] [-first CYLINDER] [-last CYLINDER] [-md3] [-logical] [-apricot]
12 [-pcdos] [-noformat] INPUT-IMAGE OUTPUT-IMAGE
14 Dsktrans copies floppy discs or images, optionally converting image
15 types. This is a high-level copy which assumes that the disc has a
16 straightforward geometry; all the tracks are assumed to have the same
17 layout of sectors, and interleave is not preserved. See dskdump(1) for
18 a slower but more accurate copy which may preserve more of these
19 details.
20
22 -itype TYPE
23 Determines which driver is to be used to read from the source
24 disc. Some examples are:
25
26 auto Select according to the disc image file. This is the
27 default.
28
29 dsk Use the DSK (CPCEmu format) image driver.
30
31 edsk Use the extended version of the DSK format.
32
33 floppy Use the floppy driver.
34
35 ntwdm (Under Windows 2000 and later) Use Simon Owen's FDRAWCMD
36 floppy driver.
37
38 myz80 Use the hard disk (MYZ80 format) image driver. (This
39 format cannot be autodetected.)
40
41 cfi Use the CFI (DOS fdcopy format) image driver. (This
42 format cannot be autodetected.)
43
44 apridisk
45 Use the ApriDisk image driver (from the utility of the
46 same name). (This format cannot be autodetected.)
47
48 raw Use the raw driver.
49
50 logical Similar to the raw driver, but the resulting disc image
51 contains tracks laid out in logical filesystem order.
52 Mainly used for imaging discs in formats (such as ADFS)
53 where the mapping of tracks to cylinders/heads does not
54 match the way it's done on the PC.
55
56 qm Sydex's CopyQM format (can only be read, not written).
57
58 teledisk
59 Sydex's Teledisk format (can only be read, not written).
60
61
62 -otype TYPE
63 Determines which driver is to be used to write to the destina‐
64 tion disc. The drivers are as for -itype.
65
66
67 -icomp COMP
68 Select the compression method used on the source disc image file
69 (has no effect when reading a floppy disc).
70
71 auto Detect from the first few bytes of the file. This is the
72 default.
73
74 sq Huffman coded (SQ / USQ).
75
76 gz Gzipped (gzip / gunzip).
77
78 bz2 Burrows-Wheeler compressed (bzip2 / bunzip2).
79
80
81 -ocomp COMP
82 Select the compression to be used on output. Compression methods
83 are as for -icomp, except that bz2 cannot be used.
84
85
86 -iside SIDE
87 Determines which side (0 or 1) of the source disc is to be read
88 from.
89
90
91 -oside SIDE
92 Determines which side (0 or 1) of the destination disc is to be
93 written to.
94
95
96 -idstep
97 Double-step the source drive (used to read 360k discs in 1.2Mb
98 drives). Only supported by the Linux floppy driver.
99
100
101 -odstep
102 Double-step the destination drive (used to write 360k discs in
103 1.2Mb drives). Only supported by the Linux floppy driver.
104
105
106 -retry COUNT
107 Set the number of times to attempt a read/write/format in case
108 of error.
109
110
111 -format FMT
112 Do not autodetect the disc format; use the named format.
113
114
115 -first CYL
116 Start copying at the specified cylinder. Cylinders prior to this
117 will not be formatted or written.
118
119
120 -last CYL
121 Copy up to and including the specified cylinder.
122
123
124 -odstep
125 Double-step the destination drive (used to write 360k discs in
126 1.2Mb drives). Only supported by the Linux floppy driver.
127
128
129 -md3 Defeat MicroDesign 3 copy protection. Note that this does not
130 make dsktrans a circumvention device, since the authors of
131 MicroDesign have placed it in the public domain and given per‐
132 mission for the copy-protection to be reverse engineered; I
133 posted their original press release to USENET as
134 <1008359853.26849.0.nnrp-13.c2de7091@news.demon.co.uk>.
135
136
137 -pcdos Convert the first sector from an Apricot superblock to a PC-DOS
138 superblock. This allows Apricot-format discs to be imaged as
139 files (with the output image type as raw) and then loopback-
140 mounted under Linux.
141
142
143 -apricot
144 Reverse -pcdos, and convert the first sector from a PC-DOS
145 superblock to an Apricot superblock. Note that this is the
146 opposite of what this option did in LibDsk 1.1.9 and earlier.
147
148
149 -logical
150 Rearrange the tracks in the logical order. This option has been
151 superseded; instead you should use -otype logical to output to a
152 logically-sectored raw image.
153
154
155 -noformat
156 Don't format the target disc/image - assume it's in the correct
157 format already.
158
160 dskdump(1)
161
163 John Elliott <jce@seasip.demon.co.uk>.
164
165 Darren Salt wrote the man pages.
166
167
168
169Version 1.2.1 27 December, 2007 dsktrans(1)