Mkfs.btrfs

From btrfs Wiki
(Difference between revisions)
Jump to: navigation, search
(New page: The common mkfs program to format a device with Btrfs. * "alloc-start" or "-A": At what offset to start the fs. * "byte-count" or "-b": Size of the filesystem in bytes. * "leafsize" or "-...)
 
Line 1: Line 1:
 
The common mkfs program to format a device with Btrfs.
 
The common mkfs program to format a device with Btrfs.
 +
== Usage ==
 +
<pre>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></pre>
  
 +
=== Description of parameters ===
 
* "alloc-start" or "-A": At what offset to start the fs.
 
* "alloc-start" or "-A": At what offset to start the fs.
 
* "byte-count" or "-b": Size of the filesystem in bytes.
 
* "byte-count" or "-b": Size of the filesystem in bytes.

Revision as of 18:02, 6 November 2008

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