---
name: "cdist-type__install_mkfs"
section: "7"
platform: "linux"
package: "cdist"
version: "7.0.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cdist-type__install_mkfs"
---

# cdist-type\_\_install\_mkfs(7)

build a linux file system

## NAME

cdist-type\_\_install\_mkfs - build a linux file system

## DESCRIPTION

This cdist type is a wrapper for the mkfs command.

## REQUIRED PARAMETERS

- **type**

  The filesystem type to use. Same as used with mkfs -t.

## OPTIONAL PARAMETERS

- **device**

  defaults to object\_id

- **options**

  file system-specific options to be passed to the mkfs command

- **blocks**

  the number of blocks to be used for the file system

## EXAMPLES

```
# reiserfs /dev/sda5
__install_mkfs /dev/sda5 --type reiserfs
# same thing with explicit device
__install_mkfs whatever --device /dev/sda5 --type reiserfs
# jfs with journal on /dev/sda2
__install_mkfs /dev/sda1 --type jfs --options "-j /dev/sda2"
```

## SEE ALSO

[**mkfs**(8)](/mkfs/8.md)

## AUTHORS

Steven Armstrong \<*steven-cdist--@--armstrong.cc*\>

## COPYING

Copyright (C) 2011 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

## COPYRIGHT

ungleich GmbH 2021
