How to convert a ext3 filesystems in to an ext2 filesystem in linux?
-
To convert from a ext3 (journalling filesystem) to an ext2 (no journalling filesystem) run the following commads:
Unmount the filesystem first
# umount /test
Run tune2fs to remove the journal option
# tune2fs -O ^has_journal /dev/mapper/vg01-test tune2fs 1.35 (28-Feb-2004)
Perform a filesystem check
# e2fsck -y /dev/mapper/vg01-test e2fsck 1.35 (28-Feb-2004) /dev/mapper/vg01-test: clean, 12/2048 files, 1335/8192 blocks
Mount the filesystem
# mount -t ext2 /dev/mapper/vg01-test /test
Remove the .journal file
# cd /test # rm -f .journal
© Lightnetics 2024