Member-only story
Linux Disk Partitions
This is little bit deep into Linux disk partitioning. Linux servers are attach with storage devices. These storage devices divided into partitions, which are logical sections of a physical disk.
Available partition types
Primary Partition: The main partitions (maximum up to 4 in MBR).
Extended Partition: Used to create multiple logical partitions (in MBR).
Logical Partition: Inside an Extended Partition explained above (in MBR).
GPT Partitions: Used in modern systems, supports 128 partitions (in GPT).
Swap Partition: Used for virtual memory (disk storage as memory).
Lets learn about these words.
When we connect a disk (storage) to a linux server/host, linux server identifies it as a file (In Linux world everything is a file).
Here I am not going to talk about root disk (/dev/vda is the root disk). So I am assuming a use case, we need a additional storage called new Disk of 1GB. You can execute lsblk command to monitor attached disks.