Mtools
Mtools is a free software collection of utilities to allow a Unix operating system to manipulate files on an MS-DOS file system, typically a floppy disk or floppy disk image.
The mtools are part of the GNU Project and are released under the GNU General Public License (GPL-3.0-or-later).
01Usage
The following refers to mtools usage in floppy images. (Useful for virtual machines such as QEMU or VirtualBox.)
Copying a file to floppy image:
$ mcopy -i Disk.img file_source ::file_targetCopying a file from floppy image to the current directory:
$ mcopy -i Disk.img ::file_source file_targetDeleting all files in the disk image
$ mdel -i Disk.img '::*.*'The drive character : (colon) has a special meaning. It is used to access image files which are directly specified on the command line using the -i options.
Sources and credits
This article is adapted from the Wikipedia article “Mtools”, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.
Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.