How to Mount an Allocated Device
Devices mount automatically if you are granted the appropriate privileges. Follow this procedure if the device fails to mount.
You have allocated the device. You are assigned the privileges that are required for mounting the device, as described in How to Authorize Users to Allocate a Device.
Example 4-7 Allocating a CD-ROM Drive
In this example, a user assumes a role that can allocate and mount a
CD-ROM drive, sr0
. The drive is formatted as an HSFS file
system.
$ roles devicealloc $ su - devicealloc Password: <Type devicealloc password> $ mkdir /home/devicealloc/mymnt $ chmod 700 /home/devicealloc/mymnt $ list_devices -l ... device: sr0 type: sr files: /dev/sr0 /dev/rsr0 /dev/dsk/c0t2d0s0 ... ... $ allocate sr0 $ mount -o ro -F hsfs /dev/sr0 /home/devicealloc/mymnt $ cd /home/devicealloc/mymnt ; ls List of the contents of CD-ROM
Troubleshooting: If the mount
command cannot mount the device, the mount: insufficient privileges
error message is displayed: Check the following:
-
Verify that you are executing the
mount
command in a profile shell. If you have assumed a role, the role has a profile shell. If you are a user who has been assigned a profile with themount
command, you must create a profile shell. For the list of available profile shells, see thepfexec
(1) man page. -
Verify that you own the specified mount point. You must have read, write, and execute access to the mount point.
Contact your administrator if you still cannot mount the allocated device. See How to Troubleshoot Rights Assignments in Securing Users and Processes in Oracle Solaris 11.4 is a starting point.