How to Convert ext3 partition into ext2?

Suppose you want to convert your /tmp partition into ext2 then follow the following step:-

1.# init 1(single user mode)
2.# umount /tmp
or
# mount -o remount,ro /tmp(better choice)
3.# tune2fs -O^has_journal /dev/sda9 (Here /dev/sda9 represent /tmp partition)
4.# e2fsck /dev/sda9
5.# rm -f /tmp/.journal (Removing .journal file)
6.Open /etc/fstab file change partition type of /tmp into ext2.
7.Check partition type of /dev/sda9 using following command:-
# file -s /dev/sda9
8.# init 6(Restart)

Comments

Post a Comment

Popular posts from this blog

Few tips for Linux User related to MAN page

SEND Mail Using JAVA Mail API