Last active
March 19, 2017 16:16
-
-
Save gsmitheidw/573881e17308ec31a005c4732e4a180a to your computer and use it in GitHub Desktop.
btrfs cheatsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
btrfs filesystem df /mnt/edu/ | |
btrfs dev stats /mnt/edu/ | |
btrfs scrub start -c3 <mount point> | |
brtfs fi show | |
# Add a btfs device to an existing mountpoint then mirror it on the fly with balance. | |
btrfs device add -f /dev/sdb /media/usb1/ | |
btrfs balance start -dconvert=raid1 -mconvert=raid1 /media/usb1/ | |
# defrag | |
btrfs filesystem defragment /media/usb1/ | |
# df | |
btrfs fi df | |
#create btrfs snapshot | |
btrfs subvolume snapshot /mnt/edu /mnt/edu/snapshot-date-time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there,
I'm using your cheatsheet. Would you object terribly if I add it to the cheat repository https://github.com/chrisallenlane/cheat with attribution and some modification.