This patch adds support for RISC OS filetypes and filename truncation to Mtools. It can be applied to the Mtools source code like this:
$ cd mtools-3.9.11
$ zcat ../mtools-3.9.11-teb1.patch.gz | patch -p1
RISC OS support is enabled using the -R option to mcopy, mmd, mren and mmove. Additionaly for mcopy only, the default filetype may be spefied in hexidecimal. For example:
mcopy -Rfff RISC_OS_file A: