How to convert back Linux ext3 file system to ext2 file system

Q. How can I convert back Linux ext3 file system to ext2 under Linux?

ADVERTISEMENTS

A. First use umount command to detach the file system mentioned from the file system hierarchy.

For example, if your partition name is /dev/hda5, type the command:
# umount /dev/hda5

Now change the file system type to ext2 by typing the following command
# tune2fs -O ^has_journal /dev/hda5

Verify that there are no error:
# e2fsck -y /dev/hda5

Mount the file system to original mount point (for example /home or /mnt):
# mount -t ext2 /dev/hda5 /home

Go to mount point and remove .journal file
# rm -f .journal

Please note that you need to replace /dev/hda5 with your actual partition name.

See official Redhat guide for more information.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
0 comments… add one

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.