linux_wiki:configure_systems_to_mount_file_systems_at_boot_by_universally_unique_id_uuid_or_label

This is an old revision of the document!


Configure Systems To Mount File Systems At Boot By Universally Unique Id Uuid Or Label

General Information

About this page/how-to/script.


Display Labels and UUIDs for devices

blkid

Create label on a XFS filesystem

xfs_admin -L storage1 /dev/sdb1

Display label on a XFS filesystem

xfs_admin -l /dev/sdb1

Create label on an ext2/3/4 filesystem

tune2fs -L storage2 /dev/sdb2

Display label on ext2/3/4 filesystem

tune2fs -l /dev/sdb2

Mount /dev/sdb1 via UUID and /dev/sdb2 via label

vim /etc/fstab
 
UUID=76548596-804f-49a4-bd6c-6df1a98e117f  /mnt/storage1  xfs  defaults  0 2
LABEL=storage2  /mnt/storage2  ext4  defaults  0 2

  • linux_wiki/configure_systems_to_mount_file_systems_at_boot_by_universally_unique_id_uuid_or_label.1456799541.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)