#Bash 的 mkfs.bfs 命令
mkfs.bfs [OPTION]... DEVICE [BLOCK-COUNT]
功能
创建一个 Boot File System 文件系统。
类型
可执行文件(/usr/sbin/mkfs.bfs),属于 util-linux。
参数
OPTIONS选项:-N,--inodes number- 指定所需的 inode 数量(最多 512 个)-V,--vname label- 请指定卷标-F,--fname name- 请指定文件系统名称--lock[=mode]- 是否对操作的设备或文件使用独占 BSD 锁yes- 对设备加锁,如果锁被占用,则阻塞等待;省略mode时默认为yesno- 不对设备加锁;没有--lock选项时默认不加锁nonblock- 对设备加锁,如果锁被占用,则失败
-c-坏块检查;废弃选项,将被静默忽略-l-列出坏块;废弃选项,将被静默忽略-v,--verbose- 显示详细信息-h,--help- 显示帮助-V,--version- 显示版本
DEVICE- 要操作的设备BLOCK-COUNT- 块数量;默认为整个分区
#示例
$ sudo mkfs.bfs /dev/sda # 将 /dev/sda 格式化为 bfs 文件系统
#相关命令
| 命令 | 说明 |
|---|---|
| mkfs | 创建 Linux 文件系统 |
#推荐阅读
#手册
MKFS.BFS(8) System Administration MKFS.BFS(8)
NAME
mkfs.bfs - make an SCO bfs filesystem
SYNOPSIS
mkfs.bfs [options] device [block-count]
DESCRIPTION
mkfs.bfs creates an SCO bfs filesystem on a block device (usually a
disk partition or a file accessed via the loop device).
The block-count parameter is the desired size of the filesystem, in
blocks. If nothing is specified, the entire partition will be used.
OPTIONS
-N, --inodes number
Specify the desired number of inodes (at most 512). If nothing is
specified, some default number in the range 48-512 is picked
depending on the size of the partition.
-V, --vname label
Specify the volume label. I have no idea if/where this is used.
-F, --fname name
Specify the filesystem name. I have no idea if/where this is used.
--lock[=mode]
Use exclusive BSD lock for device or file it operates. The optional
argument mode can be yes, no (or 1 and 0) or nonblock. If the mode
argument is omitted, it defaults to yes. This option overwrites
environment variable $LOCK_BLOCK_DEVICE. The default is not to use
any lock at all, but it’s recommended to avoid collisions with
systemd-udevd(8) or other tools.
-v, --verbose
Explain what is being done.
-c
This option is silently ignored.
-l
This option is silently ignored.
-h, --help
Display help text and exit.
-V, --version
Print version and exit. Option -V only works as --version when it
is the only option.
EXIT STATUS
The exit status returned by mkfs.bfs is 0 when all went well, and 1
when something went wrong.
SEE ALSO
mkfs(8)
REPORTING BUGS
For bug reports, use the issue tracker at
https://github.com/util-linux/util-linux/issues.
AVAILABILITY
The mkfs.bfs command is part of the util-linux package which can be
downloaded from Linux Kernel Archive
<https://www.kernel.org/pub/linux/utils/util-linux/>.
util-linux 2.39.3 2023-11-21 MKFS.BFS(8)