I have installed ubuntu 12.04 alongside winxp on my laptop.
I'm trying to resize partitions (shrink winxp - enlarge ubuntu) running Gparted from LiveUSB. I read that I have to swapoff the linux-swap in order to resize the ubuntu partition.
However, when I try to swapoff I get the error:
Could not deactivate swap
swapoff: /dev/sda6: swapoff failed: Cannot allocate memory
I don't know how to proceed from here.
(note: linux newbie)
I somehow managed to swapoff linux-swap so there is now no partition with a lock icon. Didn't do anything different, it just happenned. Still, after shrinking my winxp partition, gparted won't let me drag the ubuntu partition to the left (where the newly created unallocated part is) to resize it:
WinXp partition | unallocated | ubuntu | linux-swap
*Note: I understand that by dragging the left handle and should the whole thing succeed, there will probably be a problem with the grub 2 boot screen. I have also come to understand that this can be easily fixed with some terminal commands via the liveUSB. Please correct me if I'm wrong.