Dear All.There is a good package for partition management with GUI too !. In the other hand Nano Pi 2 has 2 slots for SD cards so you can put the SD card for partitioning in the second slot and unmount it simply with no error.

Try installing gparted : $ sudo apt-get install gpartedafter installation you can run it by command gparted in terminal window and do your favor!