On Sep 20, 2001 03:48 -0300, Fr?d?ric L. W. Meunier
wrote:> Hi. What are the right steps to convert a file system from
> ext3 back to ext2 ? I need to use GNU Parted to resize my
> root file system and Andrew Clausen said I have to convert it
> to ext2, resize, and then convert back to ext3. My journal is
> visible.
You can run the commands:
tune2fs -O ^has_journal <dev> # Clear journal flag
e2fsck <dev> # Make sure everything is OK
parted <disk> # Resize partition/filesystem
tune2fs -j <dev> # Make a new journal
I'm surprised, however, that parted can't work with ext3. As long as
the filesystem has been cleanly unmounted, it shouldn't need any extra
code except to recognize the COMPAT_HAS_JOURNAL flag.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert