How to create partition in Redhat 7/8 and Centos 7/8

Опубликовано: 10 Октябрь 2024
на канале: Socrates Bharathi
10,176
122

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.

   • How to create partition in Redhat 7/8...  


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