Jaunty experiences?

Joel Goguen jgoguen at jgoguen.ca
Mon Apr 27 22:18:47 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike.lifeguard wrote:
> I'm actually in the middle of an upgrade right now. I was thinking of
> using ext4 - how does one convert the filesystem? I guess there is an
> option to do that in Gparted - is that what I should be looking for?
If you really want to convert to ext4, you should reinstall.  You can
convert, but you'll be using a mix of ext3 for old files and ext4 for
new files.  Be sure to have the partitions unmounted (so from a live CD)
when you try this.  YMMV, do full backups before trying this, I am not
responsible for data loss that may occur as part of this process or in
the future, do at your own risk, proceed only understanding the risks,
and all that jazz.

This command will do the conversion for you:

sudo tune2fs -O extents,uninit_bg,dir_index /dev/dev-name

Replace dev-name with the name of your drive (sda1, sda3, etc.). Repeat
for each partition you want to convert.  Now, run fsck on each of them:

sudo fsck -pf /dev/dev-name

Again, replace dev-name with the name of your partition to check.  Do
this for each partition you converted.  You will need to mount your root
partition now and edit /etc/fstab to change ext3 to ext4 for each
partition you converted.  If you converted /boot to ext4 (or if you have
only one partition) you also need to edit /boot/grub/menu.lst to tell it
to use ext4.  Find your kernel config line (typically the first line
starting with "kernel" after you see the comment about automagic kernel
configuration) and add "rootfstype=ext4" to the end of the line.  An
example of what the kernel line will look like when you're done:

kernel	/boot/vmlinuz-2.6.28.1
root=UUID=8c2da865-13f4-47a2-9c92-2f31738469e8 ro quiet splash
rootfstype=ext4

Watch for line breaks, that should all be one line.  Save and close
menu.lst and update GRUB:

sudo update-grub

Finally, reboot and hopefully it all works.

- --
Joel Goguen
Ubuntu User #15951
When we help, we benefit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkn2L0MACgkQH0wSzhxNWX+eiQCfURI/2eMdg8ijBaxPkIMlDCk4
J0gAoJSQe1xHAnECc+UKnqTO8aPUQ4Oy
=CSU5
-----END PGP SIGNATURE-----




More information about the ubuntu-ca mailing list