mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 23:50:03 +00:00
Update cheatsheets
This commit is contained in:
22
linux/mkfs
Normal file
22
linux/mkfs
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# mkfs
|
||||
|
||||
> Build a Linux filesystem on a hard disk partition.
|
||||
> This command is deprecated in favor of filesystem specific mkfs.<type> utils.
|
||||
> More information: <https://manned.org/mkfs>.
|
||||
|
||||
- Build a Linux ext2 filesystem on a partition:
|
||||
|
||||
`mkfs {{path/to/partition}}`
|
||||
|
||||
- Build a filesystem of a specified type:
|
||||
|
||||
`mkfs -t {{ext4}} {{path/to/partition}}`
|
||||
|
||||
- Build a filesystem of a specified type and check for bad blocks:
|
||||
|
||||
`mkfs -c -t {{ntfs}} {{path/to/partition}}`
|
||||
Reference in New Issue
Block a user