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"
...
'개발자 > 개발환경' 카테고리의 다른 글
소프트웨어 소스 관리 툴 (0) | 2017.11.07 |
---|---|
깃허브(https://www.github.com) 사용하기 / Git compile 하기 (0) | 2017.06.20 |
권한없이 리다이렉션 사용하기 (Linux shell) (0) | 2017.06.02 |
make 출력을 표준입력으로 변경하기 (0) | 2017.04.11 |
Git 활용하기 (0) | 2017.03.09 |