{{Infobox Software | name = Mtools | logo = 100px | developer = The GNU Project | screenshot = | caption = | latest release version = {{wikidata|property|preferred|references|edit|Q3327305|P348|P548=Q2804309}} | latest release date = {{wikidata|qualifier|preferred|single|Q3327305|P348|P548=Q2804309|P577}} | latest preview version = {{wikidata|property|preferred|references|edit|Q3327305|P348|P548=Q51930650}} | latest preview date = {{wikidata|qualifier|preferred|single|Q3327305|P348|P548=Q51930650|P577}} | operating system = Unix-like | platform = | genre = | license = GPL-3.0-or-later | website = {{URL|https://www.gnu.org/software/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.<ref>https://www.gnu.org/software/mtools/ Homepage</ref><ref>{{Cite journal |last=Mielewczik |first=Michael |title=mtools: DOS-Dateien unter Linux verwalten. |journal=Linux Intern |volume=1/1999 |pages=81}}</ref>
The mtools are part of the GNU Project and are released under the GNU General Public License (GPL-3.0-or-later).
== Usage == The following refers to mtools usage in floppy images. (Useful for virtual machines such as QEMU or VirtualBox.)
Copying a file to floppy image: <syntaxhighlight lang="console">$ mcopy -i Disk.img file_source ::file_target</syntaxhighlight>
Copying a file from floppy image to the current directory: <syntaxhighlight lang="console">$ mcopy -i Disk.img ::file_source file_target</syntaxhighlight>
Deleting all files in the disk image <syntaxhighlight lang="console">$ mdel -i Disk.img '::*.*'</syntaxhighlight>
The drive character <code>:</code> (colon) has a special meaning. It is used to access image files which are directly specified on the command line using the <code>-i</code> options.<ref name=uno>{{cite web|title=online linux man page|url=http://man.he.net/?topic=mtools§ion=all|accessdate=31 July 2012}}</ref>
== See also == {{Portal|Free and open-source software}} * Disk image
== References == {{reflist}}
== External links == * [https://www.gnu.org/software/mtools/ mtools official page] on the GNU website * Boot disk images for DOS [http://www.allbootdisks.com/ DOS disk images]
{{GNU}}
Category:Free file managers Category:GNU Project software
{{free-software-stub}}