Skip to main content

Disk Management

Disk device list

lsblk

Create a filesystem

sudo mkfs.ext4 /dev/<device-name>

Display storage size

df -h

Mount disk

mount /dev/<device-name> <path>

Unmount disk

umount <path>

Persist the mount on reboot

nano /etc/fstab
/dev/<device-name>   <path>   ext4    defaults    0   2