免费注册 查看新帖 |

Chinaunix

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

求助:编译2.4.32内核启动不了,试了n多种解决方法了。期待高手解答 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-03 16:13 |只看该作者 |倒序浏览
现象:
TCP:Hash table configured(established 8192 bind 8192)
NET4:Unix domain socket 1.0/SMP for linux NET4.0
ds:no socket drivers loaded!
kmod: failed to exec /sbin/modprobe –s –k block-Major-8, errno = 2
VFS: Cannot open root device “sda1” or 08:01
please append a correct “root=” boot option
Kernel panic: VFS: unable to mount root fs on 08:01

[root@localhost root]# fdisk -l

Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1        13    104391   83  Linux
/dev/sda2            14      1240   9855877+  83  Linux
/dev/sda3          1241      1305    522112+  82  Linux swap
[root@localhost linux-2.4.20-8]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             9.3G  3.1G  5.7G  36% /
/dev/sda1              99M   14M   81M  15% /boot
none                   62M     0   62M   0% /dev/shm


确认已经配置了
SCSI support ---> SCSI disk support (*)
SCSI support --->SCSI low-level drivers --->  BusLogic SCSI support(*)
SCSI support --->SCSI low-level drivers-〉Serial ATA(SATA)-〉
<*> ATA device support
<*> Intel PIIX/ICH SATA support

Network Device support --->Ethernet (10 or 100Mbit) --->  AMD PCnet32 PCI support

grub配置
default=2
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-
        root (hd0,0)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
        initrd /initrd-2.4.20-8.img
title Red Hat Linux_custom (2.4.20-
        root (hd0,0)
        kernel /bzImage.090217.2.4.20-8 ro root=LABEL=/
        initrd /initrd-2.4.20-8custom.img
title Red Hat Linux (2.4.32)
        root (hd0,0)
        kernel /bzImage.0303.2.4.32 ro root=/dev/sda1
        initrd /initrd0303.2.4.32.img

论坛徽章:
0
2 [报告]
发表于 2009-03-04 10:27 |只看该作者
改了,好像是ramdisk,file system没配好。但又出现下面的错误
kjournald starting. commit interval 5 seconds
EXT3-fs:Mounted filesystem with ordered data mode
pivotroot(/sysroot,/sysroot/initrd) failed 2
umount /initrd/proc failed: 2
Freeing unused kernel memory: 140k freed
Kernel panic: No init found. Try passing init= option to kernel
谁能帮帮忙

论坛徽章:
0
3 [报告]
发表于 2009-03-05 22:52 |只看该作者

回复 #1 birding 的帖子

文件系统类型

论坛徽章:
0
4 [报告]
发表于 2009-03-09 13:35 |只看该作者

回复 #3 kns1024wh 的帖子

file system 应该也都选了
#
# File systems
#
# CONFIG_QUOTA is not set
# CONFIG_QFMT_V2 is not set
# CONFIG_AUTOFS_FS is not set
CONFIG_AUTOFS4_FS=y
# CONFIG_REISERFS_FS is not set
# CONFIG_REISERFS_CHECK is not set
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_ADFS_FS is not set
# CONFIG_ADFS_FS_RW is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BEFS_DEBUG is not set
# CONFIG_BFS_FS is not set
CONFIG_EXT3_FS=y
CONFIG_JBD=y
CONFIG_JBD_DEBUG=y
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_UMSDOS_FS=m
CONFIG_VFAT_FS=m
# CONFIG_EFS_FS is not set
# CONFIG_JFFS_FS is not set
# CONFIG_JFFS2_FS is not set
CONFIG_CRAMFS=y
CONFIG_TMPFS=y
CONFIG_RAMFS=y
CONFIG_ISO9660_FS=y
# CONFIG_JOLIET is not set
# CONFIG_ZISOFS is not set
CONFIG_JFS_FS=m
CONFIG_JFS_DEBUG=y
CONFIG_JFS_STATISTICS=y
CONFIG_MINIX_FS=m
CONFIG_VXFS_FS=m
CONFIG_NTFS_FS=m
# CONFIG_NTFS_RW is not set
CONFIG_HPFS_FS=m
CONFIG_PROC_FS=y
# CONFIG_DEVFS_FS is not set
# CONFIG_DEVFS_MOUNT is not set
# CONFIG_DEVFS_DEBUG is not set
CONFIG_DEVPTS_FS=y
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX4FS_RW is not set
CONFIG_ROMFS_FS=m
CONFIG_EXT2_FS=y
# CONFIG_SYSV_FS is not set
CONFIG_UDF_FS=m
# CONFIG_UDF_RW is not set
CONFIG_UFS_FS=m
# CONFIG_UFS_FS_WRITE is not set
CONFIG_XFS_FS=m
# CONFIG_XFS_QUOTA is not set
# CONFIG_XFS_RT is not set
# CONFIG_XFS_TRACE is not set
# CONFIG_XFS_DEBUG is not set
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP