See How to Prepare to Use USB Mass Storage Devices Without vold Running for information on disabling vold.
Become superuser.
(Optional) Identify the diskette device.
For example:
# cd /dev/rdsk # devfsadm -C # 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.
# mount -F pcfs /dev/dsk/c1t0d0s0: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.
# eject /dev/[r]dsk/cntndnsn |
For example:
# eject /dev/rdsk/c1t0d0s2 |