05
May
09

Convert Your ext3 File System to ext4 (in Ubuntu Jaunty 9.04)

Step one:
Upgrade to Jaunty. You now have a working jaunty install running the ext3 file system.

Step two:
Make a backup of all your (important) data. You can use fwbackups or any other app.

Step three:
Boot from a (jaunty) live-cd and run the following code (in this example the partition to convert is on /dev/sda1) to convert the partition:

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

Step four:
Mount the partition and change the type of the converted partition in fstab:

sudo bash
mount -t ext4 /dev/sda1 /mnt
nano /mnt/etc/fstab

change “ext3″ to “ext4″ like in the example below:

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

change it to:

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

and save the changes.

Step five:
This step might be optional but when I upgraded from Intrepid to Jaunty the upgrade process did not install/update the new grub stage. So if you don’t run this you might get an (fatal) error 13 when booting the machine.

sudo bash
mount /dev/sda1 /mnt
grub-install /dev/sda –root-directory=/mnt –recheck

That’s it, after you reboot you you will be running from an ext4 file system.


0 Responses to “Convert Your ext3 File System to ext4 (in Ubuntu Jaunty 9.04)”


  1. No Comments

Leave a Reply




May 2009
S M T W T F S
« Apr   Jun »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Recent Readers

Recent Comments

Contact Webmaster

  • No spam, please!

Badge Farm

  • Firefox 3
  • CSSEdit 2
  • Textmate
  • Powered by Redoable 1.2
  • PHP
  • MySQL
  • Valid XHTML 1.0
  • Valid CSS
  • Ubuntu
  • Dreamhost
  • Digg it!
  • Powered by Zerohost
  • Computers Blog Directory
  • Facebook
  • Add to Technorati Favorites
  • Website Counter
  • Feeds burnt by Feedburner
  • Feed

Subscribe to H4CKER.cc

More Links

  • H4CKER.cc
  • My site was nominated for Best Geek Blog!