To mount a File System in RedHat Linux, please perform the below steps:

1. Identify the newly added Disk

[root@localhost ~]# fdisk -l

Disk /dev/sda: 85.9 GB, 85899345920 bytes, 167772160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000207be

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     4196351     2097152   83  Linux
/dev/sda2         4196352    37750783    16777216   82  Linux swap / Solaris
/dev/sda3        37750784    58722303    10485760   83  Linux
/dev/sda4        58722304   167772159    54524928    5  Extended
/dev/sda5        58724352    69210111     5242880   83  Linux
/dev/sda6        69212160   167772159    49280000   83  Linux

Disk /dev/sdb: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

 

2. Partition the newly added disk

[root@localhost ~]# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0x75a9ec50.

Command (m for help): n
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p):
Using default response p
Partition number (1-4, default 1):
First sector (2048-104857599, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-104857599, default 104857599):
Using default value 104857599
Partition 1 of type Linux and of size 50 GiB is set

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

 

3. Make File System of the partitioned Disk

[root@localhost ~]# /sbin/mkfs -t ext3 /dev/sdb1
mke2fs 1.42.9 (28-Dec-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
3276800 inodes, 13106944 blocks
655347 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
400 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

 

4. Label to the partitioned disk to the desired name

[root@localhost ~]# /sbin/e2label /dev/sdb1 /mysqldatabase

 

5. Check whether the desired volume name has been created or not

[root@localhost ~]# /sbin/tune2fs -l /dev/sdb1 |grep volume
Filesystem volume name:   /mysqldatabase

 

6. Put the details in fstab entry

[root@localhost ~]# vi /etc/fstab
LABEL=/mysqldatabase          /mysqldatabase                ext3    defaults        1 2

 

7. Create the directory

[root@localhost ~]# mkdir /mysqldatabase

 

8. Mount the File System

[root@localhost ~]# mount /dev/sdb1 /mysqldatabase

 

9. Check whether the File System has been created or not

[root@localhost ~]# df -hP /mysqldatabase
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb1        50G   52M   47G   1% /mysqldatabase