-   Linux From Scratch (
-   -   File System Advice (

AxXium 07-27-2005 10:14 AM

File System Advice
Edit: I found the answer from a link in the BLFS book. Sorry for being a lazy moron.

Disregard the following question


I have LFS 6.1 installed on one ext2 partition.

I would like to enable journaling (convert to ext3).

Instructions from BLFS state the following.


Ext3 is a journaling file system that is an extension to the ext2 file system. It is backward compatible with ext2 and the conversion from ext2 to ext3 is trivial.

You don't need to install anything to use ext3, all the required packages are available with a bare LFS system.

When building the kernel, ensure that you have compiled in ext3 support. If you want your root partition to be ext3, then compile the ext3 support in the kernel, else you may compile it as a module. Recompile the kernel if needed.

Edit your /etc/fstab. For each partition that you want to convert into ext3, edit the entry so that it looks similar to the following line.

/dev/hd[XX] /mnt_point ext3 defaults 1 0

In the above line, replace /dev/hd[XX] by the partition (e.g., /dev/hda2), /mnt_point by the mount point (e.g., /home). The 0 in the last field ensures that the partition will not be checked for consistency during the boot process by the checkfs script. You may replace the ext3 fs type in the above by auto if you want to ensure that the partition is mounted if you accidentally skip enabling the ext3 support in the kernel.

For each partition that you have converted to ext3 in /etc/fstab, enable the journal for the partition by running the following command.

tune2fs -j /dev/hd[XX]

Remount the concerned partitions, or simply reboot if you have recompiled the kernel to enable ext3 support.

My question is, since these instructions make no mention of altering grub; I do understand that ext3 is ext2 with journaling enabled; Is it safe to just enable it in the kernel, modify /etc/fstab & reboot as the instructions seem to indicate?

I would not be a happy camper if I had to rebuild LFS just because of this.

kjordan 07-27-2005 12:01 PM

That should be all you need since they use the same stage 1.5 and grub doesn't need to know anything about the journaling portion of the filesystem.

AxXium 07-27-2005 12:39 PM

Thanks so much!!!

sundialsvcs 08-02-2005 11:30 AM

Yes, indeed... ext3 is one of those rare things: a completely upward-compatible improvement! Grub doesn't need to know about the journal. It still works.

Ext3 is definitely the way to go, as the next unexpected summer thunderstorm will confirm. (... as you plug in your brand-new UPS box.... Did you know they quit working without warning? Gee, neither did I.) :rolleyes:

All times are GMT -5. The time now is 02:46 PM.