[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

converting from ext2 to ext3

If any of you would like to stop watching fsck after an unclean
shutdown (crash, power failure, whatever), do the following:

    1) Install the latest e2fsprogs (http://e2fsprogs.sf.net/) and
       util-linux (http://ftp.kernel.org/pub/linux/utils/util-linux/).
       It can't hurt to make sure that stuff like mount, modutils,
       etc. are recent either.

    2) Compile (or install) a kernel with ext3 support.  Any recent
       2.4.x kernel will work.  You can also install a recent Red Hat
       7.1 or 7.2 errata kernel, but that will require some extra

    3) Run the following:

         for dev in `mount | grep ext2 | awk '{print $1}'` ; do
             tune2fs -j -i 365 $dev

    4) Run

         perl -pi.orig -e s/ext2/ext3/ /etc/fstab

       or just manually edit /etc/fstab and replace "ext2" with

    5) If you are using a Red Hat kernel with ext3 compiled as a
       module, you'll need to delete (or rename) the initrd for your
       kernel and use mkinitrd to create a new one.  If you are using
       lilo, you'll have to run "lilo" again, just like if you
       installed a new kernel.

    6) If you have e2fsprogs 1.26 (or higher), you can run

	 shutdown -F -r now

       to get rid of the .journal files on the next boot.  If they
       don't bother you, or you are running an older e2fsprogs, just
       reboot normally.

On the next boot you should see something like this:

    VFS: Mounted root (ext3 filesystem) readonly.

Enjoy your new nearly-fsck-free life.

Of course, you could also just upgrade to Red Hat 7.2.  :-)

steve@silug.org           | Southern Illinois Linux Users Group
(618)398-7360             | See web site for meeting details.
Steven Pritchard          | http://www.silug.org/

To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.