Use it when writing fstab entries, or when the wrong device or nothing mounts after hardware changes.
UUID
A UUID is a unique ID stored in a filesystem, LVM or RAID superblock. /etc/fstab and boot parameters should refer to UUIDs (or labels), because /dev/sdX names can change between boots.
1. blkid — UUIDs of each device.
2. Compare with /etc/fstab and cat /proc/cmdline.
3. Duplicate UUIDs? blkid | sort -k2.
4. Fix fstab or regenerate the UUID on a clone.
5. findmnt --verify then mount -a.
filesystem created with a UUID → fstab/root= refer to it → mount finds the device by UUID
For Disks & Block Devices → UUID, continue with the first unproven Topic check: Identify identifier class: filesystem UUID, PARTUUID, LVM UUID or another layer. If that boundary is healthy, advance to the adjacent check: Resolve it to the current device and confirm model/size/parent relationships. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
lsblk -fVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
storage metadata layer → generated UUID/PARTUUID → userspace resolver/udev links → config reference → selected device → upper layer → workload
Healthy evidence: the identifier type is explicit, resolves uniquely to the intended device/layer and consuming configuration selects the expected current storage object.
Step 2 Verification and output interpretation Verify boundary
Verify UUID/LABEL-to-device resolution and mount source.
Existing fast checks for this Topic. - Identify identifier class: filesystem UUID, PARTUUID, LVM UUID or another layer.
- Resolve it to the current device and confirm model/size/parent relationships.
- Search for duplicate identifiers after cloning or storage replication.
- Verify the consuming config and final mount/LVM/workload state rather than stopping at resolution.
Verification chain. storage metadata layer → generated UUID/PARTUUID → userspace resolver/udev links → config reference → selected device → upper layer → workload
Step 3 Verification path Verify boundary
Exercise one safe negative or boundary case implied by missing device, stale UUID, degraded RAID, inactive LV, thin-pool exhaustion, read-only filesystem, mount namespace mismatch, full blocks/inodes or permission/MAC denial.
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: duplicate UUIDs after clones, confusion between PARTUUID and filesystem UUID, or a stale config reference can select the wrong copy while appearing syntactically valid.
Step 5 Common mistakes Narrow the fault
- Cloned disks with duplicate UUIDs.
Step 6 Where it fails Narrow the fault
Common failure classes are missing device, stale UUID, degraded RAID, inactive LV, thin-pool exhaustion, read-only filesystem, mount namespace mismatch, full blocks/inodes or permission/MAC denial.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Cloning a disk copies its UUIDs — two filesystems with the same UUID confuse mounting; give the copy a new one (tune2fs -U random, xfs_admin -U generate). Filesystem UUID differs from PARTUUID (partition).
lsblk -f— disks, partitions, filesystems, UUIDs and mount pointsblkid— UUIDs, labels and typesfdisk -l / parted -l— partition tablesudevadm info /dev/<dev>— device properties
ReferenceWhat it is1 section · depth on demand
Core model
When a UUID is used for boot or mounting, identify which subsystem generated it and where it is consumed. Resolve the identifier to a current block device and verify that device carries the expected layer metadata. Detect duplicates after cloning, imaging or snapshot restoration because stable naming assumes uniqueness within the relevant namespace.
ReferenceWhy it matters1 section · depth on demand
Overview
UUIDs identify filesystems (and LUKS/LVM objects) independent of device names.
blkid /dev/sdb1
lsblk -o NAME,UUID,PARTUUID,LABEL
findmnt -no UUID /
ls -l /dev/disk/by-uuid/
xfs_admin -U generate /dev/sdc1 # new UUID (unmounted) after cloning
tune2fs -U random /dev/sdc1
Use UUID= (or LABEL=) in /etc/fstab. Cloned disks have duplicate UUIDs — XFS refuses to mount a duplicate UUID (mount -o nouuid temporarily) and LVM warns about duplicate PVs; regenerate them.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
UUID evidence shows identifier-to-object mapping within a layer, but it does not show uniqueness after cloning, data freshness or workload correctness.
udev owns many /dev/disk/by-* links.
In depth
UUIDs, labels and persistent device names
Kernel names like /dev/sdb1 can change when disks are added, removed or detected in another order. Linux therefore identifies file systems and partitions by stable identifiers. The blkid(8) manual page describes the main tags:
- TYPE (the file system type), LABEL and UUID.
- With low-level probing (
-p), also PARTUUID and PARTLABEL from the partition table.
-o value and -o export give script-friendly output, and -t NAME=value finds a device by tag. The manual recommends lsblk for general listings.
Identifier types
| Identifier | Belongs to | Changes when |
|---|---|---|
| UUID | The file system (or LVM PV, swap, LUKS) | The file system is recreated (mkfs) |
| LABEL | The file system, set by the administrator | It's relabelled; may not be unique |
| PARTUUID | The GPT partition entry | The partition table is recreated |
| PARTLABEL | The GPT partition name | It's renamed |
WWN / serial (/dev/disk/by-id) | The physical disk | Never (hardware) |
Where to use which
| Place | Recommended identifier |
|---|---|
/etc/fstab | UUID= (or LABEL= if you control the labels) |
Kernel root= | UUID= (or PARTUUID= when there's no initramfs) |
/etc/crypttab | UUID= of the LUKS container |
| Scripts targeting a specific disk | /dev/disk/by-id/... |
Cloned disks and duplicate UUIDs
A disk image cloned with dd keeps the same UUIDs as the original. With both attached, the system may mount the wrong one. Give the copy new identifiers: xfs_admin -U generate for XFS, tune2fs -U random for ext4, sgdisk -G for GPT GUIDs.
host$ sudo blkid /dev/sdc1
/dev/sdc1: UUID="9e2b6a41-..." BLOCK_SIZE="512" TYPE="xfs" PARTLABEL="data" PARTUUID="5d1f..."
host$ sudo blkid -s UUID -o value /dev/sdc1
9e2b6a41-...
host$ sudo blkid -t LABEL=backup
host$ ls -l /dev/disk/by-uuid/ | grep sdc1
lrwxrwxrwx 1 root root 10 Nov 28 12:05 9e2b6a41-... -> ../../sdc1
host$ sudo blkid -o export /dev/sdc1 | grep -E "^(UUID|TYPE)="
host$ lsblk -o NAME,UUID,PARTUUID,LABEL | awk 'NR==1 || $2 != ""'
host$ sudo xfs_admin -U generate /dev/sdd1
Using the value in fstab
blkid -s UUID -o value prints just the UUID, which is convenient when you write fstab entries in scripts. The /dev/disk/by-uuid symlinks maintained by udev point to the current kernel name. That's why UUID-based entries keep working after the disk order changes.
Documented example, not captured output.
How it works at runtime
UUID is part of Disks & Block Devices → UUID. UUIDs provide stable identifiers at multiple Linux storage layers, including GPT partition GUID/PARTUUID, filesystem UUID and LVM PV/LV identities; the identifier type must be matched to the layer being referenced.
Topic-specific state model. UUIDs provide stable identifiers at multiple Linux storage layers, including GPT partition GUID/PARTUUID, filesystem UUID and LVM PV/LV identities; the identifier type must be matched to the layer being referenced.
Technical metadata. Host, kernel/distribution, timestamp, device major/minor, /dev + sysfs path, model/serial/WWN where available, size/sector geometry, partition-table type and boundaries, UUID/PARTUUID, udev links, filesystem type/UUID/features, mount namespace/source/target/options, free blocks/inodes, PV/VG/LV UUIDs, extents/segments, device-mapper mapping, snapshot/thin state, kernel/storage errors, original workload path and I/O result.
Interpretation rule. - UUID string present ≠ it is a filesystem UUID.
- UUID resolves to a device ≠ that device is the intended current copy.
- Filesystem UUID unique on one host ≠ globally unique after cloning.
- fstab UUID match ≠ mount and workload are healthy.
Mechanics
Important negative cases include missing device, stale UUID, degraded RAID, inactive LV, thin-pool exhaustion, read-only filesystem, mount namespace mismatch, full blocks/inodes or permission/MAC denial.
Limits and how it fails
Primary failure point. UUID evidence shows identifier-to-object mapping within a layer, but it does not show uniqueness after cloning, data freshness or workload correctness.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. UUID owns stable identifier concepts across Linux storage while each subsystem owns its specific UUID metadata. udev owns many /dev/disk/by-* links.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Disks & Block Devices → UUID. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/filesystems/index.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
UUID operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for UUID.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | UUIDs provide stable identifiers at multiple Linux storage layers, including GPT partition GUID/PARTUUID, filesystem UUID and LVM PV/LV identities; the identifier type must be matched to the layer being referenced. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin host + incident/change time → capture block topology and stable identities → validate partition/device metadata → validate filesystem identity/integrity and effective mount namespace/options → validate PV/VG/LV/device-mapper state where used → make one controlled change at the first failed boundary → re-read effective storage state → repeat original workload I/O/acceptance test. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | storage metadata layer → generated UUID/PARTUUID → userspace resolver/udev links → config reference → selected device → upper layer → workload | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | UUID evidence proves identifier-to-object mapping within a layer; it does not prove uniqueness after cloning, data freshness or workload correctness. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux storage evidence can establish this proof path: storage metadata layer → generated UUID/PARTUUID → userspace resolver/udev links → config reference → selected device → upper layer → workload | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured device, metadata, mapping, mount or workload scope. UUID evidence proves identifier-to-object mapping within a layer; it does not prove uniqueness after cloning, data freshness or workload correctness. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven boundary: prove backing identity, then on-device metadata, then filesystem/LVM mapping and effective mount/device state, and finally repeat the original workload I/O before any additional storage change. | Continue to the next unresolved boundary while preserving the original test condition. |
UUID · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | UUID |
|---|---|
| Topic path | Disks & Block Devices → UUID |
| Runtime state | UUIDs provide stable identifiers at multiple Linux storage layers, including GPT partition GUID/PARTUUID, filesystem UUID and LVM PV/LV identities; the identifier type must be matched to the layer being referenced. |
| Fast checks | - Identify identifier class: filesystem UUID, PARTUUID, LVM UUID or another layer. - Resolve it to the current device and confirm model/size/parent relationships. - Search for duplicate identifiers after cloning or storage replication. - Verify the consuming config and final mount/LVM/workload state rather than stopping at resolution. |
| Verification chain | storage metadata layer → generated UUID/PARTUUID → userspace resolver/udev links → config reference → selected device → upper layer → workload Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | UUID evidence proves identifier-to-object mapping within a layer; it does not prove uniqueness after cloning, data freshness or workload correctness. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |
Deep reference
Healthy vs suspicious evidence
Commands
blkid
lsblk -f
ls -l /dev/disk/by-uuid/