Swapping the number of 2 partitions

Cameron Simpson cs at zip.com.au
Thu Oct 16 21:32:17 UTC 2014


On 16Oct2014 12:55, jd1008 <jd1008 at gmail.com> wrote:
>I am trying to avert having to dd out 2 partitions to external drive
>and repartition and dd them back in.
>
>What I am trying to do is renumber partition 1 as partition 2
>and partition 2 as partition 1.
>
>Is this possible? parted and fdisk and sfdisk do not seem to provide
>such operations.

sfdisk has a dump option. I would think you could dump the partition table and 
reorder the partition records and reload it. I can't see any reason that would 
not work.

Cheers,
Cameron Simpson <cs at zip.com.au>

What's fair got to do with it? It's going to happen.    - Lawrence of Arabia


More information about the users mailing list