mount(1M_CDFS) (CD-ROM) mount(1M_CDFS)
NAME
mount (cdfs) - mount cdfs file system
SYNOPSIS
mount [-F cdfs] [generic_options] -r [-o cdfs_options] [special|mount_point]
mount [-F cdfs] [generic_options] -r [-o cdfs_options] special mount_point
DESCRIPTION
The mount command attaches the cdfs file system to the file
system hierarchy at the location specified by mount_point,
which must already exist and must be a directory. If
mount_point already has contents prior to the mount operation,
the contents remain hidden until the cdfs file system is
unmounted. The generic_options are the options supported by
the generic mount command (see the generic mount(1M) command
for information about these options.) The cdfs-specific
options affect the mode of operation of the CD-ROM and are
used to set default values.
The CD-ROM media may or may not have values set for items such
as the User ID (UID), Group ID (GID), permissions, etc. If a
value is not recorded on the CD-ROM, a default value is
assigned by the software. The default value is either taken
from the /etc/conf/pack.d/cdfs/space.c file, or from the value
specified with the -o option of the mount command.
Once the media is mounted, a default value can only be changed
by using the cddevsuppl(1M) or cdmntsuppl(1M) commands, or by
unmounting/remounting the media and specifying the desired
values using the -o option.
Options
The cdfs-specific options are:
-F cdfs
Specifies the cdfs file system type. (Required)
-r Mounts the file system as read-only. This option or the
-o ro option is required.
-o Specifies the cdfs-specific options in a comma-separated
list of options from the list below. The default
values that are set when the CD-ROM is mounted include
suid, susp, and rrip, and the values defined in the
/etc/conf/pack.d/cdfs/space.c file.
Copyright 1994 Novell, Inc. Page 1
mount(1M_CDFS) (CD-ROM) mount(1M_CDFS)
The following are the cdfs_options to -o:
ro Mounts the resource read-only. This option
or the -r option are required.
suid|nosuid
Allows or disallows execution of Setuid
programs. The default is suid.
susp|nosusp
Enables/disables the processing of all System
Use Sharing Protocol (SUSP) compliant
extensions to the ISO-9660/High-Sierra
specification. The SUSP defines a mechanism
for which the System Use Area of a Directory
Record may be shared by multiple independent
organizations, for example, Rock
Ridge Interchange Protocol (RRIP). The
nosusp flag prevents the processing of all
SUSP-compliant extensions, even if recorded
on the media.
rrip|norrip
Enables/disables the processing of all the
Rock Ridge Interchange Protocol (RRIP)
extensions to the ISO-9660/High-Sierra
specification. The RRIP is a SUSP-compliant
set of extensions that provide POSIX file
semantics within the context of an ISO-
9660/High-Sierra file-system. The rrip flag
requires that the susp flag also be set. The
norrip flag prevents the processing of all
RRIP extensions even if recorded on the
media.
noextend Disallows the processing of all extensions to
the ISO-9660/High-Sierra specification (SUSP
and non-SUSP alike), even if recorded on the
media. Currently, noextend is equivalent to
nosusp,norrip. However, noextend will apply
to future ISO-9660/High-Sierra extensions.
lsectsz=<value>
Defines the logical sector size of the media,
as defined by the ISO-9660 and/or the High
Sierra specifications. If not specified, the
Copyright 1994 Novell, Inc. Page 2
mount(1M_CDFS) (CD-ROM) mount(1M_CDFS)
system will automatically determine the
logical sector size of the media. The user
need not specify this option. However, if
specified, the value must exactly match the
media being mounted.
uid=owner Defines the default UID to be used for the
files and/or directories that do not have a
UID recorded on the CD-ROM. owner is a
numeric UID value or a user name. See the
cdmntsuppl(1M) command for more information.
gid=group Defines the default GID to be used for the
files and/or directories that do not have a
GID recorded on the CD-ROM. group is a
numeric GID value or a group name. See the
cdmntsuppl(1M) command in the X/Open CD-ROM
Support Component Preliminary Specification
for more information.
fperm=mode
Defines the default file permissions to be
used for the files that do not have
permissions recorded on the CD-ROM. The
value mode is an absolute value (a 4-digit
octal), or symbolic value. See the chmod(1)
and cdmntsuppl(1M) commands
dperm=mode
Defines the default directory permissions to
be used for the directories that do not have
permissions recorded on the CD-ROM. The
value mode is an absolute value (a 4-digit
octal), or symbolic value. See the chmod(1)
and cdmntsuppl(1M) commands.
uidmap=filename
Sets User ID mappings. The UID and user
names associated with a file or directory on
the CD-ROM might not be valid on the host
system. The uidmap function maps the CD-ROM
UIDs to valid host system UIDs.
Entries in filename are specified as the
value recorded on the CD-ROM, colon (:),
followed by the UID or user name as found in
Copyright 1994 Novell, Inc. Page 3
mount(1M_CDFS) (CD-ROM) mount(1M_CDFS)
the user database. Multiple entries are
separated by new lines.
For example, filename may contain the
entries:
1500:418
1006:stanley
The first entry maps the UID of 1500 (on the
CD-ROM) to a UID of 418. The second entry
maps the UID of 1006 (on the CD-ROM) to the
user named stanley. See the cdmntsuppl(1M)
command.
The maximum number of mappings allowed is
defined in sys/cdrom.h.
gidmap=filename
Sets Group ID mappings. The GID and group
names associated with a file or directory on
the CD-ROM might not be valid on the host
system. The gidmap function maps the CD-ROM
GIDs to valid host system GIDs.
Entries in filename are specified as the
value recorded on CD-ROM, colon (:), followed
by the GID or group name as found in the
group database. Multiple entries are
separated by new lines. See the
cdmntsuppl(1M) command.
The maximum number of mappings allowed is
defined in sys/cdrom.h.
nmconv=a Sets the file name conversion mode for the
ISO-9660/High-Sierra file and directory names
recorded on the CD-ROM. The nmconv option
lets you specify how the file and directory
names are seen by the user on the host
system. Non-ISO-9660 and non-High-Sierra
names are not converted.
a is some combination of the following:
Copyright 1994 Novell, Inc. Page 4
mount(1M_CDFS) (CD-ROM) mount(1M_CDFS)
c Names are not converted; the names used
are the ones recorded on the CD-ROM.
l Converts upper case letters to lower
case.
m Suppresses the version number and the
separator (;). See the cdmntsuppl(1M)
page for more information.
dsearch=b Defines how the directory's search
permissions (the execute bit) are to be
determined. b is one of the following:
x Search permission is granted only if
the user has "execute" permissions (as
recorded on the CD-ROM or using the
dperm option above). See the
cdmntsuppl(1M) command for more
information.
s Search permission is granted only if
the user has "read" or "execute"
permissions (as recorded on the CD-ROM
or using the dperm option above). See
the cdmntsuppl(1M) command for more
information.
devmap=filename
Maps the CD-ROM major and minor numbers
assigned to device nodes to valid host system
major and minor numbers. The value for
filename is a file that contains one entry
for each device file in the form:
device_file_path new_major new_minor
Fields are separated by white space (tabs or
spaces) and entries are separated by a new
line. Anything beyond the third field in a
line is treated as a comment. See the
cddevsuppl(1M) command for more information.
Examples
For example, the command line:
mount -F cdfs -r -o nosuid,dperm=544,nmconv=l
Copyright 1994 Novell, Inc. Page 5
mount(1M_CDFS) (CD-ROM) mount(1M_CDFS)
mounts cdfs read-only (required), disallows setuid, sets the
default directory permissions to 544 (read/execute for owner,
read for group and others), and converts upper case filenames
to lower case.
Exit Codes
The mount command exits with one of the following values:
0 Successful completion.
1 The mount point or device file specified does not
exist.
1 Device does not contain a CD-ROM file system.
1 Access is denied.
2 Only a privileged user can change any settings.
3 Too many user, group, or file mappings. The
sys/cdrom.h header file defines the maximum number
of mappings allowed. (See the devmap, gidmap, and
uidmap options.)
4 Parameter error.
4 Bad format in filename (used when setting/resetting
the UID, GID and major/minor numbers).
5 The file name specified with the devmap option is
not a device file.
NOTICES
Only a privileged user can mount file systems.
REFERENCES
cddevsuppl(1M), cd_idmap(3X), cdmntsuppl(1M) cd_nmconv(3X)
cd_setdevmap(3X), chmod(1), generic mount(1M)
The X/Open CD-ROM Support Component Preliminary Specification.
Copyright 1994 Novell, Inc. Page 6