Solved: How to shrink BTRFS image
|
31st Mar, 2016, 01:29 AM
(This post was last modified: 31st Mar, 2016 01:31 AM by Nachteule.)
Post: #2
|
|||
|
|||
RE: How to shrink BTRFS image
You can do it while fs is mounted
First step: shrink FS btrfs filesystem resize 12G / Second step: remove swap partition swapoff -a and then remove this partition Third step: resize partition The trick is removing the existing one and create a new one with exactly the same start block and reduced size (16GB minus swap size minus boot part, take 15G Fourth step: create image make an 16GB image from this sd-card and write it back to your 16GB card Last step: fine tuning If system boots from your 16G card, you can do finetuning add swap partition and resize btrfs to max size All these steps I already did about one year ago |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
How to shrink BTRFS image - Skywatch - 31st Mar, 2016, 12:57 AM
RE: How to shrink BTRFS image - Nachteule - 31st Mar, 2016 01:29 AM
RE: How to shrink BTRFS image - Nachteule - 31st Mar, 2016, 01:42 AM
RE: How to shrink BTRFS image - Skywatch - 31st Mar, 2016, 02:11 AM
RE: How to shrink BTRFS image - Nachteule - 31st Mar, 2016, 02:41 AM
RE: How to shrink BTRFS image - Skywatch - 31st Mar, 2016, 04:49 AM
RE: How to shrink BTRFS image - Nachteule - 31st Mar, 2016, 10:25 PM
RE: How to shrink BTRFS image - Skywatch - 1st Apr, 2016, 03:45 AM
RE: How to shrink BTRFS image - Nachteule - 1st Apr, 2016, 03:57 AM
RE: How to shrink BTRFS image - IriDium - 1st Apr, 2016, 04:11 AM
RE: How to shrink BTRFS image - Nachteule - 1st Apr, 2016, 04:43 AM
RE: How to shrink BTRFS image - Skywatch - 1st Apr, 2016, 04:53 AM
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
Resize (shrink) Image the safest way? | Skywatch | 6 | 20,528 |
5th Apr, 2013 04:36 AM Last Post: zilexa |