Sample Header Ad - 728x90

Move partition only using CLI tools at same disk

3 votes
1 answer
4767 views
Need a help trying to get a question I couldn't find anywhere, and most solutions were outdated. Is there a CLI-only solution to move partitions between the same disk? "parted" used to have a function for that, but the feature was dropped at 2016 due unmaintainance. For this case, assume the partition format and data is "unknown" (non standard partition or encrypted), also assume the partition is considerably big and not possible to just create a secondary partition and clone with dd if=/dev/sda1 of=/dev/sda2 For easy understanding of the problem, assume there is a /dev/sda1 at the middle of the disk using ~70% of space. Thanks!
Asked by WalterCool (541 rep)
May 2, 2020, 08:29 PM
Last activity: Jan 20, 2023, 03:48 PM