commands.sh

mkfs.ntfs

linux

Create a NTFS filesystem inside a partition.

More info →

Options (2)

-L, --labelboolean

Create filesystem with a volume-label

Example: sudo mkfs.ntfs {{[-L|--label]}} {{volume_label}} {{/dev/sdXY}}
-U, --with-uuidboolean

Create filesystem with specific UUID

Example: sudo mkfs.ntfs {{[-U|--with-uuid]}} {{UUID}} {{/dev/sdXY}}

Examples (3)

Create a NTFS filesystem inside partition Y on device X

sudo mkfs.ntfs /dev/sdXY

Create filesystem with a volume-label

sudo mkfs.ntfs [-L|--label] volume_label /dev/sdXY

Create filesystem with specific UUID

sudo mkfs.ntfs [-U|--with-uuid] UUID /dev/sdXY
made by @shridhargupta | data from tldr-pages