2005-12-27 20:40:49 +03:00
|
|
|
.\" $NetBSD: mount_cd9660.8,v 1.26 2005/12/27 17:40:49 reinoud Exp $
|
2004-11-22 02:06:23 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2004 The NetBSD Foundation, Inc.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the NetBSD
|
|
|
|
.\" Foundation, Inc. and its contributors.
|
|
|
|
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
.\" contributors may be used to endorse or promote products derived
|
|
|
|
.\" from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
1995-03-18 17:54:19 +03:00
|
|
|
.\"
|
1994-06-08 22:57:30 +04:00
|
|
|
.\" Copyright (c) 1993, 1994
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software donated to Berkeley by
|
|
|
|
.\" Christopher G. Demetriou.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
2003-08-07 14:04:22 +04:00
|
|
|
.\" 3. Neither the name of the University nor the names of its contributors
|
1994-06-08 22:57:30 +04:00
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1994-06-14 02:40:40 +04:00
|
|
|
.\" @(#)mount_cd9660.8 8.3 (Berkeley) 3/27/94
|
1995-03-18 17:54:19 +03:00
|
|
|
.\"
|
2005-03-29 05:24:10 +04:00
|
|
|
.Dd March 29, 2005
|
1994-06-08 22:57:30 +04:00
|
|
|
.Dt MOUNT_CD9660 8
|
2001-06-05 15:22:41 +04:00
|
|
|
.Os
|
1994-06-08 22:57:30 +04:00
|
|
|
.Sh NAME
|
|
|
|
.Nm mount_cd9660
|
|
|
|
.Nd mount an ISO-9660 filesystem
|
|
|
|
.Sh SYNOPSIS
|
2003-02-25 13:34:36 +03:00
|
|
|
.Nm
|
1994-06-08 22:57:30 +04:00
|
|
|
.Op Fl o Ar options
|
1999-03-07 14:02:05 +03:00
|
|
|
.Ar special node
|
1994-06-08 22:57:30 +04:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
1997-09-15 08:27:38 +04:00
|
|
|
.Nm
|
1994-06-08 22:57:30 +04:00
|
|
|
command attaches the ISO-9660 filesystem residing on the device
|
|
|
|
.Pa special
|
|
|
|
to the global filesystem namespace at the location indicated by
|
|
|
|
.Pa node .
|
2005-01-31 08:19:18 +03:00
|
|
|
Both
|
|
|
|
.Ar special
|
|
|
|
and
|
|
|
|
.Ar node
|
|
|
|
are converted to absolute paths before use.
|
1994-06-08 22:57:30 +04:00
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width indent
|
2000-07-15 17:54:45 +04:00
|
|
|
.It Fl o
|
|
|
|
Options are specified with a
|
|
|
|
.Fl o
|
|
|
|
flag followed by a comma separated string of options.
|
|
|
|
Besides options mentioned in
|
|
|
|
.Xr mount 8
|
|
|
|
man page, following cd9660-specific options are supported:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Cm extatt
|
1994-06-08 22:57:30 +04:00
|
|
|
Enable the use of extended attributes.
|
2000-07-15 17:54:45 +04:00
|
|
|
.It Cm gens
|
1997-12-05 19:57:47 +03:00
|
|
|
Do not strip version numbers on files and leave the case of the filename
|
|
|
|
alone.
|
|
|
|
(By default, uppercase characters are translated to lowercase,
|
|
|
|
and if there are files with different version numbers on the disk,
|
1994-06-08 22:57:30 +04:00
|
|
|
only the last one will be listed.)
|
1997-12-05 19:57:47 +03:00
|
|
|
.Pp
|
|
|
|
In either case, files may be opened without giving a
|
|
|
|
version number, in which case you get the last one, or by explicitly
|
|
|
|
stating a version number (albeit it's quite difficult to know it, if
|
|
|
|
you are not using the
|
2000-07-15 17:54:45 +04:00
|
|
|
.Cm gens
|
1997-12-05 19:57:47 +03:00
|
|
|
option), in which case you get the specified version.
|
2000-07-15 17:54:45 +04:00
|
|
|
.It Cm nojoliet
|
1999-07-13 15:12:49 +04:00
|
|
|
Do not make use of Joliet extensions for long filenames which
|
|
|
|
may be present in the filesystem.
|
|
|
|
.Pp
|
2004-11-22 02:06:23 +03:00
|
|
|
Interpretation of Joliet extensions is enabled by default, Unicode
|
|
|
|
file names are encoded into UTF-8.
|
2000-05-27 20:32:08 +04:00
|
|
|
.It Cm nomaplcase
|
|
|
|
File names on cd9660 cdrom without Rock Ridge extension present
|
2002-10-01 17:40:23 +04:00
|
|
|
should be uppercase only.
|
|
|
|
By default, cd9660 recodes file
|
2000-05-27 20:32:08 +04:00
|
|
|
names read from a non-Rock Ridge disk to all lowercase characters.
|
|
|
|
.Cm nomaplcase
|
|
|
|
turns off this mapping.
|
2000-07-15 17:54:45 +04:00
|
|
|
.It Cm norrip
|
|
|
|
Do not use any Rockridge extensions included in the filesystem.
|
|
|
|
.It Cm nrr
|
|
|
|
Same as
|
|
|
|
.Cm norrip .
|
|
|
|
For compatibility with Solaris only.
|
2000-07-16 01:40:42 +04:00
|
|
|
.It Cm rrcaseins
|
|
|
|
Makes all lookups case-insensitive even for CD-ROMs with Rock-Ridge
|
|
|
|
extensions (for Rock-Ridge, default is case-sensitive lookup).
|
2000-05-27 20:32:08 +04:00
|
|
|
.El
|
2000-07-15 17:54:45 +04:00
|
|
|
.El
|
2001-11-16 14:26:53 +03:00
|
|
|
.Pp
|
2000-07-15 17:54:45 +04:00
|
|
|
For compatibility with previous releases, following obsolete flags are
|
2000-07-16 01:40:42 +04:00
|
|
|
still recognized:
|
2000-07-15 17:54:45 +04:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl e
|
|
|
|
Same as
|
|
|
|
.Fl o
|
|
|
|
.Cm extatt .
|
|
|
|
.It Fl j
|
|
|
|
Same as
|
|
|
|
.Fl o
|
|
|
|
.Cm nojoliet .
|
|
|
|
.It Fl g
|
|
|
|
Same as
|
|
|
|
.Fl o
|
|
|
|
.Cm gens .
|
1994-06-08 22:57:30 +04:00
|
|
|
.It Fl r
|
2000-07-15 17:54:45 +04:00
|
|
|
Same as
|
|
|
|
.Fl o
|
|
|
|
.Cm norrip .
|
1994-06-08 22:57:30 +04:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr mount 2 ,
|
|
|
|
.Xr unmount 2 ,
|
|
|
|
.Xr fstab 5 ,
|
2005-03-29 05:24:10 +04:00
|
|
|
.Xr mount 8 ,
|
|
|
|
.Xr mscdlabel 8
|
2001-11-16 14:26:53 +03:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility first appeared
|
|
|
|
.Bx 4.4 .
|
|
|
|
Support for Joliet filesystem appeared in
|
|
|
|
.Nx 1.4 .
|
|
|
|
Options
|
|
|
|
.Cm nomaplcase
|
|
|
|
and
|
|
|
|
.Cm rrcaseins
|
|
|
|
were added in
|
|
|
|
.Nx 1.5 .
|
2004-11-22 02:06:23 +03:00
|
|
|
UTF-8 encoding of Unicode file names for Joliet filesystems was added in
|
|
|
|
.Nx 3.0 .
|
|
|
|
.Sh NOTES
|
|
|
|
For Joliet filesystems, the Unicode file names used to be filtered
|
2005-06-25 03:35:06 +04:00
|
|
|
to ISO-8859-1 character set.
|
2004-11-22 15:22:45 +03:00
|
|
|
This changed in
|
2004-11-22 02:06:23 +03:00
|
|
|
.Nx 3.0 ,
|
2004-11-22 15:22:45 +03:00
|
|
|
file names are encoded into UTF-8 now by default.
|
2005-12-27 20:40:49 +03:00
|
|
|
The behaviour is controllable by the
|
2004-11-22 02:06:23 +03:00
|
|
|
.Em vfs.cd9660.utf8_joliet
|
2004-11-22 15:22:45 +03:00
|
|
|
sysctl; the former behaviour is available by setting it to 0.
|
2001-11-16 14:26:53 +03:00
|
|
|
.Sh BUGS
|
2001-01-09 23:51:26 +03:00
|
|
|
For some cdroms the information in the Rock Ridge extension is wrong
|
2002-10-01 17:40:23 +04:00
|
|
|
and the cdrom needs to be mounted with "norrip".
|
|
|
|
A sign that something is wrong is that the
|
2001-01-09 23:51:26 +03:00
|
|
|
.Xr stat 2
|
|
|
|
system call returns
|
|
|
|
.Er EBADF
|
|
|
|
causing, e.g., "ls -l" to fail with "Bad file descriptor".
|
2001-11-16 14:26:53 +03:00
|
|
|
.Pp
|
1994-06-08 22:57:30 +04:00
|
|
|
The cd9660 filesystem does not support the original "High Sierra"
|
|
|
|
("CDROM001") format.
|
|
|
|
.Pp
|
|
|
|
POSIX device node mapping is currently not supported.
|
|
|
|
.Pp
|
|
|
|
Version numbers are not stripped if Rockridge extensions are in use.
|
1997-12-05 19:57:47 +03:00
|
|
|
In this case, you have to use the original name of the file as recorded
|
|
|
|
on disk, i.e. use uppercase and append the version number to the file.
|
1994-06-08 22:57:30 +04:00
|
|
|
.Pp
|
|
|
|
There is no ECMA support.
|