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