Mkfs.btrfs

From btrfs Wiki
Revision as of 18:02, 6 November 2008 by Lagalopex (Talk | contribs)

Jump to: navigation, 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": Metadats profile, raid0, raid1, raid10 or single
  • "data" or "-d": Data profile, values like metadata.

And after the options one or more devices.

Personal tools