Saturday, November 1, 2014

How to Mount USB storage in Solaris

Some times your Solaris operating System won't mount automatically, so you have mount manually.

Below are some simple steps to mount the USB storage device manually.

Step 1: Make sure that your USB storage is using FAT file system

Step 2: Check whether your Solaris operating system detected USB storage by executing below command

SPARC
          #rmformat

x86
         #fdisk -l
           Device       Boot      Start      End      Blocks      Id  System
            /dev/sdb1     *           1        1016     3903763+   b  W95 FAT32

Step 3: Verify whether the USB storage is automatically mounted or not
   
          #df -h

Note: if not mounted, then follow the below steps.

Step 4: Choose the existing empty mount point or create new mount point, here i'm using "/mnt" which is a empty mount point.

         #ls -l /mnt
         total 0
         #mount -F pcfs /dev/dsk/c2t0d0s2:c /mnt

   pcfs - Solaris file system
   c2t0d0s2 - is the device name, you will get this name when you run "rmformat"
   ":c" - it will search for fat file system.

Step 5: Verify whether the USB storage is mounted or not

          #df -h