cpmtools - Tools to access CP/M file systems This package allows to access CP/M file systems similar to the well-known mtools package, which accesses MSDOS file systems. It can be used for file exchange with a Z80-PC simulator, but it works on floppy devices as well. Currently it contains: cpmls list sorted directory with output similar to ls, DIR cpmcp copy files from and to CP/M file systems cpmrm erase files from CP/M file systems cpmchmod change file permissions cpmchattr change file attributes mkfs.cpm make a CP/M file system fsck.cpm check and repair a CP/M file system fsed.cpm view CP/M file system -------------------------------------------------------------------------------- CPMLS(1) User commands CPMLS(1) -------------------------------------------------------------------------------- NAME cpmls - list sorted contents of directory SYNOPSIS cpmls [-f format] [-T libdsk-type] [-d|-D|-F|-A|-l[-c][-i]] [-u] image [file-pattern...] DESCRIPTION Cpmls lists the sorted contents of the directory. OPTIONS -f format Use the given CP/M disk format instead of the default format. -T libdsk-type libdsk driver type, e.g. tele for Teledisk images or raw for raw images (requires building cpmtools with support for libdsk). -d Old CP/M 2.2 dir output. -D P2DOS 2.3 ddir-like output. -F CP/M 3.x dir output. -A E2fs lsattr-like output. -l Long UNIX-style directory listing including size, time stamp and user number. -c Output the creation time, not the modification time. -i Print index number of each file. -u Show all CP/M file names in upper case. -------------------------------------------------------------------------------- CPMCP(1) User commands CPMCP(1) -------------------------------------------------------------------------------- NAME cpmcp - copy files from and to CP/M disks SYNOPSIS cpmcp [-f format] [-p] [-t] image [-u] user:file file cpmcp [-f format] [-p] [-t] image [-u] user:file ... directory cpmcp [-f format] [-p] [-t] image [-u] file user:file cpmcp [-f format] [-p] [-t] image [-u] file ... user: DESCRIPTION cpmcp copies one or more files to or from a CP/M disk. When copying multiple files, the last argument must be a drive or directory. The drive letter does not matter because the device is specified by the image, it is only used to specify which direction you want to copy. The user number is specified after the drive letter, if omitted user 0 is used. You can use * and ? in CP/M file names, which have the same meaning in sh(1) file name patterns. On CP/M, the slash is a legal file name character. When copying such files to the host, it is translated to a comma. Filenames with a comma have that translated back to a slash on CP/M. That is no restriction, because a comma is not a legal CP/M filename character. OPTIONS -f format Use the given CP/M disk format instead of the default format. -T libdsk-type libdsk driver type, e.g. tele for Teledisk images or raw for raw images (requires building cpmtools with support for libdsk). -p Preserve time stamps when copying files from CP/M to UNIX (not implemented for copying the other way so far). -t Convert text files between CP/M and UNIX conventions. -u Show all CP/M file names in upper case. -------------------------------------------------------------------------------- CPMRM(1) User commands CPMRM(1) -------------------------------------------------------------------------------- NAME cpmrm - remove files on CP/M disks SYNOPSIS cpmrm [-f format] [-u] image file-pattern ... DESCRIPTION cpmrm removes files from CP/M disks. OPTIONS -f format Use the given CP/M disk format instead of the default format. -T libdsk-type libdsk driver type, e.g. tele for Teledisk images or raw for raw images (requires building cpmtools with support for libdsk). -u Show all CP/M file names in upper case. -------------------------------------------------------------------------------- DISKDEFS(5) File formats DISKDEFS(5) -------------------------------------------------------------------------------- NAME diskdefs - CP/M disk and file system format definitions 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. A diskdefs file consists of one or more entries of the format: diskdef name seclen size tracks count sectrk count blocksize size maxdir count [dirblks count] boottrk number [bootsec number] [skew number] [skewtab sector[,sector]...] [os 2.2|3|isx|p2dos|zsys] [offset size] [logicalextents count] [libdsk:format name] end skew and skewtab must only be used exclusively. Comments are marked with a leading hash or semicolon and extend to the end of the line. It is possible to reserve space after the directory beyond maxdir using an inflated DPB ALV0. If the format makes use of that, dirblks must be set. bootsec contains the total number of sectors used by the boot area. This is for CP/M systems that map multiple logical tracks onto a physical track. While raw disk images can be configured for doing the same, accessing libdsk images needs to be done by physical tracks.