Yesterday, we have discussed some of the new features in Ubuntu 9.04 Jaunty. In that article, I did mention that the new filesystem – ext4 is stable, fast and backward compatible with ext2 and ext3. Today, we will look at how you can upgrade your existing ext3 filesystem to ext4 without reformating your hard disk.
Disclaimer: Anything that deals with the filesystem hack always involve certain risks. While we have tested it out and get it working on our systems, there is no guarantee that it will work for you. We shall not be responsible for any data loss or hard disk crash. Before you try this, please remember to BACKUP your system and important files.
Step 1: Upgrade your existing Ubuntu
First for all, upgrade your existing Ubuntu to Ubuntu 9.04. You can skip this step if you have already upgraded to Ubuntu 9.04.
Press Alt + F2 on your keyboard and type in
update-manager -dThe Update Manager will appear. Click on the Upgrade button.

Depending on your Internet connection, the upgrade could last for several hours.
At the same time, proceed to Ubuntu website and download the Ubuntu 9.04 LiveCD iso.
After you have downloaded the LiveCD, burn it into a CD or use the USB Startup Disk Creator (System -> Administration -> USB Startup Disk Creator) to create a bootable USB drive.
Once the system completes the upgrading, restart your computer and play around with it to make sure that it is working fine in your system.
When you are happy with the result, reboot the computer again, this time boot into your LiveCD.
Step 2: Upgrading to Ext4
Go to System->Partition Editor. This will show all the partition in your hard disk. Record down the filesystem ID of the partition that you want to convert to ext4.

Close the Partition Editor. Open a terminal, type the following:
sudo tune2fs -O extents,uninit_bg,dir_index /dev/XXXX
Replace XXXX by the filesystem ID that you have recorded just now.
Once that is done, type the following to fixed your partition:
sudo fsck -pf /dev/XXXX
Don’t forget to replace XXXX with your filesystem ID.
Mount your filesystem
sudo mount -t ext4 /dev/XXXX /mnt
Open the fstab file:
gksu gedit /mnt/etc/fstab
and change the ext3 entry to ext4. Save and exit.

Back to the terminal, we need to reinstall the grub bootloader.
sudo grub-install /dev/XXX
This time, replace the XXX by the filesystem without the number. For example, sudo grub-install /dev/sda
Close the terminal and restart the computer. Reboot into ubuntu 9.04.
In the terminal, type
df -T
You should see your filesystem mounted as ext4 now

That’s all. Enjoy!
Pingback: Linx am 11. 4. 2009 bis 21. 4. 2009 | tuxtux
Pingback: Ubuntu 9.04 Jaunty Jackalope sale mañana « Gabuntu
Pingback: IRC: #boycottnovell @ FreeNode: April 22nd, 2009 - Part 2 | Boycott Novell
Pingback: IRC: #boycottnovell @ FreeNode: April 22nd, 2009 - Part 2 | All about MICROSOFT
Pingback: Cómo pasar de ext3 a ext4 sin formatear | MuyLinux
Pingback: Nueva Version de Ubuntu 9.04 “Jaunty Jackalope” « Cristian Recabarren Ortiz
Pingback: Cómo pasar de ext3 a ext4 sin formatear « Tecnologia, Actualidad,y mucho mas….
Pingback: Linux » Blog Archive » Cómo pasar de ext3 a ext4 sin formatear
Pingback: Nueva Version de Ubuntu 9.04 “Jaunty Jackalope” « Cristian Recabarren Ortíz
Pingback: wangyingqi’s blog » Ubuntu???????ext3?ext4
Pingback: HowtoMatrix » How To Upgrade From Ext3 To Ext4 Without Formatting The Hard Disk
Pingback: ?? Ext3 ? Ext4 » sshlog
Pingback: Pasar de ext3 a ext4 sin formatear | Snapcodex
Pingback: Linx am 11. 4. 2009 bis 21. 4. 2009 - testomat
Pingback: Ronaldo Richieri » links for 2009-07-12
Pingback: links for 2009-07-18 « Where Is All This Leading To?
Pingback: Ext3 or ext4? That and upgrading to Jaunty | ProDevTips - dev notes and tutorials
Pingback: ???? ?? ?????? ????? ???? ??????? ??? ex4 - ????? ?????? ?????
Pingback: links for 2009-10-30 « Caiwangqin’s delicious bog
Pingback: De Ext3 a Ext4 sense formatejar el sistema de fitxers « Microwordpress de @jrosell
Pingback: Screenshots Tour of Ubuntu Karmic Koala 9.10 Beta – Make Tech Easier