Article sections

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