|
发表于 2004-3-10 21:57:01
|
显示全部楼层
我的3.0的还是不行
今天编译了一天内核,都出现的是同一个问题:
Mouting root filesystem
kjournald starting.Commit interval 5 seconds
EXT3-fs:mounted filesystem with ordered data mode.
pivotroot:pivot-root(/sysroot,/sysroot/initrd) failed:2
umount /initrd/proc failed :2
Freeing unused kernel memory :216k freed
Kernel panic :No init found .Try passing init= option to kernel.
我的ext3,ext2均已编进内核,
过程是cd linux-2.6.3
make mrproper
make menuconfig
make bzImage && make modules && make modules_install && make install
grub.conf配置也改
下面列出一些信息供参考
[root@www root]# vi /etc/grub.conf
# 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,9)
# kernel /vmlinuz-version ro root=/dev/hda18
# initrd /initrd-version.img
#boot=/dev/hda
default=2
timeout=10
splashimage=(hd0,9)/grub/splash.xpm.gz
title Red Hat Linux (2.6.3)
root (hd0,9)
kernel /vmlinuz-2.6.3 ro root=/dev/hda10
initrd /initrd-2.6.3.img
title Red Hat Linux
root (hd0,9)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
title Debian
rootnoverify (hd0,8)
chainloader +1
[root@www root]# vi /etc/grub.conf
[root@www root]# cd /boot
[root@www boot]# ls
boot.b initrd-2.4.20-8.img message os2_d.b System.map-2.6.3.old vmlinuz-2.6.3
chain.b initrd-2.6.3.img message.ja System.map vmlinux-2.4.20-8 vmlinuz-2.6.3.old
config-2.4.20-8 kernel.h module-info System.map-2.4.20-8 vmlinuz
grub lost+found module-info-2.4.20-8 System.map-2.6.3 vmlinuz-2.4.20-8
[root@www boot]#
//有一个可执行文件vmlinuz-2.4.20-8 ,确没有vmlinuz-2.6.3的可执行文件
[root@www boot]# df -lh
文件系统 容量 已用 可用 已用% 挂载点
/dev/hda10 981M 116M 815M 13% /
/dev/hda10 190M 14M 167M 8% /boot
/dev/hda16 1.5G 35M 1.4G 3% /home
/dev/hda13 2.4G 33M 2.3G 2% /opt
/dev/hda7 2.1G 129M 2.0G 7% /mnt/linux
/dev/hda8 7.7G 4.0K 7.7G 1% /mnt/amuse
none 78M 0 78M 0% /dev/shm
/dev/hda15 981M 18M 914M 2% /tmp
/dev/hda14 2.4G 2.3G 61M 98% /usr
/dev/hda12 479M 8.9M 445M 2% /usr/local
/dev/hda11 2.9G 102M 2.7G 4% /var
[root@www boot]# fdisk -l
Warning: deleting partitions after 16
Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 382 3068383+ b Win95 FAT32
/dev/hda2 383 4998 37078020 f Win95 Ext'd (LBA)
/dev/hda5 383 1147 6144831 b Win95 FAT32
/dev/hda6 1148 1657 4096543+ b Win95 FAT32
/dev/hda7 1658 1925 2152678+ b Win95 FAT32
/dev/hda8 * 1926 2932 8088696 b Win95 FAT32
/dev/hda9 2933 3416 3887698+ b Win95 FAT32
/dev/hda10 3417 3441 200781 83 Linux
/dev/hda11 3442 3820 3044286 83 Linux
/dev/hda12 3821 3883 506016 83 Linux
/dev/hda13 3884 4197 2522173+ 83 Linux
/dev/hda14 4198 4515 2554303+ 83 Linux
/dev/hda15 4516 4642 1020096 83 Linux
/dev/hda16 4643 4833 1534176 83 Linux
[root@www boot]#
哪位兄弟帮帮忙呀?
还有个问题
我用2。4的内核做的服务器配置,编译2,6后还可用吗,谢先 |
|