mtools.texi (mtools-4.0.36.tar.bz2) | : | mtools.texi (mtools-4.0.37.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 166 | skipping to change at line 166 | |||
rules. For example, `@code{*}' matches all MS-DOS files in lieu of | rules. For example, `@code{*}' matches all MS-DOS files in lieu of | |||
`@code{*.*}'. The archive, hidden, read-only and system attribute bits | `@code{*.*}'. The archive, hidden, read-only and system attribute bits | |||
are ignored during pattern matching. | are ignored during pattern matching. | |||
All options use the @code{-} (minus) as their first character, not | All options use the @code{-} (minus) as their first character, not | |||
@code{/} as you'd expect in MS-DOS. | @code{/} as you'd expect in MS-DOS. | |||
Most mtools commands allow multiple filename parameters, which | Most mtools commands allow multiple filename parameters, which | |||
doesn't follow MS-DOS conventions, but which is more user-friendly. | doesn't follow MS-DOS conventions, but which is more user-friendly. | |||
Most mtools commands allow options that instruct them how to handle file | Most mtools commands allow options that instruct them how to handle | |||
name clashes. @xref{name clashes}, for more details on these. All | file name clashes. @xref{name clashes}, for more details on these. | |||
commands accept the @code{-V} flags which prints the version, and most | ||||
accept the @code{-v} flag, which switches on verbose mode. In verbose | All commands accept the @code{-i} flag which allows to specify an | |||
mode, these commands print out the name of the MS-DOS files upon which | image file (@xref{drive letters}). | |||
they act, unless stated otherwise. @xref{Commands}, for a description of | ||||
the options which are specific to each command. | All commands accept the @code{-V} flag which prints the version, and | |||
most accept the @code{-v} flag, which switches on verbose mode. In | ||||
verbose mode, these commands print out the name of the MS-DOS files | ||||
upon which they act, unless stated otherwise. @xref{Commands}, for a | ||||
description of the options which are specific to each command. | ||||
@node drive letters, directory, arguments, Common features | @node drive letters, directory, arguments, Common features | |||
@section Drive letters | @section Drive letters | |||
The meaning of the drive letters depends on the target architectures. | The meaning of the drive letters depends on the target architectures. | |||
However, on most target architectures, drive A is the first floppy | However, on most target architectures, drive A is the first floppy | |||
drive, drive B is the second floppy drive (if available), drive J is a | drive, drive B is the second floppy drive (if available), drive J is a | |||
Jaz drive (if available), and drive Z is a Zip drive (if available). On | Jaz drive (if available), and drive Z is a Zip drive (if available). On | |||
those systems where the device name is derived from the SCSI id, the Jaz | those systems where the device name is derived from the SCSI id, the Jaz | |||
drive is assumed to be at SCSI target 4, and the Zip at SCSI target 5 | drive is assumed to be at SCSI target 4, and the Zip at SCSI target 5 | |||
skipping to change at line 1208 | skipping to change at line 1212 | |||
all mtools commands are not described here, @ref{arguments} for a | all mtools commands are not described here, @ref{arguments} for a | |||
description of those. | description of those. | |||
@menu | @menu | |||
* floppyd:: floppy daemon to run on your X server box | * floppyd:: floppy daemon to run on your X server box | |||
* floppyd_installtest:: small utility to check for the presence of floppyd | * floppyd_installtest:: small utility to check for the presence of floppyd | |||
* mattrib:: change MS-DOS file attribute flags | * mattrib:: change MS-DOS file attribute flags | |||
* mbadblocks:: tests a floppy disk, and marks the bad blocks in the FAT | * mbadblocks:: tests a floppy disk, and marks the bad blocks in the FAT | |||
* mcat:: same as cat. Only useful with floppyd. | * mcat:: same as cat. Only useful with floppyd. | |||
* mcd:: change MS-DOS directory | * mcd:: change MS-DOS directory | |||
* mclasserase:: erase memory card | ||||
* mcopy:: copy MS-DOS files to/from Unix | * mcopy:: copy MS-DOS files to/from Unix | |||
* mdel:: delete an MS-DOS file | * mdel:: delete an MS-DOS file | |||
* mdeltree:: recursively delete an MS-DOS directory | * mdeltree:: recursively delete an MS-DOS directory | |||
* mdir:: display an MS-DOS directory | * mdir:: display an MS-DOS directory | |||
* mdu:: list space occupied by directory and its contents | * mdu:: list space occupied by directory and its contents | |||
* mformat:: add an MS-DOS file system to a low-level formatted floppy disk | * mformat:: add an MS-DOS file system to a low-level formatted floppy disk | |||
* minfo:: get information about an MS-DOS file system. | * minfo:: get information about an MS-DOS file system. | |||
* mlabel:: make an MS-DOS volume label | * mlabel:: make an MS-DOS volume label | |||
* mkmanifest:: makes a list of short name equivalents | * mkmanifest:: makes a list of short name equivalents | |||
* mmd:: make an MS-DOS subdirectory | * mmd:: make an MS-DOS subdirectory | |||
skipping to change at line 1496 | skipping to change at line 1499 | |||
Now it is possible to create boot floppies remotely. | Now it is possible to create boot floppies remotely. | |||
The default operation is reading. The output is written to stdout. | The default operation is reading. The output is written to stdout. | |||
If the @code{-w} option is specified, mcat reads a disk-image from | If the @code{-w} option is specified, mcat reads a disk-image from | |||
stdin and writes it to the given device. | stdin and writes it to the given device. | |||
@strong{Use this carefully!} Because of the low-level nature of this | @strong{Use this carefully!} Because of the low-level nature of this | |||
command, it will happily destroy any data written before on the | command, it will happily destroy any data written before on the | |||
disk without warning! | disk without warning! | |||
@node mcd, mclasserase, mcat, Commands | @node mcd, mcopy, mcat, Commands | |||
@section Mcd | @section Mcd | |||
@pindex mcd | @pindex mcd | |||
@cindex Directory (changing) | @cindex Directory (changing) | |||
@cindex Working directory | @cindex Working directory | |||
@cindex Current working directory (changing the) | @cindex Current working directory (changing the) | |||
@cindex Default directory (changing the) | @cindex Default directory (changing the) | |||
@cindex Mcwd file | @cindex Mcwd file | |||
The @code{mcd} command is used to change the mtools working directory | The @code{mcd} command is used to change the mtools working directory | |||
on the MS-DOS disk. It uses the following syntax: | on the MS-DOS disk. It uses the following syntax: | |||
skipping to change at line 1526 | skipping to change at line 1529 | |||
The environmental variable @code{MCWD} may be used to locate the file | The environmental variable @code{MCWD} may be used to locate the file | |||
where the device and current working directory information is stored. | where the device and current working directory information is stored. | |||
The default is @file{$HOME/.mcwd}. Information in this file is ignored | The default is @file{$HOME/.mcwd}. Information in this file is ignored | |||
if the file is more than 6 hours old. | if the file is more than 6 hours old. | |||
@code{Mcd} returns 0 on success or 1 on failure. | @code{Mcd} returns 0 on success or 1 on failure. | |||
Unlike MS-DOS versions of @code{CD}, @code{mcd} can be used to change to | Unlike MS-DOS versions of @code{CD}, @code{mcd} can be used to change to | |||
another device. It may be wise to remove old @file{.mcwd} files at logout. | another device. It may be wise to remove old @file{.mcwd} files at logout. | |||
@node mclasserase, mcopy, mcd, Commands | @node mcopy, mdel, mcd, Commands | |||
@section Mclasserase | ||||
@pindex mclasserase | ||||
@cindex Memory Card | ||||
@cindex Physically erase | ||||
The @code{mclasserase} command is used to wipe memory cards by | ||||
overwriting it three times: first with @code{0xff}, then with | ||||
@code{0x00}, then with @code{0xff} again. The command uses the following | ||||
syntax: | ||||
@example | ||||
@code{mclasserase} [@code{-d}] @var{msdosdrive} | ||||
@end example | ||||
MS-DOS drive is optional, if none is specified, use @code{A:}. If more than | ||||
one drive are specified, all but the last are ignored. | ||||
@code{Mclasserase} accepts the following command line options: | ||||
@table @code | ||||
@item d | ||||
Stop after each erase cycle, for testing purposes | ||||
@item p | ||||
Not yet implemented | ||||
@end table | ||||
@code{Mclasserase} returns 0 on success or -1 on failure. | ||||
@node mcopy, mdel, mclasserase, Commands | ||||
@section Mcopy | @section Mcopy | |||
@pindex mcopy | @pindex mcopy | |||
@cindex Reading MS-DOS files | @cindex Reading MS-DOS files | |||
@cindex Writing MS-DOS files | @cindex Writing MS-DOS files | |||
@cindex Copying MS-DOS files | @cindex Copying MS-DOS files | |||
@cindex Concatenating MS-DOS files | @cindex Concatenating MS-DOS files | |||
@cindex Text files | @cindex Text files | |||
@cindex CR/LF conversions | @cindex CR/LF conversions | |||
The @code{mcopy} command is used to copy MS-DOS files to and from | The @code{mcopy} command is used to copy MS-DOS files to and from | |||
End of changes. 4 change blocks. | ||||
39 lines changed or deleted | 13 lines changed or added |