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

This article has not been checked!

LKB | Created: 02/04/2020 | Version: 1 | Language: EN | Rating: 0 | Outdated: False | Marked for deletion: False

Author: Wim Peeters - Keskon GmbH & Co. KG

Latest update: 05/10/2020 | Comment:


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

About the Author

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 in different European countries and different European languages. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform where he is one of the most important contributors and the main developer.


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!