荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: cooolfish.bbs@bbs.sjtu.edu.cn (开国啦,哈哈), 信区: Linux
标  题: converting from ext2 to ext3(转寄)(转载)
发信站: 饮水思源 (Sat Feb 15 11:12:35 2003)
转信站: SZU!news.tiaozhan.com!news.neu.edu.cn!SJTU

【 以下文字转载自 cooolfish 的信箱 】
【 原文由 cooolfish(coOoLFisH) 所发表 】
来  源: from smthnew (bbs.net.tsinghua.edu.cn [166.111.8.238])
日  期: Sat Feb 15 11:09:01 2003

发信人: luochong (luochong), 信区: Linux
标  题: converting from ext2 to ext3
发信站: BBS 水木清华站 (Wed Dec 25 19:58:29 2002), 转信

http://www.luci.org/luci-discuss/200202/msg00055.html

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
       steps...

    3) Run the following:

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

    4) Run

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

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

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

--

※ 来源:·BBS 水木清华站 smth.edu.cn·[FROM: 162.105.69.232]
--
※ 转载:·饮水思源 bbs.sjtu.edu.cn·[FROM: 211.80.82.156]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店