Stop block device confusion when drives look identical

Disk & Filesystem Management (Du/Df/Lsblk/Fstrim)

Stop block device confusion when drives look identical

🧩 The Challenge

Dealing with a server farm where every disk looks like sdb or sdc is a total nightmare, especially when you are trying to swap a failing drive without nuking the wrong RAID array. I have spent way too much time double-checking labels just to avoid a catastrophic error.

💡 The Fix

Use the specific flags on lsblk to show the drive’s serial number and path, which pulls the truth straight from the hardware rather than relying on kernel naming that changes every time you reboot or plug in a new cable.

lsblk -o NAME,MODEL,SERIAL,SIZE,PATH

⚙️ Why It Works

Passing that -o flag forces the command to ignore the defaults and display the actual hardware identifiers, letting you match the physical drive label to the OS device node. It turns an hour of cable tracing into a thirty-second sanity check.

🚀 Pro-Tip: Stick the serial number in a ticket comment whenever you replace hardware so you never have to guess again.

Linux Tips & Tricks | © ngelinux.com | 10/13/2026

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted