Name

mount

Synopsis

    mount [options] mount_spec ...

System administration command. Mount a filesystem on a directory. Solaris understands several different kinds of local (hard disk) filesystem structures, as well as supporting network mounts of NFS filesystems and SMB shares. Filesystems and the directories on which to mount them are listed in /etc/vfstab, along with options for each mount. The file /etc/mnttab records which filesystems are actually mounted.

Along with general options, each filesystem may have options specific to it. When run with no options, mount prints the list of currently mounted filesystems.

The mount_spec may be either a special file (block device) or mount point listed in /etc/vfstab, in which case it’s mounted. Otherwise, you must supply both the device name and the directory on which to mount it. See the Examples.

Options

-a

Mount all filesystems of the given type. With no type or mount points, attempt to mount every filesystem in /etc/vfstab with yes in the “mount at boot” field.

-F type

The filesystem is of type type. Useful types are ufs for the native Unix filesystem format, pcfs for FAT-32 filesystems, cifs for SMB shares, hsfs (High Sierra filesystem) for ISO 9660 CD-ROMs, and nfs for Sun’s Network Filesystem.

-g

Mount the filesystem globally, across all clusters. No effect on nonclustered systems.

-m

Mount the filesystem without making an entry in /etc/mnttab.

-o options

Supply options for the mount. Multiple options should be comma separated. Following ...

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.