[Level2] Let CentOS 5.3 support ext4

Default CentOS 5.3/5.4 not support ext4.
So you have load kernel module manually.
# modprobe ext4
# modprobe ext4dev

If you want to let 5.3 support ext4, you can install the package:
PS. the kernel must after 2.6.18-128.e15
# yum install e4fsprogs
After that, your system will have commands "fsck.ext4, mkfs.ext4"

Transfer boot partition from ext3 to ext4
case 1: boot on one partition mounted on /boot
# umount /boot
# tune4fs -O extents,uninit_bg,dir_index /dev/sda1
# e4fsck -y /dev/sda1
case 2: boot on /
# tune4fs -O extents,uninit_bg,dir_index /dev/sda1

Modify /etc/fstab
/dev/sda1             /boot                   ext3    defaults        1 2
to
/dev/sda1             /boot                   ext4    defaults        1 2

reboot and check.
# df -lhT

Wish this helps.

regards,
Stanley Huang

Comments

Popular posts from this blog

[Level 2] Shell Interactive With Zenity Episode 5 -- list

[Level 2] iif in Python