lsblk -O -a --json
{
“blockdevices”: [
{“name”:“loop0”, “kname”:“loop0”, “path”:"/dev/loop0", “maj:min”:“7:0”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:null, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:256, “type”:“loop”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:null, “tran”:null, “subsystems”:“block”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“loop1”, “kname”:“loop1”, “path”:"/dev/loop1", “maj:min”:“7:1”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:null, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:256, “type”:“loop”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:null, “tran”:null, “subsystems”:“block”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“loop2”, “kname”:“loop2”, “path”:"/dev/loop2", “maj:min”:“7:2”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:null, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:256, “type”:“loop”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:null, “tran”:null, “subsystems”:“block”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“loop3”, “kname”:“loop3”, “path”:"/dev/loop3", “maj:min”:“7:3”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:null, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:256, “type”:“loop”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:null, “tran”:null, “subsystems”:“block”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“loop4”, “kname”:“loop4”, “path”:"/dev/loop4", “maj:min”:“7:4”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:null, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:256, “type”:“loop”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:null, “tran”:null, “subsystems”:“block”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“loop5”, “kname”:“loop5”, “path”:"/dev/loop5", “maj:min”:“7:5”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:null, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:256, “type”:“loop”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:null, “tran”:null, “subsystems”:“block”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“loop6”, “kname”:“loop6”, “path”:"/dev/loop6", “maj:min”:“7:6”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:null, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:256, “type”:“loop”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:null, “tran”:null, “subsystems”:“block”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“loop7”, “kname”:“loop7”, “path”:"/dev/loop7", “maj:min”:“7:7”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:null, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:256, “type”:“loop”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:null, “tran”:null, “subsystems”:“block”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“sda”, “kname”:“sda”, “path”:"/dev/sda", “maj:min”:“8:0”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:“62e1c488-a33f-4357-be47-9e3ffbce7d57”, “pttype”:“gpt”, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:1024, “ro”:false, “rm”:false, “hotplug”:false, “model”:“Samsung_SSD_840_PRO_Series”, “serial”:“S1AXNEAD605201N”, “size”:“477G”, “state”:“running”, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:false, “sched”:“bfq”, “rq-size”:1024, “type”:“disk”, “disc-aln”:0, “disc-gran”:“512B”, “disc-max”:“2G”, “disc-zero”:false, “wsame”:“0B”, “wwn”:“0x5002538550389ba1”, “rand”:false, “pkname”:null, “hctl”:“0:0:0:0”, “tran”:“sata”, “subsystems”:“block:scsi:pci”, “rev”:“5B0Q”, “vendor”:“ATA “, “zoned”:“none”,
“children”: [
{“name”:“sda1”, “kname”:“sda1”, “path”:”/dev/sda1”, “maj:min”:“8:1”, “fsavail”:null, “fssize”:null, “fstype”:“vfat”, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:“boot”, “uuid”:“93A7-CBFF”, “ptuuid”:“62e1c488-a33f-4357-be47-9e3ffbce7d57”, “pttype”:“gpt”, “parttype”:“c12a7328-f81f-11d2-ba4b-00a0c93ec93b”, “partlabel”:“EFI”, “partuuid”:“588e3444-243c-4037-93ca-503a95b88893”, “partflags”:null, “ra”:1024, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:“142M”, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:false, “sched”:“bfq”, “rq-size”:1024, “type”:“part”, “disc-aln”:0, “disc-gran”:“512B”, “disc-max”:“2G”, “disc-zero”:false, “wsame”:“0B”, “wwn”:“0x5002538550389ba1”, “rand”:false, “pkname”:“sda”, “hctl”:null, “tran”:null, “subsystems”:“block:scsi:pci”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“sda2”, “kname”:“sda2”, “path”:"/dev/sda2", “maj:min”:“8:2”, “fsavail”:null, “fssize”:null, “fstype”:“swap”, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:“swap”, “uuid”:“3b440a62-185f-449b-b025-43f0d4244a86”, “ptuuid”:“62e1c488-a33f-4357-be47-9e3ffbce7d57”, “pttype”:“gpt”, “parttype”:“0657fd6d-a4ab-43c4-84e5-0933c84b4f4f”, “partlabel”:“linux-swap”, “partuuid”:“2c2efe80-acaf-49a7-9128-235e7eaa8ce7”, “partflags”:null, “ra”:1024, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:“244M”, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:false, “sched”:“bfq”, “rq-size”:1024, “type”:“part”, “disc-aln”:0, “disc-gran”:“512B”, “disc-max”:“2G”, “disc-zero”:false, “wsame”:“0B”, “wwn”:“0x5002538550389ba1”, “rand”:false, “pkname”:“sda”, “hctl”:null, “tran”:null, “subsystems”:“block:scsi:pci”, “rev”:null, “vendor”:null, “zoned”:“none”},
{“name”:“sda3”, “kname”:“sda3”, “path”:"/dev/sda3", “maj:min”:“8:3”, “fsavail”:“270.7G”, “fssize”:“476.6G”, “fstype”:“btrfs”, “fsused”:“203.7G”, “fsuse%”:“43%”, “mountpoint”:"/", “label”:“root”, “uuid”:“8e4a5826-9464-49ca-854c-408adaf1bd54”, “ptuuid”:“62e1c488-a33f-4357-be47-9e3ffbce7d57”, “pttype”:“gpt”, “parttype”:“4f68bce3-e8cd-4db1-96e7-fbcaf984b709”, “partlabel”:"/", “partuuid”:“d02f1851-cca7-4cce-b85e-911f84192794”, “partflags”:null, “ra”:1024, “ro”:false, “rm”:false, “hotplug”:false, “model”:null, “serial”:null, “size”:“476.6G”, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:false, “sched”:“bfq”, “rq-size”:1024, “type”:“part”, “disc-aln”:0, “disc-gran”:“512B”, “disc-max”:“2G”, “disc-zero”:false, “wsame”:“0B”, “wwn”:“0x5002538550389ba1”, “rand”:false, “pkname”:“sda”, “hctl”:null, “tran”:null, “subsystems”:“block:scsi:pci”, “rev”:null, “vendor”:null, “zoned”:“none”}
]
},
{“name”:“sdb”, “kname”:“sdb”, “path”:"/dev/sdb", “maj:min”:“8:16”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:“15cee05a-d8ab-4c0a-8625-d797a0239414”, “pttype”:“gpt”, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:1024, “ro”:false, “rm”:false, “hotplug”:true, “model”:“WDC_WD5000BEVT-22A0RT0”, “serial”:“WD-WXA0AB9T1528”, “size”:“465.8G”, “state”:“running”, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“bfq”, “rq-size”:1024, “type”:“disk”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:“0x50014ee001d6bd85”, “rand”:true, “pkname”:null, “hctl”:“2:0:0:0”, “tran”:“usb”, “subsystems”:“block:scsi:usb:pci”, “rev”:“1.75”, “vendor”:“WD “, “zoned”:“none”,
“children”: [
{“name”:“sdb1”, “kname”:“sdb1”, “path”:”/dev/sdb1”, “maj:min”:“8:17”, “fsavail”:“101.6G”, “fssize”:“465.8G”, “fstype”:“btrfs”, “fsused”:“363.4G”, “fsuse%”:“78%”, “mountpoint”:"/media/Ext-Drive", “label”:“Ext-Drive”, “uuid”:“c48ed702-3b9a-40dd-8709-0419b249102d”, “ptuuid”:“15cee05a-d8ab-4c0a-8625-d797a0239414”, “pttype”:“gpt”, “parttype”:“0fc63daf-8483-4772-8e79-3d69d8477de4”, “partlabel”:null, “partuuid”:“8796e8ed-e036-4b6e-8ad5-d207cd11571b”, “partflags”:null, “ra”:1024, “ro”:false, “rm”:false, “hotplug”:true, “model”:null, “serial”:null, “size”:“465.8G”, “state”:null, “owner”:“root”, “group”:“disk”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“bfq”, “rq-size”:1024, “type”:“part”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:“0x50014ee001d6bd85”, “rand”:true, “pkname”:“sdb”, “hctl”:null, “tran”:null, “subsystems”:“block:scsi:usb:pci”, “rev”:null, “vendor”:null, “zoned”:“none”}
]
},
{“name”:“sr0”, “kname”:“sr0”, “path”:"/dev/sr0", “maj:min”:“11:0”, “fsavail”:null, “fssize”:null, “fstype”:null, “fsused”:null, “fsuse%”:null, “mountpoint”:null, “label”:null, “uuid”:null, “ptuuid”:null, “pttype”:null, “parttype”:null, “partlabel”:null, “partuuid”:null, “partflags”:null, “ra”:128, “ro”:false, “rm”:true, “hotplug”:true, “model”:“TSSTcorp_DVD+_-RW_SU-208GB”, “serial”:“S1B36YDH200172”, “size”:“1024M”, “state”:“running”, “owner”:“root”, “group”:“cdrom”, “mode”:“brw-rw----”, “alignment”:0, “min-io”:512, “opt-io”:0, “phy-sec”:512, “log-sec”:512, “rota”:true, “sched”:“mq-deadline”, “rq-size”:64, “type”:“rom”, “disc-aln”:0, “disc-gran”:“0B”, “disc-max”:“0B”, “disc-zero”:false, “wsame”:“0B”, “wwn”:null, “rand”:false, “pkname”:null, “hctl”:“1:0:0:0”, “tran”:“sata”, “subsystems”:“block:scsi:pci”, “rev”:“H100”, “vendor”:“TSSTcorp”, “zoned”:“none”}
]
}