Advertisement
fant0men

Btrfs commands

Oct 13th, 2020 (edited)
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement