LKBEN11136: How to convert Ext2/Ext3 file system to Ext4 (in 9.04 Jaunty Jackalope).


You want to convert your filesystem to Ext4.


You want to convert your filesystem to Ext4.


To convert your filesystem to Ext4 execute the following steps:

- Make sure you have Ubuntu 9.04 installed so that you have an Ext3 file-system.
- Back-up all of your valued data.
- To convert the partition, reboot from the real CD, and run this code:

sudo bash
tune2fs -O extents,uninit_bg,dir_index /dev/sda1
e2fsck -pf /dev/sda1

Note: In this example /dev/sda1 is the partition you want to convert.

- Next you must change Ext3 to Ext4 quite simply like below,

# /dev/sda1
relatime,errors=remount-ro 0          1

Change the above code to:

# /dev/sda1
relatime,errors=remount-ro 0          1

- You now MUST save the changes.

To convert ext2 to ext4 use this code instead:

sudo bashtune2fs -O extents,uninit_bg,dir_index,has_journal /dev/sda1
e2fsck -pf /dev/sda1

That's it, all you need to do is restart your computer. However, it is possible that you get an error 13 when restarting. This might be because Ubuntu did not like one of the updates. To fix this problem try the following:

sudo bashmount /dev/sda1 /mnt
grub-install /dev/sda --root-directory=/mnt --recheck


The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!

About the Author

Author: Wim Peeters - Keskon GmbH & Co. KG

Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.

Latest update: 05/10/2020 | Comment: