The following steps illustrate how to mount and unmount a USB mass storage device.
(Optional) Identify the device.
For example:
$ rmformat Looking for devices... 1. Logical Node: /dev/rdsk/c3t0d0p0 Physical Node: /pci@0,0/pci108e,534a@2,1/storage@3/disk@0,0 Connected Device: SanDisk Cruzer Micro 0.3 Device Type: Removable Bus: USB Size: 245.0 MB Label: <None> Access permissions: Medium is not write protected. |
In this example, the physical diskette device is c2t0d0p0.
Or, identify the nickname for the device. For example:
$ rmmount -l /dev/dsk/c2t0d0p0 floppy,floppy0,fd,fd0,diskette,diskette0,rdiskette,rdiskette0 |
Select one of the following to mount or unmount a USB mass storage device:
Mount a USB mass storage device as a console user.
You can use the rmmount command with device nicknames, mount points, or device paths, similar to the following:
$ rmmount rmdisk0 $ rmmount NONAME $ rmmount /dev/dsk/c3t0d0p0:1 |
For example:
$ rmmount NONAME NONAME /dev/dsk/c2t0d0p0 mounted $ ls /media/NONAME AA.TXT |
Unmount a USB mass storage device as a console user.
For example:
$ rmumount NONAME NONAME /dev/dsk/c2t0d0p0 unmounted |
Mount a USB mass storage device as superuser.
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 as superuser.
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 DVD, CD, or diskette devices.
For example:
# eject /dev/rdsk/c1t0d0s2 |