LinuxSir.cn,穿越时空的Linuxsir!

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

大侠求救:grub中找不到启动分区(LFS分区)

[复制链接]
发表于 2003-7-31 12:10:28 | 显示全部楼层 |阅读模式
我在redhat8.0中编译了一套lfs(Linux from scratch),启动时采用grub,配置如下:

grub.conf:
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
root (hd0,5)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/1
initrd /boot/initrd-2.4.18-14.img
title Linux from Scratch (2.4.17)
root (hd0,7)
kernel /boot/lfskernel root=/dev/sda8
title DOS
rootnoverify (hd0,1)
chainloader +1

硬盘分区如下:
[root@localhost grub]# fdisk -l /dev/sda

Disk /dev/sda: 254 heads, 63 sectors, 8885 cylinders
Units = cylinders of 16002 * 512 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 7 55975+ fe LANstep
/dev/sda2 8 455 3584448 7 HPFS/NTFS
/dev/sda3 * 456 1503 8385048 83 Linux
/dev/sda4 1504 8885 59063382 f Win95 Ext'd (LBA)
/dev/sda5 1504 1536 264001+ 82 Linux swap
/dev/sda6 * 1537 2584 8385016+ 83 Linux
/dev/sda7 2585 3864 10241248+ 7 HPFS/NTFS
/dev/sda8 3865 4127 2104231+ 83 Linux
/dev/sda9 4128 4387 2080228+ 83 Linux

其中sda6为redhat8所在分区,sda2为Windows所在的分区,sda3为另一个Linux分区,但现在没有用,LFS安装在sda8分区。

重新启动后,进入redhat8正常,但进入lfs时,总是提示找不到sda8分区,root所带的参数有问题等等。

请大侠指教,不胜感谢!


_________________
==============================================================
人生最悲哀的莫过于生命的车轮碾过之后,留在脑海中的是一片空白!
==============================================================
 楼主| 发表于 2003-7-31 12:14:18 | 显示全部楼层
lilo为什么不能突破1024的柱面限制?
 楼主| 发表于 2003-7-31 13:42:56 | 显示全部楼层
这个论坛有没有人啊?
发表于 2003-7-31 16:41:58 | 显示全部楼层
把你的出错信息贴上来吧,
另外只要不是非常老版本lilo, 没有1024限制.
另外还有你采用的设备文件系统.
 楼主| 发表于 2003-8-2 22:40:31 | 显示全部楼层
Hi,Wangli

[root@localhost root]# lilo -V
LILO version 21.4-4

error message:
LILO version 21.4-4, Copyright (C) 1992-1998 Werner Almesberger
'lba32' extensions Copyright (C) 1999,2000 John Coffman

Reading boot sector from /dev/sda
Merging with /boot/boot.b
Warning: device 0x0806 exceeds 1024 cylinder limit
Fatal: geo_comp_addr: Cylinder number is too big (2111 > 1023)
发表于 2003-8-4 09:08:12 | 显示全部楼层
1. 第一你的lilo版本较老 , 需要设定LBA支持,
     才能克服1024限制.
2. 你的硬件是否支持LBA (或硬盘是否设定为LBA模式)
发表于 2003-8-4 10:36:18 | 显示全部楼层

grub 很好用的

你的/boot/lfskernel是在哪个分区?
如果是在LFS下,写成 (hd0,7)/boot/lfskernel试试
 楼主| 发表于 2003-8-4 17:15:27 | 显示全部楼层
grub已经可以了,开始是我没有做initrd或者没有将SCSI硬盘驱动编译到内核,后来发现我的硬盘正好是kernel可以识别的那种:IBM PCI ServeRAID,所以重新编译内核就好了,但我有一点疑问,如果是Kernel不能识别的,该如何做?

还有新的突破1024限制的lilo应该是什么版本?谢谢大家的热心帮助
发表于 2003-8-4 17:41:21 | 显示全部楼层
比较新的版本都可以
lilo.conf里加上lba参数就行了
 楼主| 发表于 2003-8-5 17:46:34 | 显示全部楼层
我觉得grub还是挺不错的,呵呵!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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