Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create partition of my Hard Disk but the partition contains Ubuntu installed in it. I have GParted installed but since the partition contains Ubuntu I can't unmount. Is there any way I can create partition without losing the files that I have and with ubuntu still lying there?

share|improve this question

marked as duplicate by minerz029, falconer, Eliah Kagan, mikewhatever, blade19899 Jan 13 '14 at 23:00

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.

possible duplicated – Braiam Jan 12 '14 at 16:53
Note that you must run GParted from a live CD/DVD/USB system‌​, like the system you used to install Ubuntu. – Eliah Kagan Jan 13 '14 at 15:41
up vote 3 down vote accepted

You need a live CD. Manipulating partitions can't be done while mounted unless you used LVM (and even then there could be some problems).

share|improve this answer
What is a live CD? How do I get it? Is it something that I could do with Pen Drive as a substitute to Live CD – Prakash Gautam Jan 12 '14 at 16:44
@PrakashGautam The LiveCD is the disk you would use to install Ubuntu. Yes you can use a USB/Pendrive as the live media as well as long as you have Ubuntu installed on it. You can download it from Here are the instruction on how to create a LiveUSB. Boot into the liveUSB then select "Try Ubuntu" then you can use gparted to resize the Ubuntu partition. Make sure you have backed up any data in the unlikely event that gparted errors. – TrailRider Jan 12 '14 at 16:51
I did exactly you did. But now I can't mount existing partition. Right Click>> Mount doesn't help either. – Prakash Gautam Jan 12 '14 at 17:59
@PrakashGautam you don't need to mount anything. Actually mounting stuff will get in the way. Just resize/move your partitions the way you like and reboot the system. – Braiam Jan 12 '14 at 18:06
I did shrink the partition but couldn't create new as it restricted of more than four partitions because I had very small partitions existing already. Now I've rebooted and want to move files out of already existing smaller partition but can't mount it. – Prakash Gautam Jan 12 '14 at 18:11

You can't able to resize or delete a partition using gparted if it was mounted.

You need a ubuntu live disk to unmount the partition where ubuntu is installed.

share|improve this answer
yes,you can create bootable ubuntu pendrive using unetbootin software. – Avinash Raj Jan 12 '14 at 16:47

Here are the steps:

  • Boot with Ubuntu Live CD/DVD/USB,

  • Start GParted, select the partition you want to resize (here, that would be your Ubuntu root partition), [if you have a swap partition, switch it off; also if you have some mounted partitions, an unmount might be necessary]

  • From the Partition menu select Resize/Move,


  • Drag the slider or specify the new size manually, and click the Resize/Move button,


  • Right click the unallocated space and select new,


  • Specify the partition type (primary, logical, extended), file-system type, and other if required/desired, (Set Align to "MiB") and click Add button,


  • Apply the operations.


[GParted in action screenshots]

share|improve this answer

You can use a pendrive by using Unetbootin from‎ Simply follow the instructions, then set the boot order of your computer to have usb first, then turn the pc off, then insert pen drive, and reboot, and it will boot from the pendrive and allow you to repartition the drive

share|improve this answer

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