Azimout's Linux weblog

ext3 to ext4

leave a comment »

To convert a partition from ext3 to ext4, do the following:

  • enable ext4 features by running tune2fs -O extents,uninit_bg,dir_index /dev/DEV
  • have fsck repair some inconsistencies that are created by the previous command e2fsck -fDC0 /dev/DEV
  • (optional) mount the partition and force the kernel to rewrite all files by a command like this find /home -xdev -type f -print0 | xargs -0 chattr +e

Reminder: grub (v1) doesn’t support ext4, so if you upgrade your root (or /boot) partition, you need to chroot into your system and upgrade to grub2

Reminder2: if you can’t chroot (you get the error “cannot execute /bin/bash: exec format error”), it’s because you’re using a 32-bit livecd and are trying to chroot into a 64-bit system



Written by azimout

02/04/2010 at 21:20

Posted in Reference

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: