Pages

How to Convert Your Ext3 partition to Ext4

If you upgraded to Ubuntu Jaunty, you are probably using ext3 and you want to give ext4 a try despite a couple of bugs.This is what i followed to get my ext3 partitions converted to ext4.

There are tons of ways to do this but today i will post live cd method.You need a Jaunty Live CD for this(Other live cds probably will work but this is what i did :) ).

Boot your Ubuntu jaunty box with live cd and give following commands at terminal :

At this example we are converting /dev/sda2 partition to ext4.If you are converting / to ext4, Ubuntu Jaunty already has a patched grub so grub can boot from ext4, do not worry about that.

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

Now we are mounting the partiton and change fstab :

$sudo bash
$mount -t ext4 /dev/sda2 /mnt
$sudo gedit /mnt/etc/fstab

Now find the sda2 line and change ext3 to ext4.Sample :

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


We are done.BUT you may get grub error 13 when booting your box so before the restart give this command :

$sudo grub-install /dev/sda --root-directory=/mnt --recheck
For More Check Related Posts :


Preview on Feedage: pc-medicines Add to My Yahoo! Add to Google! Add to AOL! Add to MSN
Subscribe in NewsGator Online Add to Netvibes Subscribe in Pakeflakes Subscribe in Bloglines Add to Alesti RSS Reader
Add to Feedage.com Groups Add to Windows Live iPing-it Add to Feedage RSS Alerts Add To Fwicki
Add to Spoken to You

0 comments:

Post a Comment