To the best of my knowledge, you can't *directly* convert a filesystem from one type, but instead you have to move all of your data somewhere, reformat, and move your data back.
This isn't hard though, if you have enough space on another (empty) partition.
For instance, if I want to change my /dev/hda3 partition to JFS (and assuming it's my root partition), I'd mount my /dev/hda4 partition to /backup/, then use the following command:
Code: Select all
cd /
tar lcf - .|(cd /backup; tar xpvf - )
Assuming I remembered the command correctly (99.9% sure), this will make an exact copy of your root partition in your /dev/hda4 partition (and you can watch as it does it, that's what the "v" will do).
Now, you can cd into /backup, chroot, edit your config files (most importantly your /etc/fstab) and reflect the changes in your bootloader (telling it to boot your /dev/hda4 partition as your root) and then reboot.
Then you can format /dev/hda3 as you like, mount it, and repeat the process to make it your root again.
And, of course, any other empty partition will do - it could even be on another hard drive. I hope this helps if you don't find any slicker way to convert your file system type.