TIL

lsblk shows the serial of the disk you are about to pull

lsblk takes a list of columns, and SERIAL is one of them. The serial is printed on the disk’s label, so it tells you which of four identical disks is sdc.

$ lsblk -d -o NAME,SIZE,SERIAL
NAME  SIZE SERIAL
sda   3.6T WX12D7A0K4L2
sdb   3.6T WX12D7A0K9F1
sdc   3.6T WX12D7A0J3N8
sdd   3.6T WX12D7A0K1C5

sdc reported 8 reallocated sectors this week. The new disk arrives on Monday, and I will pull the one labelled WX12D7A0J3N8, not the one in the third slot.

Comments

Buy Logbuch