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

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.

share|improve this question

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

This question was marked as an exact duplicate of an existing question.

see this… 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 : , 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)

share|improve this answer
Thanks.. but gparted does not shrink a lvm partition..i have already tried this step but to no avail.. – Jagjeet Singh Thukral Jan 5 '14 at 5:44
Try this :… – Nymeria Jan 5 '14 at 11:18

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