drive z: file="/dev/sdb" partition=1
drive z: file="/dev/sdb" partition=4
$ mpartition -c -t 239 -h 64 -s 32 -b 32 Z:
$ mformat -t 239 -h 64 -s 32 -H 32 z:
You can also enter the parameters into your
/etc/mtools.conf file:
drive z: file="/dev/sda" scsi privileged
cylinders=239 heads=64 sectors=32 hidden=32
mformat_only
> gzip -dc $HOME/mtools-3.9.7.tar.gz | tar xfv -
mtools-3.9.7/
mtools-3.9.7/INSTALL
mtools-3.9.7/buffer.c
mtools-3.9.7/Release.notes
...
mtools-3.9.7/llong.c
mtools-3.9.7/llong.h
mtools-3.9.7/floppyd.c
> cd mtools-3.9.7
> gzip -dc $HOME/mtools-3.9.7-1704.diff.gz | patch -p1 -s
> ./configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
...
checking for main in -lnsl... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
> make
gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -DCPU_i686 -DVENDOR_pc \
-DOS_linux -g -O2 -fno-strength-reduce -Wall -I. -I. -c buffer.c
gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -DCPU_i686 -DVENDOR_pc \
-DOS_linux -g -O2 -fno-strength-reduce -Wall -I. -I. -c codepage.c
gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -DCPU_i686 -DVENDOR_pc \
-DOS_linux -g -O2 -fno-strength-reduce -Wall -I. -I. -c codepages.c
gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -DCPU_i686 -DVENDOR_pc \
-DOS_linux -g -O2 -fno-strength-reduce -Wall -I. -I. -c config.c
...
gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -DCPU_i686 -DVENDOR_pc \
-DOS_linux -g -O2 -fno-strength-reduce -Wall -I. -I. -c floppyd.c
gcc -L/usr/X11R6/lib floppyd.o -o floppyd -lX11 -lXau
gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -DCPU_i686 -DVENDOR_pc \
-DOS_linux -g -O2 -fno-strength-reduce -Wall -I. -I. -c floppyd_installtest.c
gcc -L/usr/X11R6/lib floppyd_installtest.o misc.o expand.o privileges.o -o \
floppyd_installtest -lX11 -lXau
> su
Password:
# make install
./mkinstalldirs /usr/local/bin
/usr/bin/install -c mtools /usr/local/bin/mtools
./mkinstalldirs /usr/local/bin
/usr/bin/install -c floppyd /usr/local/bin/floppyd
./mkinstalldirs /usr/local/bin
/usr/bin/install -c floppyd_installtest /usr/local/bin/floppyd_installtest
/usr/local/man/man1/floppyd.1
/usr/local/man/man1/mattrib.1
...
Making info file `mtools.info' from `mtools.texi'.
./mkinstalldirs /usr/local/info
if test -f mtools.info; then \
for i in mtools.info*; do \
/usr/bin/install -c -m 644 $i /usr/local/info/$i; \
done; \
else \
for i in ./mtools.info*; do \
/usr/bin/install -c -m 644 $i /usr/local/info/`echo $i | sed 's|^./||'`; \
done; \
fi
> mv mtools-3.9.7.tar mtools-3.9.7.tar.gz
> mv mtools-3.9.7-1704.diff mtools-3.9.7-1704.diff.gz
Mtools is intended to read FAT (native MS-Dos) filesystem, and hence cannot read CD-Roms.
However, you can mount the CD-Rom natively using the following
command:
mount -t iso9660 /dev/cdrom /cdrom