原帖由 chenyx 于 2009-11-27 16:19 发表
今天看到一贴,说RHEL是否支持ext4,看到网友说内核支持,手痒,在虚拟机上测试,将/boot,/(lvm格式)都转化成ext4,修改/etc/fstab,将ext3改成ext4(/boot和/)
结果,毫无疑问的,看到"kernel panic"的提示:" />
...
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 i686 i386 GNU/Linux
[root@localhost ~]# md5sum $(which grub)
e10d6a4e7283044960c8f224670f3713 /sbin/grub
[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.4 (Final)
[root@localhost ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
none on /proc/fs/vmblock/mountPoint type vmblock (rw)
/dev/VolGroup00/LogVol00 / ext4 defaults 1 1
/dev/sda1 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
# Beginning of the block added by the VMware software
#.host:/ /mnt/hgfs vmhgfs defaults,ttl=5 0 0
# End of the block added by the VMware software
[root@localhost ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext4 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
none on /proc/fs/vmblock/mountPoint type vmblock (rw)
modprobe ext4
modprobe ext4dev
umount /dev/sda1
tune4fs -O extents,uninit_bg,dir_index /dev/sda1
e4fsck -y /dev/sda1
vi /etc/fstab
原帖由 atreenoleaf 于 2009-11-30 11:59 发表
我觉得不重新mkinitrd肯定不能启动,不信你先不要安装ext4,先把原来的initrd文件解开看看里面肯定会有ext3的驱动模块只有在initrd里面写入相应文件系统的驱动模块才能启动起来
[root@centos ~]# df -lhT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-lvroot
ext4 7.4G 989M 6.1G 14% /
/dev/sda1 ext3 99M 12M 82M 13% /boot
tmpfs tmpfs 30M 0 30M 0% /dev/shm
原帖由 chenyx 于 2009-12-1 08:47 发表
执行rpm -ivh kernel-2.6.18-164.el5.i686.rpm --force
是因为/boot格式化了,内核没有了.
另外mkinitrd怎么用,请教
原帖由 chenyx 于 2009-11-30 15:02 发表
后来系统又挂了,启动到Grbu>提示符下了.
手工输入指令可以启动,用grub-install /dev/sda报错,The file /boot/grub/stage1 not read correctly.
重新格式化/dev/sda1为ext3,grub-install /dev/sda没有问题了.
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |