برای حذف Journaling رو حافظه های
sdd و فلش
اول آنها را بر روی کامپیوتری که به صورت عملیات از آن استفاده نمی کنند وصل می کنیم
نباید mount باشند
# mount | grep ext4
mount | grep ext4
/dev/sdb1 on /boot type ext4 (rw,noatime,barrier=0,data=writeback,noauto_da_all oc)
/dev/sdb5 on / type ext4 (rw,noatime,barrier=0,data=writeback,noauto_da_all oc)
/dev/sdb6 on /home type ext4 (rw,noatime,barrier=0,data=writeback,noauto_da_all oc)
در بالا نمی توان روی این پارتیشن ها کار کرد برای این که مونت هستند
In this example, the 3 partitions are:
/dev/sdb1 (/data)
/dev/sdb5 (/dbdata)
/dev/sdb6 (/cache)
Repeat Steps 5 to 9 for every partition you want to remove the journal from.
The next steps show the procedure for
/dev/sdb1 (/boot).
Step 5: Unmount the partition:
umount partition_mount_point
for example:
# umount /dev/sdb1
Step 6: Check if there is a journal:
# sudo tune2fs -l /dev/sdb1 | grep features
You should see something like this:
Filesystem features: has_journal ext_attr resize_inode dir_index
filetype extent flex_bg sparse_super large_file huge_file uninit_bg
dir_nlink extra_isize
You should see "has_journal" in the features. It means this partition has a journal.
Step 7: Fsck the partition:
# e2fsck -f /dev/sdb1
Step 8: Remove the journal:
# sudo tune2fs -O ^has_journal /dev/sdb1
(this is a capital "O"!)
Step 9: Check if the journal was removed:
# sudo tune2fs -l /dev/sdb1 | grep features
You should see something like this:
Filesystem features: ext_attr resize_inode dir_index filetype
extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink
extra_isize
You should see "has_journal" is NOT there.