---
name: "luksformat"
section: "8"
platform: "linux"
package: "cryptsetup"
version: "2:2.7.5-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/luksformat"
---

# luksformat(8)

Create and format an encrypted LUKS device

## NAME

luksformat - Create and format an encrypted LUKS device

## SYNOPSIS

**luksformat** \[**-t** *fstype*\] *device* \[ mkfs options \]

## DESCRIPTION

**luksformat** is a wrapper around **cryptsetup** and **mkfs** which provides an easy interface for creating an encrypted device that follows the LUKS standard and for putting a file system onto the encrypted device.

The default file system is **vfat** since that is most commonly used on removable devices. However, you can specify any available file system with the **-t** option.

## SEE ALSO

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

## AUTHOR

This program was written by Martin Pitt \<martin.pitt@ubuntu.com\>.
