- 論壇徽章:
- 0
|
我看了《Linux系統(tǒng)啟動(dòng)的基本過程和步驟》寫的很好,不過我最近安裝grub到新的磁盤的時(shí)候出現(xiàn)了一下問題。
device.map=={hda(hd0),hdb(hd1)}.我把grub想安裝在hdb上。
hdb劃分hdb1(/boot),hdb2(swap),hdb3(/).
我將grub安裝到hdb1,將vmlinuz,initrd,system.map設(shè)置好,是可以啟動(dòng)的。
1.我將initrd里面的init腳本更改了一個(gè)地方,注銷setquiet,然后
find . |cpio -c -o|gzip -9 -n>/boot/initrd.img
再設(shè)置grub.conf。可是出現(xiàn){error 15,file not found}的錯(cuò)誤。
為什么會(huì)出現(xiàn)這種錯(cuò)誤?不過這種錯(cuò)誤,我可以通過grub命令繞過:
root (hd0,0);kernel /vmlinuz ro root=/dev/hdb3 rhgb quiet
initrd /initrd.img;boot
就可以啟動(dòng),不過重啟的話,還是那種錯(cuò)誤。我的grub.conf設(shè)置 應(yīng)該沒錯(cuò),為什么沒找到initrd文件呢?
2.我的device.map明明hdb(hd1),可是為什么命令里是hd0呢,確實(shí)hd0是對(duì)的?
和bios設(shè)置,哪個(gè)先啟動(dòng)有關(guān)系嗎? |
|