GPT > Partition2 > LUKS > btrfs
I need some additional space for my boot volume, so far I did:
- Shrink my btrfs volume by 250MB.
btrfs resize -250M /
- Shrink the LUKS root volume
cryptsetup resize --size sector_calc luks_mapper_desc_root
How to actually move the whole LUKS container back by 250MB? (without using a secondary disk, so I guess this excludes dd
)
- Future steps: Delete GPT Partition 1 and 2 and create the first bigger and the second one with a higher start sector and less spanning sectors.
dd
indeed doesn't know about overlap if you doif=/dev/sdx1 of=/dev/sdx1 seek=(equivalent of 250M blocks)
. You can do that kind of stuff callingdd
multiple times from a script starting from the back with 250Mb blocks at a time, the overhead of starting dd is probably minimal compared to the actual reading+write.dd_rescue
knows--reverse
.