usage: btrfs [global options] [...] [options] [] Global options: --format if supported, print subcommand output in that format (text, json) -v, --verbose increase verbosity of the subcommand -q, --quiet print only errors --log set log level (default, info, verbose, debug, quiet) --dry-run if supported, do not do any active/changing actions Options for the main command only: --help print condensed help for all subcommands --version print version string and built-in features btrfs balance start [options] Balance chunks across the devices btrfs balance pause Pause running balance btrfs balance cancel Cancel running or paused balance btrfs balance resume Resume interrupted balance btrfs balance status [-v] Show status of running or paused balance btrfs check [options] Check structural integrity of a filesystem (unmounted). btrfs device add [options] [...] Add one or more devices to a mounted filesystem. btrfs device delete | [|...] btrfs device remove | [|...] Remove a device from a filesystem btrfs device replace [...] Replace a device (alias of "btrfs replace") btrfs device scan [-d|--all-devices] [...] btrfs device scan -u|--forget [...] Scan or forget (unregister) devices of btrfs filesystems btrfs device ready Check and wait until a group of devices of a filesystem is ready for mount btrfs device stats [options] | Show device IO error statistics btrfs device usage [options] [..] Show detailed information about internal allocations in devices. btrfs filesystem df [options] Show space usage information for a mount point btrfs filesystem du [options] [..] Summarize disk usage of each file. btrfs filesystem show [options] [|||label] Show the structure of a filesystem btrfs filesystem commit-stats Print number of commits and time stats since mount btrfs filesystem sync Force a sync on a filesystem btrfs filesystem defragment [options] | [|...] Defragment a file or a directory btrfs filesystem resize [options] [devid:][+/-][kKmMgGtTpPeE]|[devid:]max Resize a filesystem btrfs filesystem label [|] [] Get or change the label of a filesystem btrfs filesystem usage [options] [..] Show detailed information about internal filesystem usage . btrfs filesystem mkswapfile Create a new file that's suitable and formatted as a swapfile. btrfs inspect-internal inode-resolve [-v] Get file system paths for the given inode btrfs inspect-internal logical-resolve [-Pvo] [-s bufsize] Get file system paths for the given logical address btrfs inspect-internal subvolid-resolve Get file system paths for the given subvolume ID. btrfs inspect-internal rootid Get tree ID of the containing subvolume of path. btrfs inspect-internal map-swapfile Print physical offset of first block and resume offset if file is suitable as swapfile btrfs inspect-internal min-dev-size [options] Get the minimum size the device can be shrunk to btrfs inspect-internal dump-tree [options] [ ..] Dump tree structures from a given device btrfs inspect-internal dump-super [options] device [device...] Dump superblock from a device in a textual form btrfs inspect-internal tree-stats [options] Print various stats for trees btrfs inspect-internal list-chunks [options] Enumerate chunks on all devices btrfs property get [-t ] [] Get a property value of a btrfs object btrfs property set [-f] [-t ] Set a property on a btrfs object btrfs property list [-t ] Lists available properties with their descriptions for the given object btrfs qgroup assign [options] Assign SRC as the child qgroup of DST. btrfs qgroup remove [options] Remove the relation between child qgroup SRC from DST. btrfs qgroup create Create a subvolume quota group. btrfs qgroup clear-stale Clear all stale qgroups (level 0/subvolid), without a subvolume. btrfs qgroup destroy Destroy a quota group. btrfs qgroup show [options] List subvolume quota groups. btrfs qgroup limit [options] |none [] Set the limits a subvolume quota group. btrfs quota enable Enable subvolume quota support for a filesystem. btrfs quota disable Disable subvolume quota support for a filesystem. btrfs quota rescan [-sw] Trash all qgroup numbers and scan the metadata again with the current config. btrfs quota status Show status information about quota if enabled on the . btrfs receive [options] btrfs receive --dump [options] Receive subvolumes from a stream btrfs replace start [-Bfr] | Replace device of a btrfs filesystem. btrfs replace status [-1] Print status and progress information of a running device replace operation btrfs replace cancel Cancel a running device replace operation. btrfs rescue chunk-recover [options] Recover the chunk tree by scanning the devices one by one. btrfs rescue super-recover [options] Recover bad superblocks from good copies btrfs rescue zero-log Clear the tree log. Usable if it's corrupted and prevents mount. btrfs rescue fix-device-size Re-align device and super block sizes. Usable if newer kernel refuse to mount it due to mismatch super size btrfs rescue fix-data-checksum Fix data checksum mismatches. btrfs rescue create-control-device Create /dev/btrfs-control (see 'CONTROL DEVICE' in btrfs(5)) btrfs rescue clear-ino-cache remove leftover items pertaining to the deprecated inode cache feature btrfs rescue clear-space-cache (v1|v2) completely remove the v1 or v2 free space cache btrfs rescue clear-uuid-tree Delete uuid tree so that kernel can rebuild it at mount time btrfs restore [options] btrfs restore [options] -l Try to restore files from a damaged filesystem (unmounted) btrfs scrub start [options] | Start a new scrub on the filesystem or a device (can be started only once) btrfs scrub cancel | Cancel a running scrub btrfs scrub resume [-BdqrR] [-c ioprio_class -n ioprio_classdata] | Resume previously canceled or interrupted scrub btrfs scrub status [-dR] | Show status of running or finished scrub btrfs scrub limit [options] Show or set scrub limits on devices of the given filesystem. btrfs send [-ve] [-p ] [-c ] [-f ] [...] Send the subvolume(s) to stdout. btrfs subvolume create [options] [/] [[/] ...] Create subvolume(s) btrfs subvolume delete [options] [...] btrfs subvolume delete [options] -i|--subvolid Delete subvolume(s) btrfs subvolume list [options] List subvolumes and snapshots in the filesystem. btrfs subvolume snapshot [-r] [-i ] { / | } btrfs subvolume get-default Get the default subvolume of a filesystem btrfs subvolume set-default btrfs subvolume set-default Set the default subvolume of the filesystem mounted as default. btrfs subvolume find-new List the recently modified files in a filesystem btrfs subvolume show [options] Show more information about the subvolume (UUIDs, generations, times, snapshots) btrfs subvolume sync [...] Wait until given subvolume(s) are completely removed from the filesystem. btrfs help [--full] [--box] Display help information btrfs version Display btrfs-progs version Use --help as an option for information about a group or command: btrfs subvolume --help btrfs subvolume create --help Global options like -q/-v must follow the tool name 'btrfs': btrfs -q subvolume create ... btrfs --dry-run subvolume create ...