How do I resize a btrfs filesystem to the minimum possible size in a single step?
I only want to dd
the smallest amount of data possible, and want to use dd
since btrfs send
is progressively slower the more snapshots there are.
btrfs filesystem resize
has a max
argument, but no min
argument.
If I try to resize more than the free space available, I get a message like:
ERROR: unable to resize '/media/backup-alt': No space left on device
I've been progressively resizing downwards in steps of decreasing size (eg passing arguments -128G
-64G
, -32G
, ...) but this is a time consuming convergence on a solution.
Is there a way to shrink to minimum in a single step?