I started with
sda1 windows restore
sda3 extended
sda5 swap
sda6 /mandriva
sda7 /SUSE 11.3
sda8 /SUSE 11.2
I then made some changes with gparted (from PartedMagic 5.5) to create an ntfs partition to simulate a condition where someone may want to delete that partition and use the free space for linux. I then deleted that partition, sda2 then sda5 (swap) and taking some screenshots, went about resizing partitions to use that free space and then recreate swap. the intention being to create a basic guide on how to go about this.
I have previously only had my swap at the end of the extended partition, deleting it and recreating it later had caused little trouble.
I realize that a resize/move operation would have been a better choice.
What I was not expecting was the partition number changes that occurred.
root@PartedMagic:~# fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x29b985ee
Device Boot Start End Blocks Id System
/dev/sda1 63 17237744 8618841 12 Compaq diagnostics
/dev/sda3 17238016 156301311 69531648 f W95 Ext'd (LBA)
/dev/sda5 19341312 37142527 8900608 83 Linux
/dev/sda6 37144576 59772927 11314176 83 Linux
/dev/sda7 59774976 156301311 48263168 83 Linux
/dev/sda8 17240064 19339263 1049600 82 Linux swap / Solaris
Partition table entries are not in disk order
Is this normal, or have I managed something that would usually take some determined effort?
Clearly this leaves nothing bootable.
I can fix it ,but is there a way to change those partition numbers back, if there is, that would have to be less of a headache