Linux serverNETWORK ADMINISTRATIONS

How to create partition in Redhat 7 and Centos 7

This tool is very useful in terms of creating space for new partitions, organisation space for new drives, re-organisation an old drives and copying or moving data to new disks.

Steps to Create a partition :

fdisk -l
fdisk /dev/vda
:n
laste sector +100M
:p
:w
#partprobe
#mkfs.ext4 /dev/vda1
#mkdir /zerocool
#vim /etc/fstab
/dev/vda1 /zerocool ext4 default 0 0
:wq!
#mount -a
df -hT

source

centos 7

Leave a Reply

Your email address will not be published. Required fields are marked *