Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
[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 .\" $DragonFly: src/sbin/mount_cd9660/mount_cd9660.8,v 1.4 2008/07/27 22:17:48 thomas Exp $
39 .\"
40 .Dd March 27, 1994
41 .Dt MOUNT_CD9660 8
42 .Os
43 .Sh NAME
44 .Nm mount_cd9660
45 .Nd mount an ISO-9660 file system
46 .Sh SYNOPSIS
47 .Nm
48 .Op Fl begjrv
49 .Op Fl o Ar options
50 .Op Fl s Ar startsector
51 .Ar special node
52 .Sh DESCRIPTION
53 The
54 .Nm
55 utility attaches the ISO-9660 file system residing on the device
56 .Pa special
57 to the global file system namespace at the location indicated by
58 .Pa node .
59 This command is normally executed by
60 .Xr mount 8
61 at boot time.
62 .Pp
63 The options are as follows:
64 .Bl -tag -width indent
65 .It Fl b
66 Relax checking for Supplementary Volume Descriptor Flags field
67 which is set to a wrong value on some Joliet formatted disks.
68 .It Fl e
69 Enable the use of extended attributes.
70 .It Fl g
71 Do not strip version numbers on files.
72 (By default, if there are files with different version numbers on the disk,
73 only the last one will be listed.)
74 In either case, files may be opened without explicitly stating a
75 version number.
76 .It Fl j
77 Do not use any Joliet extensions included in the file system.
78 .It Fl L Ar locale
79 Specify locale name used for internal filename conversions.
80 .It Fl o
81 Options are specified with a
82 .Fl o
83 flag followed by a comma separated string of options.
84 See the
85 .Xr mount 8
86 man page for possible options and their meanings.
87 The following cd9660 specific options are available:
88 .Pp
89 .Bl -tag -width "nostrictjoliet" -compact
90 .It Cm extatt
91 Same as
92 .Fl e .
93 .It Cm gens
94 Same as
95 .Fl g .
96 .It Cm nojoliet
97 Same as
98 .Fl j .
99 .It Cm norrip
100 Same as
101 .Fl r .
102 .It Cm nostrictjoliet
103 Same as
104 .Fl b .
105 .El
106 .It Fl r
107 Do not use any Rockridge extensions included in the file system.
108 .It Fl s Ar startsector
109 Start the file system at
110 .Ar startsector .
111 Normally, if the underlying device is a CD-ROM drive,
112 .Nm
113 will try to figure out the last track from the CD-ROM containing
114 data, and start the file system there.  If the device is not a CD-ROM,
115 or the table of contents cannot be examined, the file system will be
116 started at sector 0.  This option can be used to override the behaviour.
117 Note that
118 .Ar startsector
119 is measured in CD-ROM blocks, with 2048 bytes each.  This is the same
120 as for example the
121 .Cm info
122 command of
123 .Xr cdcontrol 1
124 is printing.
125 It is possible to mount an arbitrary session of a multi-session CD by specifying
126 the correct
127 .Ar startsector
128 here.
129 .It Fl C Ar charset
130 Specify local
131 .Ar charset
132 to convert Unicode file names when using Joliet extensions.
133 .It Fl v
134 Be verbose about the starting sector decisions made.
135 .El
136 .Sh EXAMPLES
137 The following command can be used to mount a Kodak Photo-CD:
138 .Pp
139 .Dl "mount_cd9660 -o rw -v -s 0 /dev/cd0c /cdrom"
140 .Sh SEE ALSO
141 .Xr cdcontrol 1 ,
142 .Xr mount 2 ,
143 .Xr unmount 2 ,
144 .Xr fstab 5 ,
145 .Xr mount 8
146 .Sh HISTORY
147 The
148 .Nm
149 utility first appeared in
150 .Bx 4.4 .
151 .Sh BUGS
152 POSIX device node mapping is currently not supported.
153 .Pp
154 Version numbers are not stripped if Rockridge extensions are in use.
155 In this case, accessing files that don't have Rockridge names without
156 version numbers gets the one with the lowest version number and not
157 the one with the highest.
158 .Pp
159 There is no ECMA support.