The following steps illustrate how to mount and unmount a USB mass storage device with removable media services disabled.
Become superuser.
For information on disabling removable media services, see How to Disable or Enable Removable Media Services.
Verify that removable media services are not running.
# svcs volfs STATE STIME FMRI disabled 10:39:12 svc:/system/filesystem/volfs:default |
(Optional) Identify the device.
For example:
# cd /dev/rdsk # ls -l c*0 | grep usb lrwxrwxrwx 1 root root 55 Mar 5 10:35 c2t0d0s0 -> ../../devices/pci@1f,0/usb@c,3/storage@3/disk@0,0:a,raw |
In this example, the diskette device is c2t0d0s0.
Select one of the following to mount or unmount a USB mass storage device:
Mount a USB mass storage device.
# mount [ -F fstype ] block-device mount-point |
This example shows how to mount a device with a UFS file system:
# mount /dev/dsk/c1t0d0s2 /mnt |
This example shows how to mount a device with a PCFS file system on a SPARC system:
# mount -F pcfs /dev/dsk/c3t0d0s2:c /mnt |
This example shows how to mount a device with a PCFS file system on an x86 system:
# mount -F pcfs /dev/dsk/c3t0d0p0:c /mnt |
This example shows how to mount a CD with a read-only HSFS file system:
# mount -F hsfs -o ro /dev/dsk/c1t0d0s2 /mnt |
Unmount a USB mass storage device.
First, be sure no one is using the file system on the device.
For example:
# fuser -c -u /mnt # umount /mnt |
Eject the device, which is optional for CD or diskette devices.
# eject /dev/[r]dsk/cntndnsn |
For example:
# eject /dev/rdsk/c1t0d0s2 |