免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1901 | 回复: 2
打印 上一主题 下一主题

linux无盘求助 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-20 16:33 |只看该作者 |倒序浏览
小菜我在配一个linux无盘工作站,开始按照网络上到说明使用mknbi-linux命令处理内核,结果一开始加载内核就花屏了,后来在网上查到要用 initrd.img来安装,使用任意内核(自己编译或系统自带)+系统盘的initrd.img可以启动,但是启动后就进入了安装界面;如果换一个 initrd.img文件,load 完内核之后就会报找不到initrd.img文件了(我再三确认过,initrd.img文件名没有写错)。
如果干脆不用initrd.img或者用系统安装盘里面某些initrd.img则无盘加载一半过后报错:Kernel panic - not syncing:No init found Try passing init = option to kernel
我猜可能算initrd.img的设置问题,可是小菜我不知道怎么配置,请各位大侠帮帮忙,万分感激!!!!
pxe配置文件入下
default linux
label linux
kernel vmlinuz
#append initrd=initrd.img devfs=nomount
append initrd=initrd.img ip=dhcp root=/dev/nfsroot nfsroot=192.168.0.123:/remote/blade01 vga=normal
我的export tftp dhcp配置文件入下:
/remote/blade01 *(rw,async,no_root_squash)
/remote/blade02 *(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)


allow booting;
allow bootp;
host blade01 {
hardware ethernet 00:85:20:05:09:76;
fixed-address 192.168.0.199;
# server-name "192.168.0.123";
# next-server 192.168.0.123;
filename "/pxelinux.0";
# filename "/boot.eb";
}

service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}

论坛徽章:
0
2 [报告]
发表于 2007-12-20 20:01 |只看该作者
怎么没高手来啊,无自己来顶!
   我用DRBL的initrd.img做参考又稍微往前面推进了一点点,可是在在这对之前挂载的虚拟文件系统与dev转移到主系统:mount --move /dev /root/dev 的时候报错了,dev怎么也挂不上去,最后报错:switch root:can't open '/dev/console': No such file or directory
   请哪位高人帮帮忙啊.

论坛徽章:
0
3 [报告]
发表于 2007-12-20 20:07 |只看该作者
问题看来很多,至少/sbin /bin /lib 是不能分开挂载的,要都在/上。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP