When working with linux and disks you are always searching for tools to see/expose partition/volumes. I will put here all stuff related to disk management that I use.

 

df : report filesystem disk space usage

sudo df -a : report usage of disks attached to computer

blkid : locate/print block device attributes

sudo blkid : give all block device on computer

fdisk : Partition table manipulator

fdisk [-u] [-b sectorsize] [-C cyls] [-H heads] [-S sectsdevice

sudo fdisk -l : list all partitions from /proc/partitions

sudo fdisk -l /dev/sda : list partitions from /dev/sad

fdisk /dev/sda : enter in command mode to work on /dev/sda

    m – print help

    p – print the partition table

    n – create a new partition

    d – delete a partition

    q – quit without saving changes

    w – write the new partition table and exit

    mkfs : build a Linux file system

mkfs.<desired FS format> /dev/partition_to_format

mkfs.ext3 /dev/sda1 : create FS on sda1 with ext3 format.

    mount : mount a file system

mount : show all mounted FS

mount -t <type> /src /dest : to mount a FS from src to dest