xref: /netbsd-src/sbin/mount_cd9660/mount_cd9660.8 (revision c38e7cc395b1472a774ff828e46123de44c628e9)
1.\" $NetBSD: mount_cd9660.8,v 1.29 2017/06/07 15:24:50 abhinav Exp $
2.\"
3.\" Copyright (c) 2004 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\"
15.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
16.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
19.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25.\" POSSIBILITY OF SUCH DAMAGE.
26.\"
27.\"
28.\" Copyright (c) 1993, 1994
29.\"     The Regents of the University of California.  All rights reserved.
30.\"
31.\" This code is derived from software donated to Berkeley by
32.\" Christopher G. Demetriou.
33.\"
34.\" Redistribution and use in source and binary forms, with or without
35.\" modification, are permitted provided that the following conditions
36.\" are met:
37.\" 1. Redistributions of source code must retain the above copyright
38.\"    notice, this list of conditions and the following disclaimer.
39.\" 2. Redistributions in binary form must reproduce the above copyright
40.\"    notice, this list of conditions and the following disclaimer in the
41.\"    documentation and/or other materials provided with the distribution.
42.\" 3. Neither the name of the University nor the names of its contributors
43.\"    may be used to endorse or promote products derived from this software
44.\"    without specific prior written permission.
45.\"
46.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
47.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
48.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
49.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
50.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
51.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
52.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
53.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
54.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
55.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
56.\" SUCH DAMAGE.
57.\"
58.\"     @(#)mount_cd9660.8	8.3 (Berkeley) 3/27/94
59.\"
60.Dd January 3, 2009
61.Dt MOUNT_CD9660 8
62.Os
63.Sh NAME
64.Nm mount_cd9660
65.Nd mount an ISO-9660 file system
66.Sh SYNOPSIS
67.Nm
68.Op Fl o Ar options
69.Ar special node
70.Sh DESCRIPTION
71The
72.Nm
73command attaches the ISO-9660 file system residing on the device
74.Pa special
75to the global file system namespace at the location indicated by
76.Pa node .
77Both
78.Ar special
79and
80.Ar node
81are converted to absolute paths before use.
82.Pp
83The options are as follows:
84.Bl -tag -width indent
85.It Fl o
86Options are specified with a
87.Fl o
88flag followed by a comma separated string of options.
89Besides options mentioned in
90.Xr mount 8
91man page, following cd9660-specific options are supported:
92.Bl -tag -width indent
93.It Cm extatt
94Enable the use of extended attributes.
95.It Cm gens
96Do not strip version numbers on files and leave the case of the filename
97alone.
98(By default, uppercase characters are translated to lowercase,
99and if there are files with different version numbers on the disk,
100only the last one will be listed.)
101.Pp
102In either case, files may be opened without giving a
103version number, in which case you get the last one, or by explicitly
104stating a version number (albeit it's quite difficult to know it, if
105you are not using the
106.Cm gens
107option), in which case you get the specified version.
108.It Cm nocasetrans
109A synonym for
110.Cm nomaplcase .
111.It Cm nojoliet
112Do not make use of Joliet extensions for long filenames which
113may be present in the file system.
114.Pp
115Interpretation of Joliet extensions is enabled by default, Unicode
116file names are encoded into UTF-8.
117.It Cm nomaplcase
118File names on cd9660 cdrom without Rock Ridge extension present
119should be uppercase only.
120By default, cd9660 recodes file
121names read from a non-Rock Ridge disk to all lowercase characters.
122.Cm nomaplcase
123turns off this mapping.
124.It Cm norrip
125Do not use any Rockridge extensions included in the file system.
126.It Cm nrr
127Same as
128.Cm norrip .
129For compatibility with Solaris only.
130.It Cm rrcaseins
131Makes all lookups case-insensitive even for CD-ROMs with Rock-Ridge
132extensions (for Rock-Ridge, default is case-sensitive lookup).
133.El
134.El
135.Pp
136For compatibility with previous releases, following obsolete flags are
137still recognized:
138.Bl -tag -width indent
139.It Fl e
140Same as
141.Fl o
142.Cm extatt .
143.It Fl j
144Same as
145.Fl o
146.Cm nojoliet .
147.It Fl g
148Same as
149.Fl o
150.Cm gens .
151.It Fl r
152Same as
153.Fl o
154.Cm norrip .
155.El
156.Sh SEE ALSO
157.Xr mount 2 ,
158.Xr unmount 2 ,
159.Xr fstab 5 ,
160.Xr mount 8 ,
161.Xr mscdlabel 8
162.Sh HISTORY
163The
164.Nm
165utility first appeared
166.Bx 4.4 .
167Support for Joliet file system appeared in
168.Nx 1.4 .
169Options
170.Cm nomaplcase
171and
172.Cm rrcaseins
173were added in
174.Nx 1.5 .
175UTF-8 encoding of Unicode file names for Joliet file systems was added in
176.Nx 3.0 .
177.Sh NOTES
178For Joliet file systems, the Unicode file names used to be filtered
179to ISO-8859-1 character set.
180This changed in
181.Nx 3.0 ,
182file names are encoded into UTF-8 now by default.
183The behaviour is controllable by the
184.Em vfs.cd9660.utf8_joliet
185sysctl; the former behaviour is available by setting it to 0.
186.Sh BUGS
187For some cdroms the information in the Rock Ridge extension is wrong
188and the cdrom needs to be mounted with "norrip".
189A sign that something is wrong is that the
190.Xr stat 2
191system call returns
192.Er EBADF
193causing, e.g., "ls -l" to fail with "Bad file descriptor".
194.Pp
195The cd9660 file system does not support the original "High Sierra"
196("CDROM001") format.
197.Pp
198POSIX device node mapping is currently not supported.
199.Pp
200Version numbers are not stripped if Rockridge extensions are in use.
201In this case, you have to use the original name of the file as recorded
202on disk, i.e. use uppercase and append the version number to the file.
203.Pp
204There is no ECMA support.
205