2012年2月16日 星期四

Booting grub

#########################################
#########################################
Question: 因為我是利用grub當開機管理,因為每次都會看到 kernel /boot/vmliuz-2.6.10-1.771_FC2 ro root=LABEL=/ rhgb quiet
我有看過一些書,可是很少有在說明的,所以我非常很好奇 ro root=LABEL=/ rhgb quiet 它的功能是什麼??跟/proc/cmdline關係
墾請大大告知~謝謝您!!
ro root=LABEL=/ rhgb quiet

Solution:
"kernel /boot/vmliuz-2.6.10-1.771_FC2" 只是在告訴 grub 關於 kernel image 的正確位址, "ro root=LABEL=/ rhgb quiet" 是傳給 kernel 的參數 (command line), 'ro' 表示一開始以唯讀的方式去 mount root file system (稍後會再 remount 成可讀寫), 'root=LABEL=/' 則告訴 kernel 關於 root file system 所在之位置, 'quiet' 表示 kernel 載入的過程不要螢幕上顯示訊息, 'rhgb' 不是給 kernel 用的, 而是藉著 kernel command line (也就是 /proc/cmdline) 讓開機過程 (此時 kernel 已載入完成而進入 user mode) 知道要使用圖形介面. 你可以去找一下 "/etc/rc.d/rc.sysinit" 這個檔案裡面就會用到 'rhgb' 了.

以上是我知道的, 如果有不正確的地方還請多指正.

##################################
##################################
rhgb = redhat graphical boot - This is a GUI mode booting screen with most of the information hidden while the user sees a rotating activity icon spining and brief information as to what the computer is doing.





沒有留言:

張貼留言