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


Tuesday, October 7, 2014

Mount NTFS file system in Linux/Unix

There is a situation you need to mount USB Hard Disk into Linux Server, below are the simple steps to mount USB Hard Disk.

Step 1: download the ntfs-3g package from tuxera

Step 2: copy to Linux server if you downloaded from different machine.

Step 3: I have copied to the /opt folder
            [root@Server opt]#tar zxvf ntfs-3g-xxxx.tgz

Step 4: Compile & install the ntfs-3g package.
            [root@Server opt]#cd ntfs-3g-xxxx
            [root@Server ntfs-3g-xxxx]#./configure
            [root@Server ntfs-3g-xxxx]#make
            [root@Server ntfs-3g-xxxx]#make install

Step 5:After successful installation you can mount the NTFS file system in Linux

           You can identify the NTFS Hard Disk by executing below command.
           [root@Server ~]#fdisk -l


           Create mount point for the NTFS Hard Disk.
           [root@Server ~]#mkdir /mnt/ntfs

           After identifying the NTFS Hard Disk, you can mount the partition using below command.
           [root@Server ~]#mount -t ntfs-3g /dev/sdb1 /mnt/ntfs

          You can verify the mounted devices by using below command.
           [root@Server ~]#df -h