Identifying hard drives
I’ve had a Linux server at home with a lot of hard drives in it for many years. One of the most frustrating things about this has been when a drive eventually fails, it’s a pain to identify exactly which drive it is that has failed. This seems obviously in hindsight, but I recently realized that “hdparm -i /dev/sdx” will give you the serial number of a drive. So since I was replacing the root disk with an SSD, I figured that I would put a label with the serial number on the front end and back end of all of the drives so that I could easily identify failed drives without unmounting them in the future. The upside here is that apparently hard drive manufacturers have been putting labels on the front end of the drive for years. The labels have the serial number on them, along with a barcode that I assume also decodes to the serial number.