fant0men

Btrfs commands

Oct 13th, 2020 (edited)
23
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. btrfs filesystem show
  2. btrfs filesystem df /run/media/lucifer/SD_BTRFS
  3. btrfs device stats /run/media/lucifer/SD_BTRFS
  4. btrfs subvolume show /run/media/lucifer/SD_BTRFS
  5. btrfs scrub start -B -d /run/media/lucifer/SD_BTRFS
  6. btrfs scrub status -d /run/media/lucifer/SD_BTRFS
  7.  
  8. btrfs check --check-data-csum --clear-space-cache v1 -p --repair /dev/sdh
  9. btrfs device add /dev/sdc /run/media/lucifer/SD_BTRFS
  10. btrfs balance start /run/media/lucifer/SD_BTRFS
  11.  
  12. btrfs fi usage /run/media/lucifer/SD_BTRFS
  13.  
  14. ***
  15.  
  16. find errors on partition:
  17. sudo find /run/media/lucifer/SD_BTRFS -type f -exec cp {} /dev/null 2>&1 \; | tee /home/lucifer/SD_BTRFS_errors.txt
  18.  
RAW Paste Data