Home | Hardware | Internet News |Web Hosting |IT Management |Network Storage
LinuxPlanet
Search 
  Power Search | Tips 

 Front Door
 Discussion
 LinuxEngine
 Opinions
 Reports
 Reviews
 Tutorials
 News
 Technology Jobs

 Browse by subject.
Free Newsletter

Linux Planet
Linux Today
More Free Newsletters

Be a Commerce Partner

Free eCommerce Demo
PDA Phones & Cases
Logo Design
Corporate Gifts
Promotional Golf
Laptops
Promos and Premiums
Compare Prices
Televisions
Online Universities
Boat Donations
KVM Switches
Free Business Cards
Logo Design



internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Print this article
Email this article
Whitepaper: The Trend from UNIX to Linux in SAP Data Centers. Realize high platform-related cost savings in a business-critical SAP landscape with high-availability requirements by moving to Linux.

   LinuxPlanet / Reports



Turbo Screen Sharing
Adobe Acrobat Connect Professional offers users the ability to have a more productive and engaging web conferencing experience while providing the IT department with a program that efficiently utilizes bandwidth and minimally impacts the infrastructure. Learn More! »

Informal Learning: Extending the Impact of Enterprise Ideas and Information
Forward-thinking organizations are turning to enterprise learning in their quest to be better informed, better skilled, better supported at the point of need, and more competitive in their respective marketplaces. Learn More! »

Rapid E-Learning: Maturing Technology Brings Balance and Possibilities
Rapid e-learning addresses both time and cost issues by using technology tools to shift the dynamics of e-learning development. Learn why more skilled learning professionals use these tools and how you can get a solution to keep pace with your business demands. »

Delivering on the Promise of ELearning
This white paper defines the framework to launch e-learning as a set of teaching, training, and learning practices not bound by a specific technology platform or learning management system. It offers practical suggestions for creating digital learning experiences that engage learners by building interest and motivation and providing opportunities for active participation. »
Exploring the ext3 Filesystem
The Linux ext3 Filesystem

Bill von Hagen
Friday, April 5, 2002 09:53:55 AM

The ext3 filesystem is a journaling version of the Linux ext2 filesystem. The ext3 filesystem has one significant advantage that no other journaling filesystem has - it is totally compatible with the ext2 filesystem. It can therefore make use of all of the existing applications that have already been developed to manipulate and fine-tune the ext2 filesystem. The ext3 filesystem is supported in Linux kernel versions 2.4.16 and newer, but must be activated using the Filesystems Configuration dialog when building the kernel. Linux distributions such as Red Hat 7.2 and SuSE 7.3 already include built-in support for the ext3 filesystem. You can only use the ext3 filesystem if ext3 support is compiled into your kernel and you have the latest versions of the mount and e2fsprogs Linux utilities.

In most cases, converting filesystems from one format to another involves backing up all of the data that they contain, reformatting the partition or logical volume that contains the filesystem, and then restoring all of the previous data to that filesystem. Due to the compatibility between the ext2 and ext3 filesystems, this sort of conversion process is totally unnecessary when converting and ext2 filesystem to ext3, which can be done (as root) with a single command:

 # /sbin/tune2fs -j <partition-name>

As an example, converting the ext2 filesystem located on the partition /dev/hda5 to an ext3 filesystem would be done with the following command:

 # /sbin/tune2fs -j /dev/hda5

The tune2fs command's -j option creates the ext3 journal on an existing ext2 filesystem. After converting an ext2 filesystem to ext3, you must also update the entries in the /etc/fstab file for that filesystem to specify that it is an ext3 filesystem. You can also use the "auto" filesystem type option, but I prefer to explicitly identify the type of filesystem that I'm using. The following examples from an /etc/fstab file show before and after versions of the entry for a filesystem on /dev/hda5:

Before:

/dev/hda5      /opt            ext2       defaults         1 2

After:

/dev/hda5      /opt            ext3       defaults         1 0

The last field of a Linux /etc/fstab entry specifies the stage in the boot process during which filesystem consistency should be verified by the "fsck" program. When using the ext3 filesystem, you can set this field to "0", as shown in the previous example. This means that the fsck program will never check the consistency of the filesystem, since the consistency of the filesystem is guaranteed by playing back the journal.

Converting the root filesystem of a Linux system to ext3 requires some special handling, and is best done in single user mode after creating an initial RAM disk that supports the ext3 filesystem.

Next: Multiple Journaling Modes in the ext3 Filesystem »

Skip Ahead

1 Introduction to the ext3 Filesystem
2 Some Background on Linux Filesystems
3 What is Journaling?
4 The Linux ext3 Filesystem
5 Multiple Journaling Modes in the ext3 Filesystem
6 Conclusion





Linux is a trademark of Linus Torvalds.


internet.com home | search | help! | about us

Jupiter Online Media

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers