Anonymous user
MTools: Difference between revisions
Improved introduction, fixed broken link and added external links
[unchecked revision] | [unchecked revision] |
(Split off MTools from windows disk images page) |
(Improved introduction, fixed broken link and added external links) |
||
(8 intermediate revisions by 5 users not shown) | |||
Line 1:
Mtools is a collection of tools to allow Unix systems to manipulate MS-DOS based filesystems, such as [[FAT]]. It provides command-line utilities to read, write, and move files on an MS-DOS filesystem. Mtools is not capable of facilitating mounting an MS-DOS disk image to the host system. One common use for Mtools is to copy files to a FAT disk image located on the host system.
Mtools is available in the package repositories of most Linux distributions, or can be built from source under [[Cygwin]]. The source code is available here: https://www.gnu.org/software/mtools/
==Using disk images==
The <tt>-i</tt> option, followed by a disk images file name, allows for using a disk image in place of a real device when the drive letter <tt>:</tt> is used.
For example to copy the file <tt>kernel.elf</tt> from the working directory to the root directory of the image <tt>floppy.img</tt> one would use
mcopy -i floppy.img kernel.elf ::/
It is important to notice that, while MTools claims to include only the minimal BIOS Parameter Block (BPB), it actually uses the FAT16 extension (see e.g. [http://www.win.tue.nl/~aeb/linux/fs/fat/fat-1.html] under 'FAT16' for an explanation) to the BPB if you format a FAT12 image.
==See Also==
===External Links===
* https://www.gnu.org/software/mtools/ Mtools home page.
* https://linux.die.net/man/1/mtools Mtools Linux man entry.
{{Stub}}
[[Category:Disk Image Utilities]]
|