Saturday, November 13, 2010

How to convert from ext3 to ext2 file system?

■ Requirement : How to convert from ext3 to ext2 file system
■ OS Environment : Linux[RHEL, Centos]
■ Application: tune3fs
■ Assumption : FS is on /dev/hda and mounted on /home
■ Implementation Steps : 

1. Unmount file-system : 

$umount /dev/hda1

2. Now change the file system type to ext2 by typing the following command :

$ tune2fs -O ^has_journal /dev/hda1

3. Verify that there are no error:

$e2fsck -y /dev/hda1

4. Mount the file system to original mount point (for example /home or /mnt):

mount -t ext2 /dev/hda1 /home

5. Go to mount point and remove .journal file

$ rm -f .journal

No comments:

Post a Comment