List all disk drives and partitions

From Tomelec
Revision as of 08:56, 13 August 2013 by Tom (talk | contribs) (Created page with "'''lsbblk''' prints a nice and readable list of all drives and partitions. Parameters are adjustable. Example: <nowiki>lsblk -o NAME,FSTYPE,MOUNTPOINT,LABEL,UUID,MODEL,SIZE,STAT...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

lsbblk prints a nice and readable list of all drives and partitions. Parameters are adjustable. Example:

lsblk -o NAME,FSTYPE,MOUNTPOINT,LABEL,UUID,MODEL,SIZE,STATE,OWNER,GROUP,MODE,TYPE
me@ubuntu:~$ sudo lsblk -o NAME,FSTYPE,MOUNTPOINT,LABEL,UUID,MODEL,SIZE,STATE,OWNER,GROUP,MODE,TYPE
NAME                  FSTYPE MOUNTPOINT LABEL UUID                                 MODEL              SIZE STATE   OWNER GROUP MODE       TYPE
sda                                                                                Hitachi HTS54252 232.9G running root  disk  brw-rw---- disk
├─sda1                ntfs                    2DE4FCD7C4FCC50C                                       19.1G         root  disk  brw-rw---- part
├─sda2                ext4                    d384ee17-79fb-4a3f-abba-c859d262ac29                   95.4G         root  disk  brw-rw---- part
├─sda3                ext4   /                ef11c478-0dbd-affe-b194-7754dfd49b93                  117.4G         root  disk  brw-rw---- part
└─sda4                                                                                                1.1G         root  disk  brw-rw---- part
  └─cryptswap1 (dm-0) swap   [SWAP]           695a8c6a-fdfb-4f80-a9b2-da601925beef                    1.1G running root  disk  brw-rw---- crypt
sr0                                                                                DVDRAM GSA-T20L   1024M running root  cdrom brw-rw---- rom