Skip to content

Instantly share code, notes, and snippets.

@flannon
Last active March 1, 2017 12:53
Show Gist options
  • Save flannon/c850b6339b59e599b7b2bbf6f4ac9c30 to your computer and use it in GitHub Desktop.
Save flannon/c850b6339b59e599b7b2bbf6f4ac9c30 to your computer and use it in GitHub Desktop.
List block devices
$ lsblk
Read label
$ sudo e2label <device name>
write label
$ sudo e2label <device name> <label>
fstab entries to mount by label
LABEL=<label> <mount-point> <fstype> defaults 0 0
LABEL=centos_root / ext4 defaults 0 0
LABEL=aspace_data /opt/archivesspace/data ext4 defaults 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment