xref: /freebsd/sbin/mount_cd9660/mount_cd9660.8 (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
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 December 6, 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 volumes without extended attributes or Rockridge extensions
77is zero.
78.It Fl U Ar user
79Set the owner of the files in the file system to
80.Ar user .
81The default uid on volumes without extended attributes or Rockridge extensions
82is zero.
83.It Fl m Ar mask
84Specify the maximum file permissions for files
85in the file system.
86For example, a
87.Ar mask
88of
89.Li 544
90limits the owner to
91read and execute permissions for files and
92others to only read permission.
93See
94.Xr chmod 1
95for more information about octal file modes.
96The default
97.Ar mask
98is 7777.
99The default permissions on volumes without extended attributes or Rockridge
100extensions is 555.
101.It Fl M Ar mask
102Specify the maximum file permissions for directories
103in the file system.
104See the previous option's description for details.
105.It Fl j
106Do not use any Joliet extensions included in the file system.
107.It Fl o
108Options are specified with a
109.Fl o
110flag followed by a comma separated string of options.
111See the
112.Xr mount 8
113man page for possible options and their meanings.
114The following cd9660 specific options are available:
115.Pp
116.Bl -tag -width "brokenjoliet" -compact
117.It Cm extatt
118Same as
119.Fl e .
120.It Cm gens
121Same as
122.Fl g .
123.It Cm nojoliet
124Same as
125.Fl j .
126.It Cm norrip
127Same as
128.Fl r .
129.It Cm brokenjoliet
130Same as
131.Fl b .
132.El
133.It Fl r
134Do not use any Rockridge extensions included in the file system.
135.It Fl s Ar startsector
136Start the file system at
137.Ar startsector .
138Normally, if the underlying device is a CD-ROM drive,
139.Nm
140will try to figure out the last track from the CD-ROM containing
141data, and start the file system there.
142If the device is not a CD-ROM,
143or the table of contents cannot be examined, the file system will be
144started at sector 0.
145This option can be used to override the behaviour.
146Note that
147.Ar startsector
148is measured in CD-ROM blocks, with 2048 bytes each.
149This is the same
150as for example the
151.Cm info
152command of
153.Xr cdcontrol 1
154is printing.
155It is possible to mount an arbitrary session of a multi-session CD by specifying
156the correct
157.Ar startsector
158here.
159.It Fl C Ar charset
160Specify local
161.Ar charset
162to convert Unicode file names when using Joliet extensions.
163.It Fl v
164Be verbose about the starting sector decisions made.
165.El
166.Sh EXAMPLES
167The following command can be used to mount a Kodak Photo-CD:
168.Pp
169.Dl "mount_cd9660 -o rw -v -s 0 /dev/cd0 /cdrom"
170.Sh SEE ALSO
171.Xr cdcontrol 1 ,
172.Xr mount 2 ,
173.Xr unmount 2 ,
174.Xr cd9660 4 ,
175.Xr fstab 5 ,
176.Xr mdconfig 8 ,
177.Xr mount 8
178.Sh HISTORY
179The
180.Nm
181utility first appeared in
182.Bx 4.4 .
183.Pp
184The Unicode conversion routine was added by
185.An Ryuichiro Imura Aq Mt imura@ryu16.org
186in 2003.
187.Sh BUGS
188POSIX device node mapping is currently not supported.
189.Pp
190Version numbers are not stripped if Rockridge extensions are in use.
191In this case, accessing files that do not have Rockridge names without
192version numbers gets the one with the lowest version number and not
193the one with the highest.
194.Pp
195There is no ECMA support.
196