LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: ydsg

在虚拟机VW安装完成,重新启动后出现

[复制链接]
发表于 2009-3-6 13:44:48 | 显示全部楼层
Post by ydsg;1944051
选择命令行可以到:
grub>
提示...
输入root (hd0,0)
然后 kernel /,按Tab键可以补全。看看你目录下都有什么文件
回复 支持 反对

使用道具 举报

发表于 2009-3-6 15:19:32 | 显示全部楼层
Post by asmart;1956999
这个不是fstab的问题, 是grub.conf错误, 检查grub.conf里面 内核位置是否正确
提示是找不到 /boot/kernel-genkernel-x86-2.6.27-gentoo-r8 这个文件

如果你的 root (hd0,0) 就是 /boot的话 ,这里应该是  
/kernel-genkernel-x86-2.6.27-gentoo-r8  ,

首先 grub不通过fstab文件, 他是直接读取分区表 ,其次, root指定错误不影响最初的kernel加载 ,只是到加载rootfs的时候会报错 , 这个明显是找不到内核文件了

如果还不行, 手动编辑grub

grub系统选择界面下按C 进入命令行模式,
输入 root (hd0,0) 回车
输入 kernel /  然后按2下tab键 ,查看都有什么文件,选中合适的内核文件 后面加上root= 参数, 这个root是你的fstab里面挂载到/ 的设备名称   然后回车
输入 boot  回车  引导系统

grub在启动中是不通过fstab文件,但在grub的安装过程中是需要确定你的Boot分区的位置的(root (hd?,?)。如果你的boot分区是单独的,但你在安装内核的时候没有挂载Boot分区,这样你的内核文件就不是安装在你所希望的boot分区里,而是在根分区,这样的情况时有发生,所导致的问题就是开机提示内核文件没有找到,楼主还是先从简单的地方检查一下是不是这个原因。
回复 支持 反对

使用道具 举报

发表于 2009-3-6 15:24:03 | 显示全部楼层
Post by ydsg;1944361
重头装再来一次,安装到 # emerge grub 出现如下 信息提示:
请问是哪一步没有处理好?
* Messages for package sys-boot/grub-0.97-r9:

*
* To avoid automounting and autoinstalling with /boot,
* just export the DONT_MOUNT_BOOT variable.
*
*
* Cannot automatically mount your /boot partition.
* Your boot partition has to be mounted rw before the installation
* can continue. grub needs to install important files there.
*
*
* ERROR: sys-boot/grub-0.97-r9 failed.
* Call stack:
*               ebuild.sh, line   49:  Called pkg_preinst
*             environment, line 2719:  Called mount-boot_pkg_preinst
*             environment, line 2564:  Called mount-boot_mount_boot_partition
*             environment, line 2553:  Called die
* The specific snippet of code:
*                   die "lease mount your /boot partition manually!";
*  The die message:
*   Please mount your /boot partition manually!
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-boot/grub-0.97-r9/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-boot/grub-0.97-r9/temp/environment'.

你先mount你的/boot试试....

你是如何分区的???
回复 支持 反对

使用道具 举报

发表于 2009-3-6 15:25:58 | 显示全部楼层
Post by ydsg;1944046
Booting 'Gentoo Linux 2.6.27-r8'
root(hd0,0)
Filesystem type is ext2fs,partition type 0x83
kernel /boot/kernel-genkernel-x86-2.6.27-gentoo-r8 root=/dev/ram0 real_root=/dev/sda3
Error 15:file not found
Press any key to continue...


root=/dev/sda3 呢??

启动时候出现grub的界面,按e编辑grub的启动项.....
回复 支持 反对

使用道具 举报

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

本版积分规则

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