lsblk
List bulk storage devices
lsblk -f
Along with their file system
fdisk <path of block storage device>
Manipulate disk parition table
Steps
Parition a block storage device using fdisk
p
to list current partitionsn
to add new partitionsstart
and end
sectors for the partitiond
to delete partitionsw
to save the partition tableFormat the partiton, or specify a filesystem
mkfs.<filesystem> <path to block storage>
is used to format the partition.
mkfs.ext4 <path to block storage>
to format the partition with
ext4
filesystem.Mount the partition to be used
mount <path to block storage> <mounting path>
umount <path to block storage>
to unmount.