LinuxSir.cn,穿越时空的Linuxsir!

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

大牛,最后一步失败了。郁闷!

[复制链接]
发表于 2005-3-31 05:10:35 | 显示全部楼层 |阅读模式
我启动编译好的lfs。启动时出现了如下的错误:

Activating all swap files/partitions ...
Swapon can not stat /dev/hda10: No such file or directory   [failed]
/dev/hda14
Checking file systems
fsck.ext2: No such file or directory while trying to open /dev/hda14
        The superblock could not be read or does not descibe a correct ext2 filesustem. If the device is valid and it really cotains an ext2 filesystem (and not swap or swap or efs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
   e2fsck -b 8193 <device>

我的fstab文件是这样的。
/dev/hda14     /       ext2     ( )      ( )       ( )
/dev/hda10   swap  swap   ( )      ( )       ( )
/dev/hda13   /home ext3    ( )      ( )       ( )

其中,/dev/hda10是我主系统的swap;/dev/hda13是主系统的/home, 是ext3格式。
我的主系统是红帽子9.0。lfs是5.1.1。故按照BOOK,/dev/hda14是ext2格式的。


请问高高手,我该如何解决这个启动的问题啊。
发表于 2005-3-31 07:11:09 | 显示全部楼层
5.1.1的/dev下面没有那末多设备,你自己加上吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-31 12:36:47 | 显示全部楼层
楼上的说得我不大明白哦。是不是我得重新编译内核?
回复 支持 反对

使用道具 举报

发表于 2005-3-31 12:41:04 | 显示全部楼层
你楼上的意思很清楚。

5.1.1的/dev/下面没有 hda10 这个文件。你需要自己在 /dev/下面建立hda10这个文件。

如何建立,可以搜索一下。我没有手工建过设备文件。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-31 18:22:31 | 显示全部楼层
那第二个问题如何解决?就是文件格式的问题。ext3还是ext2的问题
回复 支持 反对

使用道具 举报

发表于 2005-3-31 20:35:00 | 显示全部楼层
你的那括号里面是什么东西啊?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-31 23:30:12 | 显示全部楼层
问题解决
mknod -m 666 /dev/hda10 b 3 10

在/dev目录里添加hda10 和hda14块文件
回复 支持 反对

使用道具 举报

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

本版积分规则

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