制作u盘linux根文件系统挂不上!(转)[@more@]Sample Text
Sample Text
我制作过程大概是这样的:先编译内核2.6.13,在本机系统能加载成功,在 u盘建立linux分区,并格式化成ext2文件系统,建立/boot目录,把新编好的内核及.img,.map文件拷入/boot目录,在u盘上安装好grub,重启,主板设成: usb-hdd,启动u盘上的内核,但出现了以下问题:
Mounting root filesystem
mount:error 6 mounting ext3
Switching to new root
ERROR opening /dev/console!!!!: 2
error dup'2ing fd of 0 to 0
error dup'2ing fd of 0 to 1
error dup'2ing fd of 0 to 2
umounting old /proc
Switchroot :mount failed:22
kernel panic - not syning: Attempted to kill init
我猜会不会是initrd问题,内核初始化好以后找不到u盘的根文件系统。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10617542/viewspace-949866/
,如需转载,请注明出处,否则将追究法律责任。