QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1189|回复: 10

为什么grub中setup不能用找到文件?

[复制链接]
发表于 2005-3-1 11:36:30 | 显示全部楼层 |阅读模式
执行:setup (hd0,0)
提示如下:
checking if "/boot/grub/stage1 exits ....no
checking if "/grub/stage1 exits ....no

Error 15 file is not found


以上怎么回事,我看了有这个 文件呀。
我是在VM下安装gentoo 2.6.10.
有没有其他的办法来启动gentoo?
谢谢大家!
发表于 2005-3-1 11:45:49 | 显示全部楼层
?? mount 了/boot没有?
回复

使用道具 举报

 楼主| 发表于 2005-3-1 11:59:05 | 显示全部楼层
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc

已经mount这几个了行吗?如果不行的话,该怎么做?谢谢
回复

使用道具 举报

发表于 2005-3-1 12:14:08 | 显示全部楼层
你mkdir /mnt/gentoo/boot了?

你肯定跟足文件的做?
回复

使用道具 举报

 楼主| 发表于 2005-3-1 12:17:44 | 显示全部楼层
mkdir /mnt/gentoo/boot
这个之前做过了。
现在已经chroot了
还是如下:
执行:setup (hd0,0)
提示如下:
checking if "/boot/grub/stage1 exits ....no
checking if "/grub/stage1 exits ....no

Error 15 file is not found


你认为该怎么做才行呢?谢谢!
回复

使用道具 举报

 楼主| 发表于 2005-3-1 12:35:43 | 显示全部楼层
请教各位,拜托了,谢谢
回复

使用道具 举报

发表于 2005-3-1 12:46:16 | 显示全部楼层
其实你是不是安装在第一HD的? 我指的是你的GENTOO. 如果是第二个硬盘就是, (hd1,0) 了
回复

使用道具 举报

发表于 2005-3-1 12:53:48 | 显示全部楼层
你是不是mount 错了???? mount /dev/sda1 /mnt/gentoo/boot!!!!! 要mount 了主/才可以mount /mnt/gentoo/boot
你format 好了???
ls /mnt/gentoo/boot
最好从新format sda1
umount /mnt/gentoo/boot
mke2fs /dev/sda1
mount /dev/sda1 /mnt/gentoo/boot
然后才emerge

不如全部全新安装一次? 你也才开始安装.呵呵呵
回复

使用道具 举报

 楼主| 发表于 2005-3-1 13:43:52 | 显示全部楼层
我第一步是这么做的:
#mke2fs /dev/sda1
#mke2fs -j /dev/sda3
#mkswap /dev/sda2
#swapon /dev/sda2

# mount /dev/sda3 /mnt/gentoo
# mkdir /mnt/gentoo/boot
# mount /dev/sda1 /mnt/gentoo/boot

有没错,如果有请指教,谢谢!
回复

使用道具 举报

 楼主| 发表于 2005-3-1 13:58:21 | 显示全部楼层
我已经chroot了,要不要 umount /mnt/gentoo/boot
然后在 mount /dev/sda1 /boot ?
再grub
root (hd0,0)
setup (hd0,0)
quit
回复

使用道具 举报

发表于 2005-3-1 18:44:07 | 显示全部楼层
你有没有编译和安装内核,你的 /boot 里面有没有内核文件和grub目录?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-10-5 02:32 , Processed in 0.087841 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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