4 ms·
While playing with NixOS the other day I learned about /dev/disk/by-label which is the equivalent, but works with partition labels. So much more elegant than /d
by jon-wood 6y ago
While playing with NixOS the other day I learned about /dev/disk/by-label which is the equivalent, but works with partition labels. So much more elegant than /dev/sda2.
- jgtrosh 6y agoOr mount -L and LABEL=... in fstab
- rascul 6y agoThey're filesystem labels. /dev/disk/by-label gets populated by udev [0]. The labels can be set with "e2label", "btrfs filesystem label", or other tools depending on the filesystem type. [0] https://github.com/systemd/systemd/blob/master/rules.d/60-persistent-storage.rules#L117 https://github.com/systemd/systemd/blob/master/rules.d/60-pe...