1

I would like to install windows on my system on which I have installed Ubuntu already.I went through a couple of previous answers but I understand that the first thing is to create a partition on the disk to install Windows. I use GParted but I am not able to create a new partition. I am attaching a screen shot .

Screenshot

I want to partition the /dev/sda2 drive as only it has considerable space.

Byte Commander
  • 110,243

2 Answers2

1

First of all, /dev/sda2 is not a drive but a partition!
To be more exact, it is the main partition of your Ubuntu installation (mount point / = file system root directory).

It seems like you want to resize the partition sda2 to get free space for installing Windows. This is not possible from within your running Ubuntu session because ext4 volumes can't be reduced in size while they're mounted. And you can't unmount your main partition. You see that it is mounted because of the key symbol next to the name in the table.

Therefore you have to boot from a live system (boot from the DVD/USB you used to install Ubuntu and select "Try Ubuntu" in the menu) where no disk partition gets mounted. Then you can use GParted and resize the partition. I recommend you to only move the right partition border to avoid getting boot problems.

I assume you better do not create partitions for Windows but leave the unpartitioned/unallocated space as it is. But this part is not on topic here on AskUbuntu...

Byte Commander
  • 110,243
0

Please install windows first, then install Ubuntu. What actually happens is when you install windows, NTLDR(Windows boot loader) tries to replace grub(Linux boot loader). And then Ubuntu partition is unable to start. So either you have to fix the grub issue or follow the process of installing windows first and then chose a partition to install Linux.

Installing Ubuntu Alongside a Pre-Installed Windows with UEFI