免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3260 | 回复: 6
打印 上一主题 下一主题

linux升级后编译通过,重启却进不去系统 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-06-06 11:29 |只看该作者 |倒序浏览
由于急需linux2.6.5以上的版本运行程序,现在用的redhat2.4.20-8,现在手边有没有现成的安装盘可用,就想到升级,从网上搜到相关的资料做,升级到2.6.18编译通过,从重启后却出现下列错误,就进不去系统了           
       mount: error 6 mounting ext3
           pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
           umount /initrd/proc fail: 2
           Freeing unused kernel memory: 248k freed
           Kernel panic – not syncing: No init found. Try passing init = option to kernel
请高手指点

论坛徽章:
0
2 [报告]
发表于 2007-06-06 11:46 |只看该作者
在网上看了一些相关的帖子。谈到配置内核时文件系统的选择,我将ext2,ext3都编译进内核了,怎么还会出现这样的错误

论坛徽章:
0
3 [报告]
发表于 2007-06-06 11:47 |只看该作者

论坛徽章:
0
4 [报告]
发表于 2007-06-06 13:18 |只看该作者
原帖由 xiaoxue0351 于 2007-6-6 11:47 发表于 3楼  

可只将ext2编译进内核. ext3 ext2 均编译进内核, 启动mount fs 时 可能会使用ext3,按道理应用你原来的ext2 fs , ext3要用到一个选项要用到动态加载模块?---记不太清了,可查一下.仅供参考.

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
5 [报告]
发表于 2007-06-06 21:13 |只看该作者
grub.conf的内容帖出来。

另外EXT3文件系统的支持需要编译进内核。要么就可能要用initd.img

论坛徽章:
0
6 [报告]
发表于 2007-06-06 22:00 |只看该作者
我也是报错- -!编译真麻烦


# 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/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/hdb
default=0
timeout=10
Splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.21.3)
        root (hd0,0)
        kernel /vmlinuz-2.6.21.3 ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.21.3.img
title Red Hat Enterprise Linux AS (2.6.9-5.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-5.EL ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.9-5.EL.img

论坛徽章:
0
7 [报告]
发表于 2007-06-07 15:31 |只看该作者
提醒一哈楼主,你的根文件系统在LVM分区上,最好将LVM的支持编译到内核中,如果要作为模块加载 ,需要将LVM模块放入文件 initrd.img中。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP