LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices



Reply
 
Search this Thread
Old 07-27-2005, 11:14 AM   #1
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Rep: Reputation: 31
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.

Code:
 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.

Last edited by AxXium; 07-27-2005 at 11:21 AM.
 
Old 07-27-2005, 01:01 PM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
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.
 
Old 07-27-2005, 01:39 PM   #3
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Original Poster
Rep: Reputation: 31
Thanks so much!!!
 
Old 08-02-2005, 12:30 PM   #4
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,455

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
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.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
figuring out 'file system' and 'swap file system' types TrulyTessa Linux - Newbie 3 09-26-2005 07:46 PM
Advice: consistency in file system permissions tisource Linux - General 1 08-15-2005 07:15 PM
Need help/advice on system nodger Programming 3 07-09-2005 04:32 PM
file system advice sought jagmandan Linux - General 2 07-01-2004 09:37 PM
File system Help \ Newbie Advice KarmaKill Linux - Newbie 4 06-23-2004 12:53 PM


All times are GMT -5. The time now is 09:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration