Resizing partitions can take a LONG time (hours), and errors can happen.
Personally (I did something similar a few months ago), but used a different approach.
I used Clonezilla
to clone the partitions I wish to keep.Tutorialhttp://clonezilla.org/show-live-doc-con ... disk_image
Then use Gparted
to format the whole HD, then make all new partitions
to my liking. (Very quick)!
Restore the clones to the new partitions.End Product
Be aware that you can only restore a clone to a partition that is the same size or larger (never smaller).
Also you CAN restore to a different partition ( ie - sda4 to say sda 1, 2, whatever), but you have to go into the clone folder and rename wherever to the correct sda#)http://clonezilla.org/show-live-doc-con ... disk_image
In this case change sda7 to sda(new)
As a safeguard clone the original whole HD, just in case.
To recognize your new swap file, you have to get its new UUID (open gparted>information)
and edit your /etc/fstab
with the new swap UUID.
# /etc/fstab: static file system information.
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
UUID=c535e04d-bfaf-4308-8fa2-703d75246fa9 / ext4 rw,errors=remount-ro 0 1
UUID=123db9a1-0df1-47eb-86f4-7d64235d7e34 swap swap sw 0 0
This has worked perfectly for me twice (Linux OS's only), but with Windows?? Use at your own risk..