Wednesday, March 15, 2017

Setting Label for Boot Device on Linux



1) Create label for boot

# e2label /dev/sda1 boot

2) Ensure Label is set for boot device

# e2label /dev/sda1
# blkid | grep boot

3) Edit /etc/fstab for boot as below and save it

# vi /etc/fstab
LABEL=boot                 /boot                ext3       acl,user_xattr        1 2

4) Reboot the server

# reboot

No comments:

Post a Comment