LinuxSir.cn,穿越时空的Linuxsir!

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

vmware安装lfs后,grub引导出错error 18

[复制链接]
发表于 2005-1-6 12:05:54 | 显示全部楼层 |阅读模式
环境:
vmware 4.52 buid8848
主系统: fedora 1
lfs: lfs5.0 from http://lfs.linuxsir.cn/cgi-bin/wiki/moin.cgi/

分区情况:


  1. fdisk -l

  2. Disk /dev/sda: 42.9 GB, 42949672960 bytes
  3. 255 heads, 63 sectors/track, 5221 cylinders
  4. Units = cylinders of 16065 * 512 = 8225280 bytes

  5.    Device Boot    Start       End    Blocks   Id  System
  6. /dev/sda1   *         1        13    104391   83  Linux
  7. /dev/sda2            14      5173  41447700   83  Linux
  8. /dev/sda3          5174      5221    385560   82  Linux swap

  9. Disk /dev/sdb: 42.9 GB, 42949672960 bytes
  10. 255 heads, 63 sectors/track, 5221 cylinders
  11. Units = cylinders of 16065 * 512 = 8225280 bytes

  12.    Device Boot    Start       End    Blocks   Id  System
  13. /dev/sdb1             1      5221  41937651    5  Extended
  14. /dev/sdb5             1      5221  41937619+  83  Linux

复制代码


主系统grub.conf
  1. # grub.conf generated by anaconda
  2. #
  3. # Note that you do not have to rerun grub after making changes to this file
  4. # NOTICE:  You have a /boot partition.  This means that
  5. #          all kernel and initrd paths are relative to /boot/, eg.
  6. #          root (hd0,0)
  7. #          kernel /vmlinuz-version ro root=/dev/sda2
  8. #          initrd /initrd-version.img
  9. #boot=/dev/sda
  10. default=0
  11. timeout=10
  12. splashimage=(hd0,0)/grub/splash.xpm.gz
  13. title Fedora Core (2.4.22-1.2115.nptl)
  14.         root (hd0,0)
  15.         kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ rhgb
  16.         initrd /initrd-2.4.22-1.2115.nptl.img
  17. title LFS 5.0
  18.         root (hd1,4)
  19.         kernel /boot/lfskernel root=/dev/sdb5 ro
复制代码


lfs安装在/dev/sdb5上,lfs使用主系统的grub,在启动时报错误
Error 18 : Selected cylinder exceeds maximum supported by BIOS

我感觉是因为我的lfs装在第二块硬盘上的原因,但是怎样才能启动呢?
vmware安装比较慢,我装了快两个星期了,真不想再重装一遍。
那位有好的解决办法吗?小弟先谢过了
发表于 2005-1-6 20:45:34 | 显示全部楼层
我没有一点把握,你可以试试
title LFS 5.0
  map (hd0) (hd1)
  map (hd1) (hd0)
  root (hd1,4)
  kernel /boot/lfskernel root=/dev/sdb5 ro
 楼主| 发表于 2005-1-7 08:26:40 | 显示全部楼层
我没有一点把握,你可以试试
title LFS 5.0
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,4)
kernel /boot/lfskernel root=/dev/sdb5 ro


我试了一下,还是提示
Error 18 : Selected cylinder exceeds maximum supported by BIOS

但还是很感谢,看来还需要想想其它的方法
发表于 2005-1-7 09:57:23 | 显示全部楼层
第二个硬盘分区有些怪,不分主分区,只有扩展分区 ……
 楼主| 发表于 2005-1-7 11:40:43 | 显示全部楼层
是的,我当时只有一个VMWare虚拟硬盘,后来想装lfs,加了一块虚拟硬盘,分区时分成了扩展分区
发表于 2005-1-7 12:34:46 | 显示全部楼层
我觉得bb_sun回的那几个命令应该能解决你的问题啊。Grub能启动第二个硬盘上的扩展分区,只要map 以后,就成第一张盘了,再root一下,就成主分区了。你在grub的命令行里把这几个命令试一试,看到哪一步不对?
 楼主| 发表于 2005-1-7 13:42:49 | 显示全部楼层
我在启动时按'c'进入grub命令行,还是不行,我把提示信息抄了一下,请看

  1. grub>map (hd0) (hd1)

  2. grub>map (hd1) (hd0)

  3. grub>root (hd1,4)
  4. Filesystem type is ext2fs, partition type 0x83

  5. grub>kernel /boot/lfskernel root=/dev/sdb5 ro
  6. Error 18: Selected cylinder exceeds maximum supported by BIOS
复制代码
发表于 2005-1-7 15:07:23 | 显示全部楼层
vmware里面的bios的原因……
 楼主| 发表于 2005-1-7 16:21:13 | 显示全部楼层
to saltair:
如果是vmware bios的原因,那是不是我只能重新安装lfs,并且在主系统中划一个分区装
发表于 2005-1-7 17:26:38 | 显示全部楼层
有人在vmware里安装成功过,你搜一下。我觉得设置没问题啊,我也是在第2块硬盘上,不过我是RH,也是用主系统的GRUB,稍微设置一下就OK了

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

本版积分规则

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