This question already has an answer here:

enter image description here

I wanted to install ubuntu alongside windows but it formatted the disk completely, now I want to install windows alongside ubuntu, above is the link to present status of harddisk (gparted)

Please help me how to resize the partition and install windows, I am a complete newbie to linux/ubuntu as such.

marked as duplicate by NickTux, Alvar, Radu Rădeanu, Eric Carvalho, Avinash Raj Jan 5 '14 at 2:40

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.

  • see this askubuntu.com/questions/196125/… to resize lvm2-pv partition. – Avinash Raj Jan 4 '14 at 14:04
  • Thanks.. but the problem for me is its the same disk where ubuuntu is booted from and secondly the lvm partition is inside(sub-partition) of extended partition sda2 – Jagjeet Singh Thukral Jan 4 '14 at 14:41
  • boot ubuntu live-cd and try the above link. – Avinash Raj Jan 4 '14 at 14:44
  • It doesn't work... bcoz most of the commands are giving errors that the disk is being used even after unmounting – Jagjeet Singh Thukral Jan 5 '14 at 5:46

You have an tutorial here : http://www.howtogeek.com/114503/how-to-resize-your-ubuntu-partitions/ , did you try ?

Be carreful, nou need boot to live CD/USB

Else, you can try this : How can I resize an LVM partition? (i.e: physical volume)

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