How do I map a Linux disk to its physical serial number and drive bay?
A device name such as /dev/sda can change after reboot or hardware changes. Drive replacement should use a verified serial number, controller/enclosure identity and physical bay mapping. Operating-system inventory helps establish that mapping, but a provider or vendor tool must confirm the actual chassis location.
Before you start
- Authorised access to the dedicated server and the named inspection tools.
Instructions
1. Collect the disk inventory
Use disk-only output and include stable identifiers when available. Serial and WWN fields may be hidden or transformed by a RAID controller.
lsblk -d -o NAME,SIZE,MODEL,SERIAL,WWNKeep the identifiers within the authorised support ticket. Do not infer a bay number from the alphabetical device order.
2. Confirm one selected device
After selecting the exact device from the inventory, read its identity through the supported device access path.
sudo smartctl -i /dev/sdaReplace /dev/sda with the verified target. Some controllers require a documented device-type option; do not guess controller indexes.
Check the result
- The operating-system device, physical serial number and vendor/provider bay identifier all refer to the same drive before anyone removes it.
Troubleshooting
- The serial is missing or identical across virtual disks
- Use the controller’s physical-drive view rather than a logical-volume identifier.
- A locate LED is available
- Its use should still be paired with serial verification and a coordinated replacement ticket; the LED alone is not the full identity check.
- The device name changed
- Rebuild the mapping from current inventory before proceeding.
Official references
Use the documentation for your installed version when a flag, service name or platform feature differs.
