xref: /freebsd/sbin/mount_cd9660/mount_cd9660.8 (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
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. Neither the name of the University nor the names of its contributors
17.\"    may be used to endorse or promote products derived from this software
18.\"    without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.Dd January 2, 2024
33.Dt MOUNT_CD9660 8
34.Os
35.Sh NAME
36.Nm mount_cd9660
37.Nd mount an ISO-9660 file system
38.Sh SYNOPSIS
39.Nm
40.Op Fl begjrv
41.Op Fl C Ar charset
42.Op Fl G Ar gid
43.Op Fl m Ar mask
44.Op Fl M Ar mask
45.Op Fl o Ar options
46.Op Fl s Ar startsector
47.Op Fl U Ar uid
48.Ar special node
49.Sh DESCRIPTION
50The
51.Nm
52utility attaches the ISO-9660 file system residing on the device
53.Pa special
54to the global file system namespace at the location indicated by
55.Pa node .
56This command is normally executed by
57.Xr mount 8
58at boot time.
59.Pp
60The options are as follows:
61.Bl -tag -width indent
62.It Fl b
63Relax checking for Supplementary Volume Descriptor Flags field
64which is set to a wrong value on some Joliet formatted disks.
65.It Fl e
66Enable the use of extended attributes.
67.It Fl g
68Do not strip version numbers on files.
69(By default, if there are files with different version numbers on the disk,
70only the last one will be listed.)
71In either case, files may be opened without explicitly stating a
72version number.
73.It Fl G Ar group
74Set the group of the files in the file system to
75.Ar group .
76The default gid on non-Rockridge volumes is zero.
77.It Fl U Ar user
78Set the owner of the files in the file system to
79.Ar user .
80The default uid on non-Rockridge volumes is zero.
81.It Fl m Ar mask
82Specify the maximum file permissions for files
83in the file system.
84(For example, a
85.Ar mask
86of
87.Li 755
88specifies that, by default, the owner should have
89read, write, and execute permissions for files, but
90others should only have read and execute permissions).
91See
92.Xr chmod 1
93for more information about octal file modes.
94Only the nine low-order bits of
95.Ar mask
96are used.
97The default
98.Ar mask
99on non-Rockridge volumes is 755.
100.It Fl M Ar mask
101Specify the maximum file permissions for directories
102in the file system.
103See the previous option's description for details.
104.It Fl j
105Do not use any Joliet extensions included in the file system.
106.It Fl o
107Options are specified with a
108.Fl o
109flag followed by a comma separated string of options.
110See the
111.Xr mount 8
112man page for possible options and their meanings.
113The following cd9660 specific options are available:
114.Pp
115.Bl -tag -width "brokenjoliet" -compact
116.It Cm extatt
117Same as
118.Fl e .
119.It Cm gens
120Same as
121.Fl g .
122.It Cm nojoliet
123Same as
124.Fl j .
125.It Cm norrip
126Same as
127.Fl r .
128.It Cm brokenjoliet
129Same as
130.Fl b .
131.El
132.It Fl r
133Do not use any Rockridge extensions included in the file system.
134.It Fl s Ar startsector
135Start the file system at
136.Ar startsector .
137Normally, if the underlying device is a CD-ROM drive,
138.Nm
139will try to figure out the last track from the CD-ROM containing
140data, and start the file system there.
141If the device is not a CD-ROM,
142or the table of contents cannot be examined, the file system will be
143started at sector 0.
144This option can be used to override the behaviour.
145Note that
146.Ar startsector
147is measured in CD-ROM blocks, with 2048 bytes each.
148This is the same
149as for example the
150.Cm info
151command of
152.Xr cdcontrol 1
153is printing.
154It is possible to mount an arbitrary session of a multi-session CD by specifying
155the correct
156.Ar startsector
157here.
158.It Fl C Ar charset
159Specify local
160.Ar charset
161to convert Unicode file names when using Joliet extensions.
162.It Fl v
163Be verbose about the starting sector decisions made.
164.El
165.Sh EXAMPLES
166The following command can be used to mount a Kodak Photo-CD:
167.Pp
168.Dl "mount_cd9660 -o rw -v -s 0 /dev/cd0 /cdrom"
169.Sh SEE ALSO
170.Xr cdcontrol 1 ,
171.Xr mount 2 ,
172.Xr unmount 2 ,
173.Xr cd9660 5 ,
174.Xr fstab 5 ,
175.Xr mdconfig 8 ,
176.Xr mount 8
177.Sh HISTORY
178The
179.Nm
180utility first appeared in
181.Bx 4.4 .
182.Pp
183The Unicode conversion routine was added by
184.An Ryuichiro Imura Aq Mt imura@ryu16.org
185in 2003.
186.Sh BUGS
187POSIX device node mapping is currently not supported.
188.Pp
189Version numbers are not stripped if Rockridge extensions are in use.
190In this case, accessing files that do not have Rockridge names without
191version numbers gets the one with the lowest version number and not
192the one with the highest.
193.Pp
194There is no ECMA support.
195