Differences
This shows you the differences between two versions of the page.
linux_wiki:configure_systems_to_mount_file_systems_at_boot_by_universally_unique_id_uuid_or_label [2016/02/29 21:32] billdozor created |
linux_wiki:configure_systems_to_mount_file_systems_at_boot_by_universally_unique_id_uuid_or_label [2016/03/03 21:43] billdozor |
||
---|---|---|---|
Line 3: | Line 3: | ||
**General Information** | **General Information** | ||
- | About this page/how-to/script. | + | Mounting devices by UUID prevents file systems becoming unavailable due to a device re-number. |
---- | ---- | ||
+ | |||
+ | ===== UUID ===== | ||
Display Labels and UUIDs for devices | Display Labels and UUIDs for devices | ||
Line 11: | Line 13: | ||
blkid | blkid | ||
</ | </ | ||
+ | |||
+ | \\ | ||
+ | Mount /dev/sdb1 via UUID | ||
+ | <code bash> | ||
+ | vim /etc/fstab | ||
+ | |||
+ | UUID=76548596-804f-49a4-bd6c-6df1a98e117f | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Labels ===== | ||
Create label on a XFS filesystem | Create label on a XFS filesystem | ||
Line 17: | Line 31: | ||
</ | </ | ||
+ | \\ | ||
Display label on a XFS filesystem | Display label on a XFS filesystem | ||
<code bash> | <code bash> | ||
Line 22: | Line 37: | ||
</ | </ | ||
+ | \\ | ||
Create label on an ext2/3/4 filesystem | Create label on an ext2/3/4 filesystem | ||
<code bash> | <code bash> | ||
Line 27: | Line 43: | ||
</ | </ | ||
+ | \\ | ||
Display label on ext2/3/4 filesystem | Display label on ext2/3/4 filesystem | ||
<code bash> | <code bash> | ||
Line 32: | Line 49: | ||
</ | </ | ||
- | Mount /dev/sdb1 via UUID and /dev/sdb2 via label | + | \\ |
+ | Mount /dev/sdb2 via label | ||
<code bash> | <code bash> | ||
vim /etc/fstab | vim /etc/fstab | ||
- | UUID=76548596-804f-49a4-bd6c-6df1a98e117f | ||
LABEL=storage2 | LABEL=storage2 | ||
</ | </ |