Linux精講——磁碟格式化mke2fs

flyingfishzxf發表於2016-02-28

格式化工具:mke2fs

常用選項:

mke2fs -t /dev/sdxx  ## 指定格式化檔案系統型別
mke2fs -b /dev/sdxx  ## 指定塊大小(預設4096位元組)
mke2fs -m /dev/sdxx  ## 指定保留塊的百分比(預設5)
mke2fs -L /dev/sdxx  ## 指定磁碟標籤

[root@centos01 ~]# mke2fs -t ext4 -b 4096 -m 4 -L fish /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
Filesystem label=fish  <----------  -L
OS type: Linux
Block size=4096 (log=2)  <--------  -b
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
131648 inodes, 526120 blocks
21044 blocks (4.00%) reserved for the super user  <------  -m
First data block=0
Maximum filesystem blocks=541065216
17 block groups
32768 blocks per group, 32768 fragments per group
7744 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912

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

This filesystem will be automatically checked every 22 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

相關文章