LinuxSir.cn,穿越时空的Linuxsir!

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

设置grub出现问题 求教

[复制链接]
发表于 2004-11-15 17:03:37 | 显示全部楼层 |阅读模式
我的lfs根分区是hdc4

在grub下:

root (hd0,3)

他说
error 21:Selected disk does not exist

我晕本来胜利在望。。。。。。。。。。

前面没有异常啊
发表于 2004-11-15 17:07:00 | 显示全部楼层
我也碰到过这个问题,你说清楚点,我帮你看看。
 楼主| 发表于 2004-11-15 17:21:06 | 显示全部楼层
就是编译完内核后
作启动脚本时
先不是配置grub?
执行grub命令进入
“grub>”界面
安手册上的我键入root (hd0,3) 因为我的/是hdc4上
然后就。。。。。
发表于 2004-11-15 17:27:21 | 显示全部楼层
你把你的/etc/grub.conf贴出来看看。根据提示,你选定的磁盘不存在。你可以试着把你的LFS引导写成你旧系统的引导。比如我的是RH9。0,它的引导记录在hd0,1上,我把LFS的引导也写成了hd0,1.能引导。
原因是:在手册上安装内核时你看看,有一个CP和行为。
发表于 2004-11-15 17:35:06 | 显示全部楼层
是hdc4还是hda4?
如果是hdc4,则应该是(hd2,3)。(hd0,3)是hda4吧。
 楼主| 发表于 2004-11-15 17:44:14 | 显示全部楼层
我没有grub.conf 这个文件

如果是(hd2,3)为什么我的host系统的boot/grub/menu.lst文件是
root (hd0,8)  //hdc9
.......
 楼主| 发表于 2004-11-15 17:44:56 | 显示全部楼层
(hd2,3)也是一样的结果
发表于 2004-11-15 18:07:59 | 显示全部楼层
理论上,harold兄的说法是完全正确的。你详细说一下你有几张硬盘?GRUB引导上默认的引导系统是什么,把你的menu.lst贴出来我看看。
 楼主| 发表于 2004-11-15 18:28:15 | 显示全部楼层
我只有一张硬盘但是我可以肯定是在hdc4而不是hda4,因为我mount $LFS都是用的hdc4
为什么这样我也有点糊涂

我的host系统引导的默认系统是hiweed 0.3
 楼主| 发表于 2004-11-15 18:41:28 | 显示全部楼层

我的menu.lst(主系统)

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.           
default                0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout                5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title                Windows 95/98/NT/2000
# root                (hd0,0)
# makeactive
# chainloader        +1
#
# title                Linux
# root                (hd0,1)
# kernel        /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default optons below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specifiv kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hdc9 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,8)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## ## End Default Options ##

title                Debian GNU/Linux, kernel 2.4.26-1-386
root                (hd0,8)
kernel                /boot/vmlinuz-2.4.26-1-386 root=/dev/hdc9 ro
initrd                /boot/initrd.img-2.4.26-1-386
savedefault
boot

title                Debian GNU/Linux, kernel 2.4.26-1-386 (recovery mode)
root                (hd0,8)
kernel                /boot/vmlinuz-2.4.26-1-386 root=/dev/hdc9 ro single
initrd                /boot/initrd.img-2.4.26-1-386
savedefault
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title                Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hdc1
title                Windows NT/2000/XP
root                (hd0,0)
savedefault
makeactive
chainloader        +1
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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