Ext2 To Ext3
Ext2 To Ext3
I want to warn
you that you could lose data by doing this so, following good administrative practices,
back up your data! Once you are certain you have that backup of your data, it’s time to
begin.
Kernel pre-requisite
You must be certain you have a kernel that is at least 2.6.28-11-generic or higher. If not,
do NOT continue on with this. To find out what kernel you are running issue the
commanduname -r. If your kernel is lower thatn 2.6.28-11 stop where you are and close
your browser.
Step 1
The first step is to boot from a Ubuntu Live CD. You do this because you can’t convert a
file system that has been mounted. If you are converting a second drive on your
machine (one that doesn’t contain your OS or your ~/ (home) directory, you can always
just unmount that drive and do this without booting the Live CD.
Step 2:
Now it’s time to convert. We’re going to use /dev/sda1 as an example for converting.
You will want to know the exact name of the drive and/or partition you are wanting to
covert. If you are converting from ext2 to ext4 issue the following commands:
sudo bash tune2fs -O extents,uninit_bg,dir_index,has_journal /dev/sda1
If you are wanting to convert ext3 to ext4 issue the following commands: