Create a partition which mount automatically while rebooting system in centos

Preview:

Citation preview

Create a partition under /data, which should be mounted automatically while reboot

to create a new partition first check space availability

To create new partition type command fdisk /dev/hdd and press m for help

for new partition press n and select partition type and first press blank enter than defind the size (+100M)

Press w to save and type partprobe -s /dev/hdd and format the partition with mkfs.ext3 /dev/hdd15

hdd15 partition has been created and mount it in /data

create directory as /data and mount with command mount /dev/hdd15 /data

To make mounting while rebooting system make entry in /.baserc file

The hdd15 partition will mount automatically in /data directory automatic while system boot