Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now
2 Add reason for wanting to do this
source | link

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?

How do I resize a btrfs filesystem to the minimum possible size in a single step?

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?

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?

1
source | link

Resize btrfs filesystem to the minimum size in a single step

How do I resize a btrfs filesystem to the minimum possible size in a single step?

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?