Mkfs.btrfs

From OnnoWiki
Jump to navigation Jump to search

The common mkfs program to format a device with Btrfs.

Usage

mkfs.btrfs [-A <offset>] [-b <size>] [-l <size>] [-n <size>] [-L <label>] [-s <size>] [-m raid0|raid1|raid10|single] 
[-d raid0|raid1|raid10|single] <device>

Description of parameters

  • "alloc-start" or "-A": At what offset to start the fs.
  • "byte-count" or "-b": Size of the filesystem in bytes.
  • "leafsize" or "-l": Size of the leaves, defaults to pagesize.
  • "label" or "-L": Set a label.
  • "nodesize" or "-n": Size of the nodes, defaults to pagesize.
  • "sectorsize" or "-s": Size of the sectors, defaults to 4KiB.
  • "metadata" or "-m": Metadata profile, raid0, raid1, raid10 or single
  • "data" or "-d": Data profile, values like metadata.

And after the options one or more devices.