Warning: *** DO NOT do anything like this without a backup! ***
The situation:
Kubuntu 20.04 installed to a 15GB BTRFS partition.
After removing/cleaning as much as I could, I had only 6GB of available space.
The dist-upgrade to 22.04 required 10GB of free space.
The concerns:
There was no easy access to unused space on the drive as Windows had most of it.
Resizing and moving partitions is difficult, time consuming, and dangerous to your data.
One solution would have been to just wipe it and install 22.04, but this seemed like defeat.
Here's what I did instead:
Inserted a 64GB USB thumb drive into the computer.
When formatted with BTRFS the USB drive had 58GB of usable data space.
Added it to the existing BTRFS install partition with:
sudo btrfs add /dev/sdb1 /
This resulted in 64GB of free space on /
I then started the dist-upgrade and let it finish (about an hour)
After rebooting into the new 22.04 install, I removed the USB drive from the BTRFS with:
sudo btrfs remove /dev/sdb1 /
and rebooted again to verify all is well. I now have a 22.04 install with 4GB available!
Comment