Forrest logo
back to context overview

btrfs-check

List of commands for btrfs-check:

  • btrfs-check:tldr:74c69 btrfs-check: Use the `n`-th superblock (`n` can be 0, 1 or 2).
    $ sudo btrfs check --super ${n} ${path-to-partition}
    try on your machine
    explain this command
  • btrfs-check:tldr:a48f4 btrfs-check: Rebuild the checksum tree.
    $ sudo btrfs check --repair --init-csum-tree ${path-to-partition}
    try on your machine
    explain this command
  • btrfs-check:tldr:a682e btrfs-check: Check and repair a btrfs filesystem (dangerous).
    $ sudo btrfs check --repair ${path-to-partition}
    try on your machine
    explain this command
  • btrfs-check:tldr:ac7d9 btrfs-check: Show the progress of the check.
    $ sudo btrfs check --progress ${path-to-partition}
    try on your machine
    explain this command
  • btrfs-check:tldr:b73e3 btrfs-check: Check a btrfs filesystem.
    $ sudo btrfs check ${path-to-partition}
    try on your machine
    explain this command
  • btrfs-check:tldr:f0a88 btrfs-check: Rebuild the extent tree.
    $ sudo btrfs check --repair --init-extent-tree ${path-to-partition}
    try on your machine
    explain this command
  • btrfs-check:tldr:f85ca btrfs-check: Verify the checksum of each data block (if the filesystem is good).
    $ sudo btrfs check --check-data-csum ${path-to-partition}
    try on your machine
    explain this command
back to context overview