How can the label root be added to the ext2 filesystem on /dev/sda1?
A.
relabel /dev/sda1 root
B.
tune2fs -L root /dev/sda1
C.
echo 'root' > /proc/fs/sda1/label
D.
labelfs --device /dev/sda1 root
题解
选项 A,没有「relabel」指令。
选项 B,「tune2fs」指令可以调整 ext 文件系统的参数,其「-L」参数可以用来调整文件系统的标签。
选项 C,并不会有「/proc/fs/sda1/label」这样的路径。「/proc/fs」存放着 Linux 内核对于不同的特定文件系统所使用的参数。
选项 D,没有「labelfs」指令。
因此答案是选项「B」。
