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
  • 107,489
  • What happens if you boot Ubuntu from the live DVD/USB and then use GParted which is on the live DVD/USB by default to create an NTFS partition on the disk to install Windows? – karel Mar 30 '15 at 17:23
  • @Rajashekaran you can run boot-repair after Windows install – Mudit Kapil Mar 30 '15 at 17:37
  • 1
    Are you showing a bios_grub partition? If so then you have gpt partitioning and Windows only boots in UEFI mode from gpt partitioned drives. And the bios_grub partition is used by Ubuntu to boot in CSM/BIOS mode from a gpt drive. Is system newer UEFI or older BIOS only? – oldfred Mar 30 '15 at 17:57

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
  • 107,489
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