I have a root filesystem thats live and mounted and I'd like to convert it to ext4. All the howto's i've read deal with booting off a live CD but thats not an option.
I have a root filesystem thats live and mounted and I'd like to convert it to ext4. All the howto's i've read deal with booting off a live CD but thats not an option.
It appears that my original post was completely wrong. You can convert an ext3fs partition to an ext4fs partition while it is mounted, because the conversion process doesn't actually change the files that were previously written to use extents. This is documented in the ext4 howto along with all the reasons why it's a really bad idea for you to try:
The howto lists some of the changes required on a per-distribution basis as well, so you can determine the correct versions of which packages to install.
If booting off a LiveCD is not an option, I presume that this is a remotely hosted server that you can't just go and boot off a cd. If one of those above fails, how are you going to deal with it when it doesn't come back after you reboot? How long does it take to fsck your root partition, so you'll know how long to give it before you start worrying, and how much longer 'til you start sweating?
Otherwise, if you're confident you've done everything right and have everything set up the right way, just run
You can not simply convert between ext3 and ext4... You can however convert between ext3 and ext2 by removing or adding the journal and remounting the file system. Selecting the file system format you want when installing is always the best course of action as changing it later is not always an option.
One option would be to change the fstab file to specify to mount it as an ext4 partition, this will allow you to take advantage of a few features of ext4. This will require a reboot.
You cant really change a file system while its mounted. if its not a system drive you may be able to unmount it and then follow the steps similar to the ones you saw using a live cd but this depends on your setup.
In general if you cant afford downtime you dont do things like this, its potentially dangerous and unnecessary in 99% of cases. ext3 is very solid and i would trust storing my data on it for years to come.
remember to do a full backup first :)