LinuxSir.cn,穿越时空的Linuxsir!

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

grub 之后 出现的问题

[复制链接]
发表于 2007-4-5 11:54:36 | 显示全部楼层 |阅读模式
grub> root (hd0,1)
Filesystem type is xfs, partition type 0x83

grub> se
Possible commands are: serial setkey setup

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no

Error 15: File not found

grub>
-------------------
内和编译的时候
已经选择了 xfs 文件系统支持,和 sics 支持
发表于 2007-4-5 12:55:32 | 显示全部楼层
grub 安装的时候,没有拷贝那些 stage 文件。。仔细看grub 安装过程。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-5 13:37:50 | 显示全部楼层
Cross-Compiled Linux From Scratch - Sysroot
Version SVN-0.0.1-20070311-x86

手册中
没有要求安装 grub 包阿
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-5 15:40:57 | 显示全部楼层
我在虚拟机上
用 livecd-2.6.3

按照手册 Cross-Compiled Linux From Scratch - Sysroot
Version SVN-0.0.1-20070311-x86

制作

但是虚拟机一重起系统(去掉 livecd-iso ,或者修改 bios 先硬盘启动)

光标停止,不能继续运行

--------
我发现 clf2 手册中,没有 安庄 grub 包

我就 把别的系统的  stag31, stage2 拷贝过来

我现在不知道 系统有没有开始加载 内核
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-5 16:31:36 | 显示全部楼层
grub> root (hd0,1)
Filesystem type is xfs, partition type 0x83

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/xfs_stage1_5" exists... no
Running "install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/menu.l
st "... succeeded
Done.

grub>


------------------
# more /mnt/clfs/etc/grub/menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda2
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
#echo "111111111111111"
#splashimage=(hd0,0)/grub/splash.xpm.gz
#password --md5 $1$T2STH1rd$KsCNOgjDhUEkBwcgc9vZT0
title Red Hat Enterprise Linux AS (2.4.21-4.EL)

        root (hd0,1)
        kernel /boot/clfskernel-2.6.20.1 ro root=/dev/sda2
#       initrd /initrd-2.4.21-4.EL.img
lfslivecd:root | Thu Apr  5 16:30:34 2007 | /mnt/clfs
#
---------------------------
这个算是成功的么
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-5 16:33:24 | 显示全部楼层
有没有兄弟帮我看看阿
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-5 16:43:03 | 显示全部楼层
晕倒。我刚重起了一次 虚拟机

居然可以看到 界面了
但是还是进不了系统,提示

vfs :unable to mount root fs on unknown-block(254,0)


怀疑是 grub.config  root 写错了,我再看看
回复 支持 反对

使用道具 举报

发表于 2007-4-5 16:53:47 | 显示全部楼层
xfs 编译进去内核没?

不熟悉 LFS 的话,clfs sysroot 最好放一下。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-5 17:15:16 | 显示全部楼层
谢谢
晨想提点
xfs 我特意编译到内核了

以及 论坛中 强调的 scsi 我都选择了

但现在的情况,我也有点动摇,是不是真的编译到内核了

看到 grub > 了

我手动输入 root (hd0,1)
>setup(hd0)

>kernel /boot/clsf....  root=LABEL=/dev/sda2

>boot

进入系统 ...
一堆监测

然后停在 please append a correct "root=" boot option

-----------------
但是我给 root 复制应该是对阿
回复 支持 反对

使用道具 举报

发表于 2007-4-5 17:46:15 | 显示全部楼层
kernel /boot/clsf.... root=LABEL=/dev/sda2
->
kernel /boot/clsf.... root=/dev/sda2

没找到 sda ?如果是的话,那就是没找到你的硬盘。scsi等没选中。 vmware 的话,要选 mpt 的 scsi 。
回复 支持 反对

使用道具 举报

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

本版积分规则

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