It appears your umount is NOT successful and you are trying to make partitions on a 'mounted' device. Try to get the partition device totally unmounted, e.g., get rid of the swap file etc. and reboot. bun
Give more system info, like how big is your card, internal or external, N800 or N810, what system you are running etc.