Linux command
mkfs.minix 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Example
sudo mkfs.minix [/dev/sdXY]
Example
sudo mkfs.minix -c [/dev/sdXY]
Example
sudo mkfs.minix -2 [/dev/sdXY]
Example
sudo mkfs.minix -3 [/dev/sdXY]
Example
sudo mkfs.minix -n [30] [/dev/sdXY]
Example
sudo mkfs.minix -i [number] [/dev/sdXY]
说明
mkfs.minix creates a Minix filesystem on a device, typically a hard disk partition. Minix is a simple, educational filesystem originally designed for the Minix operating system. The optional size-in-blocks parameter specifies filesystem size; if omitted, size is determined automatically. Block counts must be greater than 10 and less than 65536. Version 1 is the default and most compatible; version 2 adds larger file support; version 3 extends filename length to 60 characters.
参数
- -c, --check
- Check device for bad blocks before creating filesystem
- -n, --namelength _length_
- Maximum filename length; 14 or 30 for versions 1-2, 60 for version 3; default is 30
- -i, --inodes _number_
- Number of inodes to create for the filesystem
- -l, --badblocks _filename_
- Read bad blocks list from file (one block number per line)
- -1
- Create Minix version 1 filesystem; this is the original default and remains the default in many distributions.
- -2, -v
- Create Minix version 2 filesystem (supports larger files).
- -3
- Create Minix version 3 filesystem (supports filenames up to 60 characters).
- --lock=_mode_
- Use exclusive BSD locking; mode can be yes, no, or nonblock
- -h, --help
- Display help information
- -V, --version
- Display version information
FAQ
What is the mkfs.minix command used for?
mkfs.minix creates a Minix filesystem on a device, typically a hard disk partition. Minix is a simple, educational filesystem originally designed for the Minix operating system. The optional size-in-blocks parameter specifies filesystem size; if omitted, size is determined automatically. Block counts must be greater than 10 and less than 65536. Version 1 is the default and most compatible; version 2 adds larger file support; version 3 extends filename length to 60 characters.
How do I run a basic mkfs.minix example?
Run `sudo mkfs.minix [/dev/sdXY]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c, --check do in mkfs.minix?
Check device for bad blocks before creating filesystem