当您准备好在系统上创建并使用文件系统时,请参考本信息。
对磁盘进行分区之后,下一步是创建文件系统。Figure 1 显示了如何使用 mke2fs 命令创建 EXT2 Linux 文件系统(非日志)的示例。
[root@yahoo /data]# mke2fs /dev/vpathb1 mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: Linux Block size=512 (log=2) Fragment size=4096 (log=2) 122112 inodes, 243964 blocks 12198 blocks (5.00%) reserved for the super user First data block=0 8 block groups 32768 blocks per group, 32768 fragments per group 15264 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376 Writing inode tables: done Writing superblocks and filesystem accounting information: done [root@yahoo /data]#
Figure 2 显示了如何使用 mkfs 命令创建 EXT2 Linux 文件系统(非日志)的示例。
[root@yahoo /data]# mkfs -t ext2 /dev/vpathb1 mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: Linux Block size=512 (log=2) Fragment size=4096 (log=2) 122112 inodes, 243964 blocks 12198 blocks (5.00%) reserved for the super user First data block=0 8 block groups 32768 blocks per group, 32768 fragments per group 15264 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376 Writing inode tables: done Writing superblocks and filesystem accounting information: done [root@yahoo /data]#