Converting ext2 to ext3 while mounted


There’s not much to it, but this troubleshooters article goes over the steps used to add a journal to an ext2 file system.

I just have one problem with this artcle: The fear of adding a journal to a mounted file system is unnecessary.

There’s no need to unmount it or to mount read-only before adding the journal. If you operate on a mounted file system, the journal gets created on a regular inode and marked immutable. Upon your next boot, the journal will be moved to the hidden inode.

====# tune2fs -j /dev/sda7====

====# ls -la====

You can’t modify or remove the .journal file either, so don’t even worry about that.

====# chmod 777 .journal====

====# rm -f .journal====

I see no need for anything more than an ext2 file system for boot since I leave it unmounted after booting anyway. But it’s not a big deal. I only use ext3/ext4 now and ocfs for clustered file systems. My Fedora 10 doesn’t seem to like mounting ext2.

It even saves a little space by not having a journal file. Ok, not much, but its the thought that counts right!? Just in case you’re wondering, on my 15G file system, the journal is 128M.


Posted on April 9th, by admica in Linux.
Comments Off

Comments are closed.