This question already has an answer here:

While installing ubuntu 18.04 I didn't partition my hard disk. Now my hard disk is a single partition /dev/sda2. I have tried to resize this partition but i'm getting the error saying system busy.

Is there any way I can partition my hard disk without losing data?

marked as duplicate by karel, wjandrea, user68186, user535733, N0rbert Sep 13 '18 at 20:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • While installing Ubuntu have you selected "Erase Disk and Install" option? Or something else option? It is possible if you boot with live session. Taking backup is highly recommended when you do this. Use GParted from live session to do it. – PRATAP Sep 13 '18 at 16:11

You can't resize a partition while it is mounted. To get around this you can boot from a Live usb, then open a tool like gparted to resize the partition

Not the answer you're looking for? Browse other questions tagged or ask your own question.