- 論壇徽章:
- 0
|
這個問題也困擾我半個月了!
小弟也正在做LINUX無盤,也是到了這里系統(tǒng)就掛了,最后幾行顯示:
waining:unable to open an initial console.
kernel panic:no init found.try passing init=option to kernel.
大概意思小弟也清楚一點就是找不到INIT程序.
mounted nfs root done!
前面幾行里面有一個可疑現(xiàn)像,就是rootpath= ,后面是空的.
是不是沒找mount 上根分區(qū)!
我的/etc/exports文件:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
/remote/client * (rw,async,no_root_squash)
/remote/root * (rw,async,no_root_squash)
/remote/home * (rw,async,no_root_squash)
/usr * (ro,async,no_root_squash)
/sbin * (ro,async,no_root_squash)
/bin * (ro,async,no_root_squash)
/lib * (ro,async,no_root_squash)
/home * (ro,async,no_root_squash)
還有一個小問題就是*號前面是否有空格,如果沒有空格用showmunt -e 查看時是*號,有空格則顯示(everyone)
/remote/client/etc/fstab文件如下:
# /etc/fstab: static file system information.
#
#
10.10.11.120:/remote/client / nfs defaults,intr 0 0
10.10.11.120:/remote/root /root nfs defaults,intr 0 0
10.10.11.120:/remote/home /home nfs defaults,intr 0 0
10.10.11.120:/bin /bin nfs defaults,intr 0 0
10.10.11.120:/usr /usr nfs defaults,intr 0 0
10.10.11.120:/sbin /sbin nfs defaults,intr 0 0
10.10.11.120:/lib /lib nfs defaults,intr 0 0
none /proc proc defaults,intr 0 0
編譯內(nèi)核
用的內(nèi)核,支持Kernel Level Auto Configuration的DHCP協(xié)議,支持NFS,支持NFS ROOT,編譯好的內(nèi)核為vmlinuz,將它拷貝到/tftpboot/目錄下,可以啟動到一半,如果經(jīng)過mknbi-linux處理后,一啟動就花屏.
請 大X 們不吝賜教!小弟感激涕零! |
|