resize2fs
To revert a partition, you must first unmount the partition by logging in as root and typing:
umount /dev/hdbX |
In the above command, replace /dev/hdb with the device name and X with the partition number. For the remainder of this section, the sample commands will use hdb1 for these values.
Next, change the file system type to ext2 by typing the following command as root:
/sbin/tune2fs -O ^has_journal /dev/hdb1 |
Check the partition for errors by typing the following command as root:
/sbin/e2fsck -y /dev/hdb1 |
Then mount the partition again as ext2 file system by typing:
mount -t ext2 /dev/hdb1 /mount/point |
In the above command, replace /mount/point with the mount point of the partition.
Next, remove the .journal
rm -f .journal |
You now have an ext2 partition.
If you permanently change the partition to ext2, remember to update the /etc/fstab file.
| Главная |