LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 753|回复: 1

自定义的系统无法引导(grub相关)

[复制链接]
发表于 2006-11-8 19:27:45 | 显示全部楼层 |阅读模式
在学习裁剪系统,如下配置,在/dev/hda8中做了自己的小系统,可启动时,
内核提示 switch new root
kernel panic
提示 exec /sbin/init : no such file or directory.
可/dev/hda8中确实有这个文件啊。

内核用FC5带的内核。请大家帮我看看,先谢谢了。

/etc/grub.conf
default=0
timeout=15
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
hiddenmenu
#title Fedora Core (2.6.15-1.2054_FC5)
#       root (hd0,5)
#       kernel /boot/vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ rhgb quiet
#       initrd /boot/initrd-2.6.15-1.2054_FC5.img

title myLinux (2.6.15-1.2054_FC5)
        root (hd0,7)
        kernel /boot/vmlinuz-2.6.15-1.2054_FC5 root=/dev/hda8 ro
        initrd /boot/initrd-2.6.15-1.2054_FC5.img

fdisk -l
bash-3.1# fdisk -l

Disk /dev/hda: 61.4 GB, 61475807232 bytes
255 heads, 63 sectors/track, 7474 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1275    10241406    c  W95 FAT32 (LBA)
/dev/hda2            1276        7473    49785435    f  W95 Ext'd (LBA)
/dev/hda5            1276        3825    20482843+   c  W95 FAT32 (LBA)
/dev/hda6            3826        5392    12586896   83  Linux
/dev/hda7            5393        5523     1052226   82  Linux swap / Solaris
/dev/hda8            5524        5648     1004031   83  Linux
/dev/hda9            5649        5680      257008+  83  Linux
发表于 2006-11-8 19:38:29 | 显示全部楼层
Post by myvm
在学习裁剪系统,如下配置,在/dev/hda8中做了自己的小系统,可启动时,
内核提示 switch new root
kernel panic
提示 exec /sbin/init : no such file or directory.
可/dev/hda8中确实有这个文件啊。

内核用FC5带的内核。请大家帮我看看,先谢谢了。

/etc/grub.conf
default=0
timeout=15
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
hiddenmenu
#title Fedora Core (2.6.15-1.2054_FC5)
#       root (hd0,5)
#       kernel /boot/vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ rhgb quiet
#       initrd /boot/initrd-2.6.15-1.2054_FC5.img

title myLinux (2.6.15-1.2054_FC5)
        root (hd0,7)
        kernel /boot/vmlinuz-2.6.15-1.2054_FC5 root=/dev/hda8 ro
[color="Red"]        initrd /boot/initrd-2.6.15-1.2054_FC5.img

fdisk -l
bash-3.1# fdisk -l

Disk /dev/hda: 61.4 GB, 61475807232 bytes
255 heads, 63 sectors/track, 7474 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1275    10241406    c  W95 FAT32 (LBA)
/dev/hda2            1276        7473    49785435    f  W95 Ext'd (LBA)
/dev/hda5            1276        3825    20482843+   c  W95 FAT32 (LBA)
/dev/hda6            3826        5392    12586896   83  Linux
/dev/hda7            5393        5523     1052226   82  Linux swap / Solaris
/dev/hda8            5524        5648     1004031   83  Linux
/dev/hda9            5649        5680      257008+  83  Linux

这个 initrd 有什麽内容?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表