|
操作系统:redhat linux 9.0
内核版本:2.4.20-8
/etc/fstab内容如下:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda8 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/etc/grub.conf如下:
. default=0
. timeout=10
. splashimage=(hd0,8)/grub/splash.xpm.gz
. title Red Hat Linux (2.4.20-8)
. root (hd0,8)
. kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
. initrd /initrd-2.4.20-8.img
. title Red Hat Linux (2.4.20first)
. root (hd0,8)
. kernel /vmlinuz-2.4.20first ro root=/dev/hda9
. initrd /initrd-2.4.20first.img
. title DOS
. rootnoverify (hd0,0)
. chainloader +1
/usr/src/linux-2.4/Makefiel文件前四行如下:
. VERSION =2
. PATCHLEVEL =4
. SUBLEVEL =20
. EXTRAVERSION =first
编译时未出现错误提示,编译步骤如下:
. make mrproper
. make menuconfig
. make dep
. make bzImage
. make modules
. make modules_install
. cp /usr/src/linux-2.4/arch/i386/boot/bzImage /boot/vmlinuz-2.4.20first
. mkinitrd initrd-2.4.20first 2.4.20first
重新启动出现故障提示如下:
. ..................
. EXT3-fs : recovery complete
. EXT3-fs : mounted file system with ordered data mode
. pivotroot : pivot_root (/sysroot,/sysroot/initrd) failed : 2
. umount /initrd/proc failed : 2
. freeing unused kernel memory : 112K freed
. kernel panic : No init found . Try passing init = option to kernel .
然后机子停止不动,键盘最右上方的两个指示灯同时不停的闪烁,按Ctrl+Al+Del不能重启,只有按reset键重启。
请大家帮助!!!
谢谢!!! |
|