dsktrans(1)
π NAME π
okay so this page is dsktrans from the Emulators manual β and it's literally the "copy from one floppy or image file to another" girlie π
β¨ SYNOPSIS β¨
dsktrans [-itype TYPE] [-otype TYPE] [-iside SIDE] [-oside SIDE] [-icomp COMP] [-ocomp COMP] [-idstep] [-odstep] [-retry COUNT] [-format FMT] [-first CYLINDER] [-last CYLINDER] [-comment TEXT] [-comment @FILE] [-md3] [-logical] [-apricot] [-pcdos] [-noformat] INPUT-IMAGE OUTPUT-IMAGE
π¦ DESCRIPTION π¦
So dsktrans copies floppy discs or disc images, and bestie, it can convert the image file type while it's at it π
It's literally simulating the whole process of copying a floppy disc β read a track, write a track, over and over, iconic behavior fr fr.
It does have ONE requirement though: the disc or image file has to have a straightforward geometry where all the tracks have the same layout of sectors. No weird custom-track chaos allowed, sorry π«Ά And heads up: interleave is not preserved π
Also go look at dskconv(1) if you want a conversion that can transform one disc image file format to another and doesn't require a regular geometry β and dskdump(1) if you want a slower but more accurate copy which may preserve more of these details β
πΈ OPTIONS πΈ
-itype TYPEβ tells it which driver to use when reading from the source disc. Some examples are:autoβ select according to the disc image file. This is the default πdskβ use the DSK (CPCEmu format) image driver.edskβ use the extended version of the DSK format.floppyβ use the floppy driver.ntwdmβ (under Windows 2000 and later) use Simon Owen's FDRAWCMD floppy driver.myz80β use the hard disk (MYZ80 format) image driver. (This format cannot be autodetected.) πcfiβ use the CFI (DOS fdcopy format) image driver. (This format cannot be autodetected.) πapridiskβ use the ApriDisk image driver (from the utility of the same name). (This format cannot be autodetected.) πrawβ use the raw driver.logicalβ similar to the raw driver, but the resulting disc image contains tracks laid out in logical filesystem order. Mainly used for imaging discs in formats (such as ADFS) where the mapping of tracks to cylinders/heads does not match the way it's done on the PC. π§qmβ Sydex's CopyQM format.teleβ Sydex's Teledisk format.
-otype TYPEβ tells it which driver to use when writing to the destination disc. The drivers are as for-itypeβ same list, bestie, no new lore π-icomp COMPβ picks the compression method used on the source disc image file (has no effect when reading a floppy disc, so don't come for it).autoβ detect from the first few bytes of the file. This is the default β¨sqβ Huffman coded (SQ / USQ).gzβ Gzipped (gzip / gunzip).bz2β Burrows-Wheeler compressed (bzip2 / bunzip2).
-ocomp COMPβ picks the compression to be used on output. Compression methods are as for-icomp, except thatbz2cannot be used π-iside SIDEβ determines which side (0or1) of the source disc is to be read from.-oside SIDEβ determines which side (0or1) of the destination disc is to be written to.-idstepβ double-step the source drive (used to read 360k discs in 1.2Mb drives). Only supported by the Linux floppy driver π§-odstepβ double-step the destination drive (used to write 360k discs in 1.2Mb drives). Only supported by the Linux floppy driver π§-retry COUNTβ set the number of times to attempt a read/write/format in case of error. Basically "bestie try again" energy π-format FMTβ don't autodetect the disc format; use the named format instead.-first CYLβ start copying at the specified cylinder. Cylinders prior to this will not be formatted or written π-last CYLβ copy up to and including the specified cylinder.-comment TEXTβ set the comment field in the disc image to the specified text (if supported by the image file format).-comment @FILEβ set the comment field in the disc image to the contents of the specified disc file (if supported by the image file format). If the filename is-(i.e.-comment @-) then you will be asked to type the comment, terminated with a.on a line by itself βοΈ-odstepβ double-step the destination drive (used to write 360k discs in 1.2Mb drives). Only supported by the Linux floppy driver. (yes it's listed again in the original, not a glitch, we're just being thorough π )-md3β defeat MicroDesign 3 copy protection. Note that this does not makedsktransa circumvention device, since the authors of MicroDesign have placed it in the public domain and given permission for the copy-protection to be reverse engineered; I posted their original press release to USENET as<1008359853.26849.0.nnrp-13.c2de7091@news.demon.co.uk>. receipts were provided, periodt π-pcdosβ convert the first sector from an Apricot superblock to a PC-DOS superblock. This allows Apricot-format discs to be imaged as files (with the output image type asraw) and then loopback-mounted under Linux π§β¨-apricotβ reverse-pcdos, and convert the first sector from a PC-DOS superblock to an Apricot superblock. Note that this is the opposite of what this option did in LibDsk 1.1.9 and earlier β so if you're on ancient lore, check yourself π«-logicalβ rearrange the tracks in the logical order. This option has been superseded; instead you should use-otype logicalto output to a logically-sectored raw image. old news bestie, use the new thing π¦-noformatβ don't format the target disc/image β assume it's in the correct format already. trust fall π€
β SEE ALSO β
π AUTHOR π
John Elliott <seasip.webmaster@gmail.com>.
Darren Salt wrote the man pages. we love a documentation king π«Ά
ngl the whole "read a track, write a track" thing is giving main character energy for a floppy copier, and I love that for it π
Version 1.5.9 π 17 September 2018 β that's the source + date of this lil page, mwah, bye bestie πβ¨ππ¦
π¦ where this page comes from
- debian bookworm: libdsk-utils 1.5.9+dfsg-1+b1
- debian trixie: libdsk-utils 1.5.9+dfsg-1+b2
- ubuntu jammy: libdsk-utils 1.5.9+dfsg-1
- ubuntu noble: libdsk-utils 1.5.9+dfsg-1build1
- ubuntu questing: libdsk-utils 1.5.9+dfsg-1build1
- ubuntu resolute: libdsk-utils 1.5.9+dfsg-1build2
- ubuntu stonking: libdsk-utils 1.5.9+dfsg-1build2
- Copyright (c) 2002 Darren Salt
- Copyright (c) 2005-7 John Elliott
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms