--- mtools.conf.orig Sun May 20 20:18:12 2001 +++ mtools.conf Thu Oct 7 22:14:36 2004 @@ -1,6 +1,67 @@ # Example mtools.conf files. Uncomment the lines which correspond to # your architecture and comment out the "SAMPLE FILE" line below -SAMPLE FILE + +# A note on permissions: a user must have read and write permissions for the +# devices named here in order to access the DOS file systems. You might give +# ALL USERS access to ALL FLOPPY DISKS via the command +# +# chmod a+rw /dev/fd[0-9]* +# +# or you might give SPECIFIC GROUP MEMBERS access to a PARTICULAR FLOPPY DISK +# via the commands +# +# chmod g+rw /dev/fd0 ; chgrp staff /dev/fd0 +# +# (and ensure selected people are in a group such as staff). + + +# Floppy disks. Here, A: and B: use automatic size detection. +# +# Example: To prepare drive A: for use as a 1.44M floppy on FreeBSD: +# [1] low level format with ......... fdformat -f 1440 /dev/fd0 +# [2] write a file system with ...... newfs_msdos -f 1440 /dev/fd0 +# [3] then use mcopy/mdir etc. in the usual way. +# +# The mformat command could also be used to build the DOS file system +# in place of newfs_msdos. + +# # FreeBSD floppy drives +drive a: file="/dev/fd0" +drive b: file="/dev/fd1" + +# FreeBSD automatically detects a number of common floppy densities, like +# 720 KB and 1440 KB MS-DOS formatted media. +# +# To change the density of FreeBSD floppy devices to something unusual, +# use fdcontrol(8). + +# LS120 (ATAPI) floppy disk (extra parameters allow easy mformat) +# +# -- Drive L: is an LS120 in 100MB mode (mdir shows 125967576 bytes capacity) +# +drive l: file="/dev/afd0" exclusive mformat_only cylinders=963 heads=8 sectors=32 +# +# -- Drive M: is an LS120 in 1.4MB mode +# +drive m: file="/dev/afd0" exclusive mformat_only cylinders=80 heads=2 sectors=18 + +# SCSI hard disks +# first disk (da0) slice 1 (s1) +#drive c: file="/dev/da0s1" + +# IDE hard disks +# first disk on the first IDE interface (wd0) slice 1 (s1) +drive c: file="/dev/ad0s1" +# first disk on the first IDE interface (wd0) slice 3 (s3) +#drive d: file="/dev/ad0s3" +# second disk on the first IDE interface (wd1) slice 1 (s1) +#drive d: file="/dev/ad1s1" +# first disk on the second IDE interface (wd2) slice 1 (s1) +drive d: file="/dev/ad2s1" + +# PCEMU floppy boot image +drive p: file="/usr/local/lib/pcemu/DriveA" + # # Linux floppy drives # drive a: file="/dev/fd0" exclusive @@ -61,4 +122,4 @@ # # uncomment the following line to display all file names in lower # # case by default -# mtools_lower_case=1 +mtools_lower_case=1 --- devices.c.orig Thu Oct 7 22:12:00 2004 +++ devices.c Thu Oct 7 22:16:46 2004 @@ -790,10 +790,10 @@ #ifdef OS_freebsd #define predefined_devices struct device devices[] = { - {"/dev/fd0.1440", 'A', FHD312}, - {"/dev/fd0.720", 'A', FDD312}, - {"/dev/fd1.1200", 'B', MHD514}, - {"/dev/sd0s1", 'C', GENHD}, + {"/dev/fd0", 'A', FHD312}, + {"/dev/fd0", 'A', FDD312}, + {"/dev/fd1", 'B', MHD514}, + {"/dev/da0s1", 'C', GENHD}, REMOTE }; #endif /* __FreeBSD__ */