Repartitioning /data partition
If you want to modify any partition, reboot into a custom recovery.

Most partitions are in use whenever a normal system is running. You can't play around with them unless you are in an alternative system, like recovery.

BTW, almost anything that runs OK in Android also runs well in recovery, so simply go ahead.



Can you resize C:\ in Windows without rebooting?