1*d5c9a868SElliott Hughes% Copyright 1997 Marco Nelissen. 2*d5c9a868SElliott Hughes% Copyright 1996-1998,2001,2002,2009 Alain Knaff. 3*d5c9a868SElliott Hughes% This documentation is for Mtools which is a collection of tools to 4*d5c9a868SElliott Hughes% allow Unix systems to manipulate MS-DOS files. 5*d5c9a868SElliott Hughes 6*d5c9a868SElliott Hughes% Permission is granted to copy, distribute and/or modify this document 7*d5c9a868SElliott Hughes% under the terms of the GNU Free Documentation License, Version 1.3 or 8*d5c9a868SElliott Hughes% any later version published by the Free Software Foundation; with no 9*d5c9a868SElliott Hughes% Invariant Sections, with no Front-Cover Texts, and with no Back-Cover 10*d5c9a868SElliott Hughes% Texts. A copy of the license is included in the section entitled 11*d5c9a868SElliott Hughes% ``GNU Free Documentation License''. 12*d5c9a868SElliott Hughes 13*d5c9a868SElliott Hughes 14*d5c9a868SElliott Hughes 15*d5c9a868SElliott HughesNOTE: THIS FILE ONLY REFERS TO THE BEBOX. IF YOU ARE USING UNIX, 16*d5c9a868SElliott HughesREFER TO README. 17*d5c9a868SElliott Hughes 18*d5c9a868SElliott Hughes 19*d5c9a868SElliott HughesThis is mtools 3.6 for BeOS DR9. This release will no longer work on 20*d5c9a868SElliott HughesDR8, which should be no problem since everybody should have upgraded 21*d5c9a868SElliott Hughesto DR9 by now. mtools 3.6 can be used as a replacement for the 22*d5c9a868SElliott Hughesversion 2.0.7 mtools supplied with BeOS. mtools 3.6 supports the VFAT 23*d5c9a868SElliott Hughesfilesystem (long filenames), which the Be-supplied tools do not. 24*d5c9a868SElliott Hughes 25*d5c9a868SElliott HughesTo install: 26*d5c9a868SElliott Hughes 27*d5c9a868SElliott Hughes- build the executables: type "make -f Makefile.Be" in the mtools 28*d5c9a868SElliott Hughes directory. Again, this instruction is only for the Bebox, not for any 29*d5c9a868SElliott Hughes kind of Unix. They should compile without any warnings or errors. 30*d5c9a868SElliott Hughes 31*d5c9a868SElliott Hughes WARNING: do NOT rerun the configure script. Although DR9 bash will 32*d5c9a868SElliott Hughesno longer lock up when running the configure script, the resulting 33*d5c9a868SElliott Hughesfiles are not entirely correct, and mtools will fail to compile. I 34*d5c9a868SElliott Hugheshave hand-crafted a config.h that can be used to compile mtools. This 35*d5c9a868SElliott Hugheswill be used if you just type "make -f Makefile.Be" 36*d5c9a868SElliott Hughes 37*d5c9a868SElliott Hughes- copy the "mtools" executable (and perhaps also "mkmanifest") to /bin, 38*d5c9a868SElliott Hughes or to another directory in your path. 39*d5c9a868SElliott Hughes 40*d5c9a868SElliott HughesSince all of the mtools-commands are contained within a single 41*d5c9a868SElliott Hughesexecutable, you must either define aliases for each command, or create 42*d5c9a868SElliott Hugheslinks for them. 43*d5c9a868SElliott Hughes 44*d5c9a868SElliott HughesTo create aliases, add the following lines to the file /boot/.profile 45*d5c9a868SElliott Hughes 46*d5c9a868SElliott Hughesalias mattrib="mtools -c mattrib" 47*d5c9a868SElliott Hughesalias mbadblocks="mtools -c mbadblocks" 48*d5c9a868SElliott Hughesalias mcd="mtools -c mcd" 49*d5c9a868SElliott Hughesalias mcopy="mtools -c mcopy" 50*d5c9a868SElliott Hughesalias mdel="mtools -c mdel" 51*d5c9a868SElliott Hughesalias mdeltree="mtools -c mdeltree" 52*d5c9a868SElliott Hughesalias mdir="mtools -c mdir" 53*d5c9a868SElliott Hughesalias mformat="mtools -c mformat" 54*d5c9a868SElliott Hughesalias minfo="mtools -c minfo" 55*d5c9a868SElliott Hughesalias mlabel="mtools -c mlabel" 56*d5c9a868SElliott Hughesalias mmd="mtools -c mmd" 57*d5c9a868SElliott Hughesalias mmount="mtools -c mmount" 58*d5c9a868SElliott Hughesalias mrd="mtools -c mrd" 59*d5c9a868SElliott Hughesalias mmove="mtools -c mmove" 60*d5c9a868SElliott Hughesalias mpartition="mtools -c mpartition" 61*d5c9a868SElliott Hughesalias mren="mtools -c mren" 62*d5c9a868SElliott Hughesalias mtoolstest="mtools -c mtoolstest" 63*d5c9a868SElliott Hughesalias mtest="mtools -c mtest" 64*d5c9a868SElliott Hughesalias mtype="mtools -c mtype" 65*d5c9a868SElliott Hughesalias mzip="mtools -c mzip" 66*d5c9a868SElliott Hughes 67*d5c9a868SElliott Hughes (then close and re-open all terminals and shells, or type 68*d5c9a868SElliott Hughes". /boot/.profile" in each open terminal to activate the 69*d5c9a868SElliott Hughesaliases. Optional: remove the old mtools from the /bin directory) 70*d5c9a868SElliott Hughes 71*d5c9a868SElliott Hughes 72*d5c9a868SElliott HughesTo create links, open a shell, and type the following commands 73*d5c9a868SElliott Hughes(assuming you copied the mtools executable to /bin): 74*d5c9a868SElliott Hughes 75*d5c9a868SElliott Hughescd /bin 76*d5c9a868SElliott Hughesrm mattrib mcd mcopy mdel mdir mformat mkmanifest mlabel mmd mrd mread mren mtype mwrite 77*d5c9a868SElliott Hughesln -s mtools mattrib 78*d5c9a868SElliott Hughesln -s mtools mbadblocks 79*d5c9a868SElliott Hughesln -s mtools mcd 80*d5c9a868SElliott Hughesln -s mtools mcopy 81*d5c9a868SElliott Hughesln -s mtools mdel 82*d5c9a868SElliott Hughesln -s mtools mdeltree 83*d5c9a868SElliott Hughesln -s mtools mdir 84*d5c9a868SElliott Hughesln -s mtools mformat 85*d5c9a868SElliott Hughesln -s mtools minfo 86*d5c9a868SElliott Hughesln -s mtools mlabel 87*d5c9a868SElliott Hughesln -s mtools mmd 88*d5c9a868SElliott Hughesln -s mtools mmount 89*d5c9a868SElliott Hughesln -s mtools mrd 90*d5c9a868SElliott Hughesln -s mtools mread 91*d5c9a868SElliott Hughesln -s mtools mmove 92*d5c9a868SElliott Hughesln -s mtools mpartition 93*d5c9a868SElliott Hughesln -s mtools mren 94*d5c9a868SElliott Hughesln -s mtools mtoolstest 95*d5c9a868SElliott Hughesln -s mtools mtest 96*d5c9a868SElliott Hughesln -s mtools mtype 97*d5c9a868SElliott Hughesln -s mtools mwrite 98*d5c9a868SElliott Hughesln -s mtools mzip 99*d5c9a868SElliott Hughes 100*d5c9a868SElliott Hughes 101*d5c9a868SElliott HughesAlternatively, make multiple copies of the "mtools" executable and use 102*d5c9a868SElliott Hughesthe names mdir, mdel etcetera. 103*d5c9a868SElliott Hughes 104*d5c9a868SElliott Hughes- if you want more than just floppy support, you need to make a configuration 105*d5c9a868SElliott Hughes file. An example mtools.conf.be is included in the distribution. 106*d5c9a868SElliott Hughes mtools looks in a number of standard places for its config file, such as: 107*d5c9a868SElliott Hughes /boot/.mtoolsrc 108*d5c9a868SElliott Hughes /boot/mtools.conf 109*d5c9a868SElliott Hughes /boot/system/mtools.conf 110*d5c9a868SElliott Hughes By defining the variable MTOOLSRC you can give the config file any name you 111*d5c9a868SElliott Hughes like and put it at any location. 112*d5c9a868SElliott Hughes 113*d5c9a868SElliott Hughes You need to add something like "export MTOOLSRC=/conf/mtools.cfg" to 114*d5c9a868SElliott Hughes your .profile file. 115*d5c9a868SElliott Hughes 116*d5c9a868SElliott Hughes Take care to remove or change the entries that you don't need. The provided 117*d5c9a868SElliott Hughes mtools.conf is for unix systems, with some BeOS settings at the end. 118*d5c9a868SElliott Hughes The sample entry for a ZIP disk on the BeOS has been provided by 119*d5c9a868SElliott Hughes Chris Herborth 120*d5c9a868SElliott Hughes ([email protected]). 121*d5c9a868SElliott Hughes 122*d5c9a868SElliott Hughes 123*d5c9a868SElliott Hughes- enjoy! 124*d5c9a868SElliott Hughes 125*d5c9a868SElliott HughesMarco Nelissen <[email protected]> 126*d5c9a868SElliott HughesAlain Knaff <[email protected]> 127