為了效能關掉 ext4 的 日誌功能 : disable/enable journaling on an ext4 filesystem



root@park:~# mkfs.ext4 /dev/sdc1
mke2fs 1.41.11 (14-Mar-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
238080 inodes, 951843 blocks
47592 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=977272832
30 block groups
32768 blocks per group, 32768 fragments per group
7936 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736

Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
root@park:~# tune2fs -o journal_data_writeback /dev/sdc1
tune2fs 1.41.11 (14-Mar-2010)
root@park:~# tune2fs -O ^has_journal /dev/sdc1
tune2fs 1.41.11 (14-Mar-2010)

root@park:~# e2fsck -f /dev/sdc1
e2fsck 1.41.11 (14-Mar-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdc1: 11/238080 files (0.0% non-contiguous), 16818/951843 blocks