Browse Tag: disk labels

Disk labels

See the current label (if any):
[code lang=”bash”]e2label /dev/sda[/code]

Set a disk label:
[code lang=”bash”]e2label /dev/sda /boot[/code]

Can use in fstab as follows:

[code lang=”bash”]LABEL=/boot /boot ext3 defaults 0 0[/code]

Word of warning: disk labels add another layer of abstraction — except it’s not really abstracting the device at all. Note that some operations, such as a ghost, will not take into account disk labels and they will not be copied.