ext4

ext3

ext4

ext4

ext3

Step one:

ext3

Step two:

Step three:

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

Step four:

sudo bashmount -t ext4 /dev/sda1 /mntnano /mnt/etc/fstab

ext3

ext4

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

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

Step five:

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

sudo bashmkdir /mnt/bootmount /dev/sda1 /mnt/bootgrub-install /dev/sda --root-directory=/mnt --recheck

ext4

ext3

ext4

ext3

ext4

ext3

ext4

ext3

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:Mount the partition and change the type of the converted partition in fstab:change "" to "" like in the example below:change it to:and save the changes.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 either of the following code examples you might get an (fatal) error 13 when booting the machine.Use this code to refresh grub when you dohave a separate /boot partition (in this example the root partition is sda1)Use this code to refresh grub when youhave a separate /boot partition (in this example the /boot partition is sda1)That's it, after you reboot you you will be running from anfile system.As a side note, all the files that where present before the conversion will not benefit from the conversion as they were written to disk usingtechnology. Only newly created or overwritten files will be using the truetechnology (so now, using update-manager will be extra beneficial). Asandare compatible with each other having files written to disk inmode on yourfile system do not impose any risks (and most if not allsectors could eventually disappear even without defragging).There is currently a online-defragging tool in development (e4defrag) which should be available with the next kernel release.Credits: whoop user @ ubuntuforums.org