Managing Devices in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

How to Mount or Unmount a USB Mass Storage Device

The following steps illustrate how to mount and unmount a USB mass storage device.

  1. Become an administrator.
  2. (Optional) Identify the device.
    $ rmformat

    The following example identifies a physical diskette device as c2t0d0p0.

    $ 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.
  3. 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

      The following example mounts c2t0d0p0 whose mount point is NONAME.

      $ rmmount NONAME
      NONAME /dev/dsk/c2t0d0p0 mounted
      $ ls /media/NONAME
      AA.TXT
    • Unmount a USB mass storage device as a console user.

      The following example unmounts c2t0d0p0 whose mount point is NONAME.

      $ rmumount NONAME
      NONAME /dev/dsk/c2t0d0p0 unmounted
    • Mount a USB mass storage device as superuser.

      The following example mounts c1t0d0s2 with a UFS file system:

      $ mount /dev/dsk/c1t0d0s2 /mnt

      The following example mounts c3t0d0s2 with a PCFS file system on a SPARC system:

      $ mount -F pcfs /dev/dsk/c3t0d0s2:c /mnt

      The following example mounts c3t0d0p0 with a PCFS file system on an x86 system:

      $ mount -F pcfs /dev/dsk/c3t0d0p0:c /mnt

      The following example mounts c1t0d0s2 with a read-only HSFS file system:

      $ mount -F hsfs -o ro /dev/dsk/c1t0d0s2 /mnt
    • Unmount a USB mass storage device as superuser.

      The following example unmounts a storage devise.

      $ fuser -c -u /mnt
      $ umount /mnt
  4. Eject the device.

    This step is optional for DVD, CD, or diskette devices.

    $ eject /dev/rdsk/c1t0d0s2

    The following example ejects c1t0d0s2.