ext2 to ext3 conversion and Revert : how to ?

Converting ext2 to ext3:

For example, if you are upgrading /dev/sda2 that is mounted as /home, from ext2 to ext3, do the following.

#umount /dev/sda2

#tune2fs -j /dev/sda2

#mount /dev/sda2 /home


Reverting ext3 to ext2 :

#umount /dev/sda2

#tune2fs -O ^has_journal /dev/sda2

#e2fsck -y /dev/sda2

#mount -t ext2 /dev/sda2 /home

#rm -f .journal



0 comments:

Post a Comment

Blogger Tips and TricksLatest Tips And TricksBlogger Tricks