Linux磁盘管理入门教程(4)

a)  mkfs.ext2 /dev/sda#  格式化sda#分区成为ext2的文件系统类型(破坏已有的文件系统类型)
[root@bogon ~]# mkfs.ext2 /dev/sda3
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
655776 inodes, 2622361 blocks
131118 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2688548864
81 block groups
32768 blocks per group, 32768 fragments per group
8096 inodes per group
Superblock backups stored on blocks: 
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
 
Writing inode tables: done                           
Writing superblocks and filesystem accounting information: done
 
This filesystem will be automatically checked every 24 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

b)  blkid /dev/sda# 查看分区是否格式化成目标文件系统类型
[root@bogon ~]# blkid /dev/sda3
/dev/sda3: UUID="228c109c-b9f8-4339-90eb-b072c60b3433" TYPE="ext2"

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/15417.html