- Find right hdd
- refer article Get List of HDDs or SSDs with vendor name, product name or number, serial number, capacity
- Create gtp partition using fdisk command
- confirm /dev/sd(x) hdd
- use fdisk /dev/sd(x) for example fdisk /dev/sda
- type g for gtp partition creation
- type w to write partition table on hdd
- make ext4 partition using part command
- parted /dev/sd(x)
- (parted) mklabel GPT
- it will ask to remove data.
- give yes
- (parted) unit TB
- (parted) mkpart primary 0.00TB 10.00TB
- check partition created
- (parted) print
- quit
- Use the mkfs.ext4 command to format the file system
mkfs.ext4 /dev/sd(x)1
- give label using
e2label command
- check label using
- e2label /dev/sd(x)1
- if it is blank in next line give label
- or you can relebel with the same command
- e2label /dev/sd(x)1 GIVE_LABEL_NAME
- recheck e2label /dev/sd(x)1
- make directory to mount partition
- make directory in root using mkdir command
- add auto mount partition
- LABEL=Webserver /wwwdata ext4 defaults 1 2
- syntax is LABEL=LableNameofPartition MOUNTONFOLDER TYPE OF PARTITION defaults 1 2
- do not use space. use tab
- please leave oneline blank at end
- reboot and check with df -h command