xref: /netbsd-src/sbin/mount_cd9660/mount_cd9660.8 (revision 0c4ddb1599a0bea866fde8522a74cfbd2f68cd1b)
1.\" $NetBSD: mount_cd9660.8,v 1.27 2008/05/02 18:11:05 martin 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 March 29, 2005
61.Dt MOUNT_CD9660 8
62.Os
63.Sh NAME
64.Nm mount_cd9660
65.Nd mount an ISO-9660 filesystem
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 filesystem residing on the device
74.Pa special
75to the global filesystem 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 nojoliet
109Do not make use of Joliet extensions for long filenames which
110may be present in the filesystem.
111.Pp
112Interpretation of Joliet extensions is enabled by default, Unicode
113file names are encoded into UTF-8.
114.It Cm nomaplcase
115File names on cd9660 cdrom without Rock Ridge extension present
116should be uppercase only.
117By default, cd9660 recodes file
118names read from a non-Rock Ridge disk to all lowercase characters.
119.Cm nomaplcase
120turns off this mapping.
121.It Cm norrip
122Do not use any Rockridge extensions included in the filesystem.
123.It Cm nrr
124Same as
125.Cm norrip .
126For compatibility with Solaris only.
127.It Cm rrcaseins
128Makes all lookups case-insensitive even for CD-ROMs with Rock-Ridge
129extensions (for Rock-Ridge, default is case-sensitive lookup).
130.El
131.El
132.Pp
133For compatibility with previous releases, following obsolete flags are
134still recognized:
135.Bl -tag -width indent
136.It Fl e
137Same as
138.Fl o
139.Cm extatt .
140.It Fl j
141Same as
142.Fl o
143.Cm nojoliet .
144.It Fl g
145Same as
146.Fl o
147.Cm gens .
148.It Fl r
149Same as
150.Fl o
151.Cm norrip .
152.El
153.Sh SEE ALSO
154.Xr mount 2 ,
155.Xr unmount 2 ,
156.Xr fstab 5 ,
157.Xr mount 8 ,
158.Xr mscdlabel 8
159.Sh HISTORY
160The
161.Nm
162utility first appeared
163.Bx 4.4 .
164Support for Joliet filesystem appeared in
165.Nx 1.4 .
166Options
167.Cm nomaplcase
168and
169.Cm rrcaseins
170were added in
171.Nx 1.5 .
172UTF-8 encoding of Unicode file names for Joliet filesystems was added in
173.Nx 3.0 .
174.Sh NOTES
175For Joliet filesystems, the Unicode file names used to be filtered
176to ISO-8859-1 character set.
177This changed in
178.Nx 3.0 ,
179file names are encoded into UTF-8 now by default.
180The behaviour is controllable by the
181.Em vfs.cd9660.utf8_joliet
182sysctl; the former behaviour is available by setting it to 0.
183.Sh BUGS
184For some cdroms the information in the Rock Ridge extension is wrong
185and the cdrom needs to be mounted with "norrip".
186A sign that something is wrong is that the
187.Xr stat 2
188system call returns
189.Er EBADF
190causing, e.g., "ls -l" to fail with "Bad file descriptor".
191.Pp
192The cd9660 filesystem does not support the original "High Sierra"
193("CDROM001") format.
194.Pp
195POSIX device node mapping is currently not supported.
196.Pp
197Version numbers are not stripped if Rockridge extensions are in use.
198In this case, you have to use the original name of the file as recorded
199on disk, i.e. use uppercase and append the version number to the file.
200.Pp
201There is no ECMA support.
202