海之星科技
HY-STAR

專業電源IC供應 ⇒ DC-DC 降壓轉換器, DC-DC 升壓轉換器,LED 驅動 IC,MOSFETs / IGBTs


 The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

Display Hard Drive Information with blkid

Generally, executing blkid and displaying "block devices" information requires root privileges. Block devices include storage devices like hard drives and USB drives etc., By default, the displayed information includes the device file name, label name (if set), UUID, and the type of filesystem.

例:
# blkid ← Display storage device information
/dev/sda2: UUID="39f4872d-bc18-4fa4-9f3f-ed94e47c2f22" TYPE="ext4"
/dev/sda1: UUID="c2eaa1e5-ad82-42c8-965d-e4807a8e0665" TYPE="ext4"
/dev/sda3: UUID="d3d5cb80-8dc5-4d01-bf9d-b80da65e5895" TYPE="ext4"
/dev/sda5: UUID="1c30d65d-6256-4090-a660-520a0b375ecd" TYPE="swap"
/dev/sdb: LABEL="db2" UUID="cbc2683a-3ddb-4ec2-9f22-cf6fd12851d7" TYPE="ext2"

For more examples and options, you can refer to the provided link.