When a storage device is attached and 'enumerated' by the system this batch of info is created;sdX or vdX is assigned at this time dependent on what else is concurrently active.
label is a user created designation, therefor duplicates are strictly user error
UUID's are created during creation of the file system and are not related to make/model
Cloning software can result in a duplicate uuid, a conflict is user error
It makes most sense to me to manually label all devices and use by-label. It is true that initially we need to figure out what's what and maybe use the unreliable sdX in some one time initializing command - either creating a file system with label, or labeling a pre-formatted device.
edit: added --no-pager
Code:
# udevadm info --no-pager /dev/sda
label is a user created designation, therefor duplicates are strictly user error
UUID's are created during creation of the file system and are not related to make/model
Cloning software can result in a duplicate uuid, a conflict is user error
It makes most sense to me to manually label all devices and use by-label. It is true that initially we need to figure out what's what and maybe use the unreliable sdX in some one time initializing command - either creating a file system with label, or labeling a pre-formatted device.
edit: added --no-pager
Statistics: Posted by CwF — 2024-07-29 14:11 — Replies 37 — Views 8583