개발자/개발환경
Ubuntu에서 Disk Label 변경하기 (Label 확인하기)
알 수 없는 사용자
2017. 3. 10. 14:36
Disk Label을 변경 하는 경우는 극히 드물기는 하지만,
/etc/fstab이나 grub에서 사용하는 경우(요즘은 UUID를 사용해서...),
Disk를 통째로 backup 하는 경우 유용하게 사용할 수 있다.
# sudo e2label
Usage: e2label device [newlabel]
Disk Label 확인 하기
# sudo e2label /dev/sda1
SecondaryBoot
/dev/sda1 Disk Partition 이름을 "PrimaryBoot"로 변경 하기위해
# sudo e2label /dev/sda1 PrimaryBoot
Disk UUID 및 Label 모두 확인 하기
# sudo blkid
/dev/sda1: LABEL="PrimaryBoot" UUID="f1cbd864-49c9-4d09-b77e-021abd26a1ce" TYPE="ext4" PTTYPE="dos" PARTUUID="ce014063-01"
...