This question already has an answer here:

GParted Software

I want to extract half of the space used by the sda1 that is being used by my Ubuntu 17 OS to Dual boot with windows.

Is there any safe way of doing this without losing any data?

marked as duplicate by Pilot6, karel, Eric Carvalho, Eliah Kagan, edwinksl Oct 19 '17 at 11:14

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.

  • This post is for expanding the partition. That is a simple task. My issue is of contracting the Partition @pomsky – Mayank Yadav Oct 16 '17 at 11:03
  • It's about resizing partitions. Did you check this answer askubuntu.com/a/166528? Or this askubuntu.com/a/237453? – pomsky Oct 16 '17 at 11:05
  • I agree with @pomsky in it is a duplicate. when in gparted you drag right to increase partition size; left to decrease size - so it directly answers your question as it allows for increasing or decreasing size. – guiverc Oct 16 '17 at 11:05
  • before resizing check out which partition you boot into such as sda2, sda3.. because removing or adding a partition will change partition order so you may end up with boot failure but it's fixable. – kenn Oct 16 '17 at 11:07
  • i have a single partition i.e. sda1 – Mayank Yadav Oct 16 '17 at 11:08

To resize a partition it must not be mounted. As you have only one partition you cannot resize it because your OS is on it. You can create a live CD/USB with GParted, boot from it and resize the partition -> https://gparted.org/livecd.php Backup all data on different disk before that!

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