参数
-a #显示所有设备。
-m #显示权限信息
1、lsblk列出设备信息 (默认不列出控设备)
xiao@redf:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 32G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 30G 0 part /
└─sda3 8:3 0 2G 0 part [SWAP]
sdb 8:16 0 10G 0 disk
sr0 11:0 1 2G 0 rom
2、显示设备权限信息
xiao@redf:~$ lsblk -m
NAME SIZE OWNER GROUP MODE
sda 120G root disk brw-rw----
├─sda1 1M root disk brw-rw----
├─sda2 100G root disk brw-rw----
└─sda3 20G root disk brw-rw----
sr0 2G root cdrom brw-rw----
3、获取SCSI设备
xiao@redf:~$ lsblk -S
NAME HCTL TYPE VENDOR MODEL REV SERIAL TRAN
sda 32:0:0:0 disk VMware Virtual disk 2.0 spi
sr0 2:0:0:0 rom NECVMWar VMware Virtual SATA CDRW Drive 1.00 00000000000000000001 sata
标签:rw,lsblk,brw,----,命令,disk,root
From: https://blog.51cto.com/xiaolulang/9182052