LinuxSir.cn,穿越时空的Linuxsir!

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

fedora 10 启动问题:执行kernel时提示文件或目录类型(type)不对

[复制链接]
发表于 2008-12-11 13:02:25 | 显示全部楼层 |阅读模式
先安装了fedora 10,安装后无法启动,因此又在另一个分区安装了redflag6.0sp,试图通过其grub启动fedora 10。进入redflag后查看fedora所在分区,所有内容均正常,文件格式为ext3。修改了redflag的grub下的menu.lst,启动后出现fedora选项,执行root (hd0,5)(fedora所在分区)后,显示分区文件格式为ext2fs,而不是ext3fs(redflag所在分区也是如此),执行kernel /vmlinuz_2.6.27.5-117.fc10.i686命令时出现提示说文件或目录类型不对(bad file or dirctory type),出现错误。使用cat指令查看文件示也发现此问题。对了,grub是GNU grub 0.95,不知是否与此有关。
    请问如何解决,谢谢。
 楼主| 发表于 2008-12-12 17:24:30 | 显示全部楼层
自己终于解决了此问题。
我的硬盘分区情况如下:
[root@localhost ~]# fdisk -l

Disk /dev/sda: 160.0 GB, 160040803840 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2550    20482843+   7  HPFS/NTFS
/dev/sda2            2551       19456   135797445    f  W95 Ext'd (LBA)
/dev/sda5            2551        3187     5116671    b  W95 FAT32
/dev/sda6            3188        3200      104391   83  Linux
/dev/sda7            3201        3391     1534176   82  Linux swap / Solaris
/dev/sda8            3392        5558    17406396   83  Linux
/dev/sda9            5559        7776    17816053+  83  Linux
/dev/sda10           7777       10326    20482843+  83  Linux
/dev/sda11          10327       19456    73336693+   7  HPFS/NTFS

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           2       14593   117210240    f  W95 Ext'd (LBA)
/dev/sdb5               2        7650    61440561    7  HPFS/NTFS
/dev/sdb6            7651       14593    55769616    7  HPFS/NTFS

Disk /dev/sdc: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1       38913   312568641   42  SFS
其中sda6为fedora的boot分区(安装时分区选的是ext3),sda8为home分区,sda9为fedora分区,sda10为redflag分区。先安装的fedora,然后redflag,用redflag的grub引导各系统,在刚装完redflag时,sda6分区的文件格式显示为fat6,我用fdisk将该分区格式转换为ext3以后,重新编辑redflag的menu.lst如下:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,9)
#          kernel /boot/vmlinuz-version ro root=/dev/sdb10
#          initrd /boot/initrd-version.img
#boot=/dev/sdb10
default=0
timeout=5
gfxmenu (hd0,9)/boot/message
title RedFlag (2.6.23.1-4)
        root (hd0,9)
        kernel /boot/vmlinuz-2.6.23.1-4 ro root=LABEL=/1 vga=788 splash=silent resume=/dev/sdb7
        initrd /boot/initrd-2.6.23.1-4.img
title WinXP
        rootnoverify (hd0,0)
        chainloader +1
title Fedora 10
        root (hd0,5)
        kernel /vmlinuz-2.6.27.5-117.fc10.i686 ro root=/dev/sda9 rhgb quiet
        initrd /initrd-2.6.27.5-117.fc10.i686.img
重新启动以后就可以进入fedora了,太兴奋了,折腾了好几天了。在此说明一下,(hd0,5)为boot所在分区,/dev/sda9/为fedora所在分区,原先就一直没搞明白这儿。希望能为遇到此问题的和我一样的新手提供参考。
回复 支持 反对

使用道具 举报

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

本版积分规则

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