1.\" $NetBSD: mount_cd9660.8,v 1.33 2024/02/03 09:17:06 wiz 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 February 1, 2024 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 G Ar gid 69.Op Fl M Ar mask 70.Op Fl m Ar mask 71.Op Fl o Ar options 72.Op Fl U Ar uid 73.Ar special node 74.Sh DESCRIPTION 75The 76.Nm 77command attaches the ISO-9660 file system residing on the device 78.Pa special 79to the global file system namespace at the location indicated by 80.Pa node . 81Both 82.Ar special 83and 84.Ar node 85are converted to absolute paths before use. 86.Pp 87The options are as follows: 88.Bl -tag -width 10n 89.It Fl G Ar group 90Set the group of the files in the file system to 91.Ar group . 92The default gid on non-Rockridge volumes is zero. 93.It Fl M Ar mask 94Specify the maximum file permissions for directories 95in the file system. 96See the 97.Fl m 98description for details. 99.It Fl m Ar mask 100Specify the maximum file permissions for files 101in the file system. 102(For example, a 103.Ar mask 104of 105.Li 755 106specifies that, by default, the owner should have 107read, write, and execute permissions for files, but 108others should only have read and execute permissions). 109See 110.Xr chmod 1 111for more information about octal file modes. 112Only the nine low-order bits of 113.Ar mask 114are used. 115The default 116.Ar mask 117on non-Rockridge volumes is 755. 118.It Fl o 119Options are specified with a 120.Fl o 121flag followed by a comma separated string of options. 122Besides options mentioned in 123.Xr mount 8 124man page, following cd9660-specific options are supported: 125.Bl -tag -width indent 126.It Cm extatt 127Enable the use of extended attributes. 128.It Cm gens 129Do not strip version numbers on files and leave the case of the filename 130alone. 131(By default, uppercase characters are translated to lowercase, 132and if there are files with different version numbers on the disk, 133only the last one will be listed.) 134.Pp 135In either case, files may be opened without giving a 136version number, in which case you get the last one, or by explicitly 137stating a version number (albeit it's quite difficult to know it, if 138you are not using the 139.Cm gens 140option), in which case you get the specified version. 141.It Cm nocasetrans 142A synonym for 143.Cm nomaplcase . 144.It Cm nojoliet 145Do not make use of Joliet extensions for long filenames which 146may be present in the file system. 147.Pp 148Interpretation of Joliet extensions is enabled by default, Unicode 149file names are encoded into UTF-8. 150.It Cm nomaplcase 151File names on cd9660 cdrom without Rock Ridge extension present 152should be uppercase only. 153By default, cd9660 recodes file 154names read from a non-Rock Ridge disk to all lowercase characters. 155.Cm nomaplcase 156turns off this mapping. 157.It Cm norrip 158Do not use any Rockridge extensions included in the file system. 159.It Cm nrr 160Same as 161.Cm norrip . 162For compatibility with Solaris only. 163.It Cm rrcaseins 164Makes all lookups case-insensitive even for CD-ROMs with Rock-Ridge 165extensions (for Rock-Ridge, default is case-sensitive lookup). 166.El 167.It Fl U Ar user 168Set the owner of the files in the file system to 169.Ar user . 170The default uid on non-Rockridge volumes is zero. 171.El 172.Pp 173For compatibility with previous releases, following obsolete flags are 174still recognized: 175.Bl -tag -width indent -compact -offset indent 176.It Fl e 177Same as 178.Fl o 179.Cm extatt . 180.It Fl g 181Same as 182.Fl o 183.Cm gens . 184.It Fl j 185Same as 186.Fl o 187.Cm nojoliet . 188.It Fl r 189Same as 190.Fl o 191.Cm norrip . 192.El 193.Sh SEE ALSO 194.Xr mount 2 , 195.Xr unmount 2 , 196.Xr fstab 5 , 197.Xr mount 8 , 198.Xr mscdlabel 8 , 199.Xr vndconfig 8 200.Sh HISTORY 201The 202.Nm 203utility first appeared 204.Bx 4.4 . 205Support for Joliet file system appeared in 206.Nx 1.4 . 207Options 208.Cm nomaplcase 209and 210.Cm rrcaseins 211were added in 212.Nx 1.5 . 213UTF-8 encoding of Unicode file names for Joliet file systems was added in 214.Nx 3.0 . 215.Sh NOTES 216For Joliet file systems, the Unicode file names used to be filtered 217to ISO-8859-1 character set. 218This changed in 219.Nx 3.0 , 220file names are encoded into UTF-8 now by default. 221The behaviour is controllable by the 222.Em vfs.cd9660.utf8_joliet 223sysctl; the former behaviour is available by setting it to 0. 224.Sh BUGS 225For some cdroms the information in the Rock Ridge extension is wrong 226and the cdrom needs to be mounted with "norrip". 227A sign that something is wrong is that the 228.Xr stat 2 229system call returns 230.Er EBADF 231causing, e.g., "ls -l" to fail with "Bad file descriptor". 232.Pp 233The cd9660 file system does not support the original "High Sierra" 234("CDROM001") format. 235.Pp 236POSIX device node mapping is currently not supported. 237.Pp 238Version numbers are not stripped if Rockridge extensions are in use. 239In this case, you have to use the original name of the file as recorded 240on disk, i.e. use uppercase and append the version number to the file. 241.Pp 242There is no ECMA support. 243