summaryrefslogtreecommitdiff
path: root/emulators/mtools/files/patch-2
blob: 5b9c864466a84a62d3c03ba1305596064589bab8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
--- mtools.conf.orig	Sun Jan  4 17:29:32 1998
+++ mtools.conf	Wed May  6 21:56:43 1998
@@ -1,22 +1,74 @@
 # Example mtools.conf files.  Uncomment the lines which correspond to
 # your architecture and comment out the "SAMPLE FILE" line below
-SAMPLE FILE
+#SAMPLE FILE
 
-# # Linux floppy drives
-# drive a: file="/dev/fd0" exclusive
-# drive b: file="/dev/fd1" exclusive
+# 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*
+#
+# or you might give SPECIFIC GROUP MEMBERS access to a PARTICULAR FLOPPY DISK
+# via the commands
+#
+#     chmod g+rw /dev/rfd0 ; chgrp staff /dev/rfd0
+#
+# (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 /dev/rfd0.1440
+#   [2] write a file system with ...... mkdosfs -f 1440 /dev/rfd0
+#   [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 mkdosfs.
 
-# # First SCSI hard disk partition
-# drive c: file="/dev/sda1"
+drive a: file="/dev/rfd0"
+drive b: file="/dev/rfd1"
 
-# # First IDE hard disk partition
-# drive c: file="/dev/hda1"
 
-# # dosemu floppy image
-# drive m: file="/var/lib/dosemu/diskimage"
+# Drive T: is a 1.72M floppy format with 80 cylinders, double sided (2 heads),
+#          and 43 sectors of size 256 bytes per track.  It uses the same
+#          floppy disk drive (fd0) as drive A: above.
+#
+# Example: To prepare and use a 1.72M floppy on FreeBSD:
+#   [1] low level format with ......... fdformat /dev/rfd0.1720
+#   [2] write a file system with ...... mformat -t 80 -h 2 -s 43 -S 1 t:
+#   [3] then use mcopy/mdir etc. in the usual way.
+#
+# The above note on access permissions applies to /dev/rfd0.1720 as well.
+drive t: file="/dev/rfd0.1720"
+ 
+# Drive S: is a 720K floppy format with 80 cylinders, double sided (2 heads),
+#          and 43 sectors of size 256 bytes per track.  It uses the same
+#          floppy disk drive (fd0) as drive A: above.
+#
+# Example: To prepare and use a 720K floppy on FreeBSD:
+#   [1] low level format with ......... fdformat /dev/rfd0.720
+#   [2] write a file system with ...... mkdosfs -f 720 /dev/fd0
+#   [3] then use mcopy/mdir etc. in the usual way.
+#
+drive s: file="/dev/rfd0.720"
+ 
+# SCSI hard disks
+#  first disk (sd0) slice 1 (s1)
+#drive c: file="/dev/rsd0s1"
+
+# IDE hard disks
+#   first disk on the first IDE interface (wd0) slice 1 (s1)
+drive c: file="/dev/rwd0s1"
+#   first disk on the first IDE interface (wd0) slice 3 (s3)
+#drive d: file="/dev/rwd0s3"
+#  second disk on the first IDE interface (wd1) slice 1 (s1)
+#drive d: file="/dev/rwd1s1"
+#  first disk on the second IDE interface (wd2) slice 1 (s1)
+drive d: file="/dev/rwd2s1"
 
-# # dosemu hdimage
-# drive n: file="/var/lib/dosemu/diskimage" offset=3840
+# PCEMU floppy boot image
+drive p: file="/usr/local/lib/pcemu/DriveA"
 
 # # Atari ramdisk image
 # drive o: file="/tmp/atari_rd" offset=136
@@ -37,28 +89,11 @@
 #          A/UX target 5 on 1st scsi bus   jaz or zip
 # drive X: file="/dev/rdsk/c105d0s31"      partition=4
 
-
 # Some examples for BeOS.
 # floppy drive. hardcoded in devices.c, so no real need to define it here
 #drive a: file="/dev/floppy_disk" exclusive
 # ZIP drive on SCSI ID 6
 #drive z: file="/dev/scsi_disk_060" offset=16384 fat_bits=16                        
-
-# SCO Unix 3.2v4
-# # Floppy disk drives
-#
-# drive a: file="/dev/install" exclusive
-# drive b: file="/dev/install1" exclusive
-#  
-# # SCSI hard disk partitions
-#  
-# drive c: file="/dev/dsk/0sC"
-# drive d: file="/dev/dsk/0sD"
-# drive e: file="/dev/dsk/0sE"
-# drive f: file="/dev/dsk/0sF"
-# drive g: file="/dev/dsk/0sG"
-# drive h: file="/dev/dsk/0sH"
-
 # # uncomment the following line to display all file names in lower
 # # case by default
-# mtools_lower_case=1
+mtools_lower_case=1