Disk Tool & Diagnostic

How do I find the UUID of a filesystem

lsblk

$ lsblk

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0   477G  0 disk 
├─sda1   8:1    0   260M  0 part /boot/efi
├─sda2   8:2    0    16M  0 part 
├─sda3   8:3    0  45,9G  0 part 
├─sda4   8:4    0   499M  0 part 
├─sda5   8:5    0  44,5G  0 part /
├─sda6   8:6    0 286,2G  0 part /home
└─sda7   8:7    0  99,6G  0 part /archive

blkid /dev/sda7

$ blkid /dev/sda7
/dev/sda7: UUID="dffbe19f-eb0f-4027-8912-db9299ac26eb" TYPE="ext4" PARTLABEL="archive" PARTUUID="c4359d67-57b3-4595-8bad-175876fd71bb" 

Indentify HDD by SATA port number

$ lscscsi

Remove a SATA disk from a running system

$ device=sde; sudo sh -c "echo 1 > /sys/block/${device}/device/delete"
Written on March 16, 2019, Last update on December 10, 2023
cli disk linux fstab