Skip to content

Instantly share code, notes, and snippets.

@gsmitheidw
Last active March 19, 2017 16:16
Show Gist options
  • Save gsmitheidw/573881e17308ec31a005c4732e4a180a to your computer and use it in GitHub Desktop.
Save gsmitheidw/573881e17308ec31a005c4732e4a180a to your computer and use it in GitHub Desktop.
btrfs cheatsheet
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
@talwrii
Copy link

talwrii commented Mar 19, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment