Steps to Create Filesystem and Mounting the Same in Linux



1.       Check whether LUN/HardDisk is allocated in the server and identify the Disk/LUN Device name            using the following command

                     fdisk –l

         NB:  Harddisk/LUN name can be identified using the below command also

                  ls /dev/sd*

Output : /dev/sda  /dev/sda1  /dev/sda2  /dev/sdb  /dev/sdc

2.       Create the new filesystem using the new Disk/LUN allocated as shown below
                               
                   mkfs -t ext3 /dev/sdb
                              
3.       Create a directory for the mount point required as shown below.

                  mkdir /ora1

4.       Mount the Filesystem in created directory as shown below.

                   mount /dev/sdb /ora1

5.       Verify the new file system created using the following command.
                                
                   df –h

6.        Add the created filesystem in fstab file for permanently mount in linux so that it is available after                         the reboot.

                   vi /etc/fstab

                  Add the entry  in fstab file à   /dev/sdb  /ora1   ext3  defaults 1 2 

Comments