创建文件系统实战篇
作者:尹正杰
版权声明:原创作品,谢绝转载!否则将追究法律责任。
一.EXT系列文件系统专用管理工具-mkfs
1>.查看mkfs命令
[root@yinzhengjie.com ~]# mkfs #想要查看更详细的信息可参考"man mkfs"帮助信息 Usage: mkfs [options] [-t <type>] [fs-options] <device> [<size>] Options: -t, --type=<type> filesystem type; when unspecified, ext2 is used fs-options parameters for the real filesystem builder <device> path to the device to be used <size> number of blocks to be used on the device -V, --verbose explain what is being done; specifying -V more than once will cause a dry-run -V, --version display version information and exit; -V as --version must be the only option -h, --help display this help text and exit For more information see mkfs(8). [root@yinzhengjie.com ~]#
2>.使用mkfs命令创建指定类型的文件系统
[root@yinzhengjie.com ~]# lsblk /dev/sdb NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 0 600G 0 disk ├─sdb1 8:17 0 100G 0 part ├─sdb2 8:18 0 200G 0 part ├─sdb3 8:19 0 1K 0 part ├─sdb5 8:21 0 100G 0 part └─sdb6 8:22 0 80G 0 part [root@yinzhengjie.com ~]#