歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux基礎知識 >> 基礎知識 - label的問題

基礎知識 - label的問題

日期:2017/2/27 10:15:21   编辑:Linux基礎知識
label的問題
2004-04-23 15:18 pm
來自:Linux文檔
現載:Www.8s8s.coM
地址:無名

啟動設備有兩種表示方法
一種是:
root=/dev/hd[x][n]
這個是直接指示;

另外一種是:
root=LABEL={LABEL}
這個解析為
root= LABEL={LABEL}

你的就是這種情況
說明是根據卷標找到根設備。

代碼:

[root@hostname home]# tune2fs -l /dev/hda4
tune2fs 1.32 (09-Nov-2002)
Filesystem volume name: /
......

這裡看到我的hda4的LABEL是“/”
代碼:

[root@hostname home]# cat /etc/grub.conf | grep root
# root (hd0,3)
# kernel /boot/vmlinuz-version ro root=/dev/hda4
root (hd0,3)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi

在grub的注釋中已經說明了root是hda4,也就是root=LABEL=/的作用。

Copyright © Linux教程網 All Rights Reserved