Initial import from FreeBSD RELENG_4:
[dragonfly.git] / sbin / mount_cd9660 / mount_cd9660.8
1 .\" Copyright (c) 1993, 1994
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\" All rights reserved.
4 .\"
5 .\" This code is derived from software donated to Berkeley by
6 .\" Christopher G. Demetriou.
7 .\"
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
10 .\" are met:
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\"    notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\"    notice, this list of conditions and the following disclaimer in the
15 .\"    documentation and/or other materials provided with the distribution.
16 .\" 3. All advertising materials mentioning features or use of this software
17 .\"    must display the following acknowledgement:
18 .\"     This product includes software developed by the University of
19 .\"     California, Berkeley and its contributors.
20 .\" 4. Neither the name of the University nor the names of its contributors
21 .\"    may be used to endorse or promote products derived from this software
22 .\"    without specific prior written permission.
23 .\"
24 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 .\" SUCH DAMAGE.
35 .\"
36 .\"     @(#)mount_cd9660.8      8.3 (Berkeley) 3/27/94
37 .\" $FreeBSD: src/sbin/mount_cd9660/mount_cd9660.8,v 1.12.2.6 2003/02/24 00:56:41 trhodes Exp $
38 .\"
39 .Dd March 27, 1994
40 .Dt MOUNT_CD9660 8
41 .Os
42 .Sh NAME
43 .Nm mount_cd9660
44 .Nd mount an ISO-9660 file system
45 .Sh SYNOPSIS
46 .Nm
47 .Op Fl begjrv
48 .Op Fl o Ar options
49 .Op Fl s Ar startsector
50 .Ar special | node
51 .Sh DESCRIPTION
52 The
53 .Nm
54 utility attaches the ISO-9660 file system residing on the device
55 .Pa special
56 to the global file system namespace at the location indicated by
57 .Pa node .
58 This command is normally executed by
59 .Xr mount 8
60 at boot time.
61 .Pp
62 The options are as follows:
63 .Bl -tag -width indent
64 .It Fl b
65 Relax checking for Supplementary Volume Descriptor Flags field
66 which is set to a wrong value on some Joliet formatted disks.
67 .It Fl e
68 Enable the use of extended attributes.
69 .It Fl g
70 Do not strip version numbers on files.
71 (By default, if there are files with different version numbers on the disk,
72 only the last one will be listed.)
73 In either case, files may be opened without explicitly stating a
74 version number.
75 .It Fl j
76 Do not use any Joliet extensions included in the file system.
77 .It Fl o
78 Options are specified with a
79 .Fl o
80 flag followed by a comma separated string of options.
81 See the
82 .Xr mount 8
83 man page for possible options and their meanings.
84 The following cd9660 specific options are available:
85 .Pp
86 .Bl -tag -width "nostrictjoliet" -compact
87 .It Cm extatt
88 Same as
89 .Fl e .
90 .It Cm gens
91 Same as
92 .Fl g .
93 .It Cm nojoliet
94 Same as
95 .Fl j .
96 .It Cm norrip
97 Same as
98 .Fl r .
99 .It Cm nostrictjoliet
100 Same as
101 .Fl b .
102 .El
103 .It Fl r
104 Do not use any Rockridge extensions included in the file system.
105 .It Fl s Ar startsector
106 Start the file system at
107 .Ar startsector .
108 Normally, if the underlying device is a CD-ROM drive,
109 .Nm
110 will try to figure out the last track from the CD-ROM containing
111 data, and start the file system there.  If the device is not a CD-ROM,
112 or the table of contents cannot be examined, the file system will be
113 started at sector 0.  This option can be used to override the behaviour.
114 Note that
115 .Ar startsector
116 is measured in CD-ROM blocks, with 2048 bytes each.  This is the same
117 as for example the
118 .Cm info
119 command of
120 .Xr cdcontrol 1
121 is printing.
122 It is possible to mount an arbitrary session of a multi-session CD by specifying
123 the correct
124 .Ar startsector
125 here.
126 .It Fl v
127 Be verbose about the starting sector decisions made.
128 .El
129 .Sh EXAMPLES
130 The following command can be used to mount a Kodak Photo-CD:
131 .Pp
132 .Dl "mount_cd9660 -o rw -v -s 0 /dev/cd0c /cdrom"
133 .Sh SEE ALSO
134 .Xr cdcontrol 1 ,
135 .Xr mount 2 ,
136 .Xr unmount 2 ,
137 .Xr fstab 5 ,
138 .Xr mount 8
139 .Sh BUGS
140 POSIX device node mapping is currently not supported.
141 .Pp
142 Version numbers are not stripped if Rockridge extensions are in use.
143 In this case, accessing files that don't have Rockridge names without
144 version numbers gets the one with the lowest version number and not
145 the one with the highest.
146 .Pp
147 There is no ECMA support.
148 .Sh HISTORY
149 The
150 .Nm
151 utility first appeared in
152 .Bx 4.4 .