0

So here is the issue: I have a 500 GB Hard Disk in my laptop, currently I have linux (Debian 9) installed on it. Now I wanted to dual boot my laptop with Windows 10/8.1/7 in one of my 60GB unallocated space, but I can't install windows 10/8.1 in that unallocated space even after formating it as NTFS in gparted.

This is how my partitions looks like: gparted

You see the problem in it.?? I think the problem is that I have 1 extended partition containing 2 logical partitions, 1 is ntfs (DATA), 1 is ext4 (linux/root)...I want to change this so that i have at least one primary partition for windows.

The error that windows 10/8.1 gives me is during installation is: "We couldn't create a new partition or locate an existing one. For more information,see the setup log files." The solution on different forums for the issue is basically to delete my whole partitioning system and do clean install windows, but that will cost me around 200GB+ of important setup and other data.

So what I'm looking for is to instead of deleting my all partitions, I want to convert the free space or the logical partition into primary partition in order to install windows.

I tried fixparts to change the 60 GB logical partition into a primary partition, but it says it can't convert it into primary. Here is the screenshot: fixparts

You can see that the two partitions 5&6 can be converted but not the 7, which is the 60GB logical partition.

Also I tried to move the sda6 partition thinking maybe if i could have free location at the end sectors, then i might be able to create a primary partition, but then gparted gives me this error and says that i have to use chkdsk /f on windows to fix the partition and when i booted from a live windows dvd and tried the command there, it doesn't work either and gives strange errors.

I did tired different methods in the last two days, but no success.

My goal is to install windows along side linux, and it seems windows can't be installed inside an extended partition, so I need to create a primary partition for it

Any help would be appreciated. Thanks

  • You should be able to move sda5 up to abut with sda6, leaving the unallocated space at the start of sda1. You can then move the lower boundary of sda1 so that the unallocated space moves into the primary area. Both these operations can be done in a single run of gparted, which must be run from a live boot - you can't move a running partition. The other thing you must do is back up, preferably a full disc image, so that you can easily restore to your current bootable Debian system. Be prepared for it to be a slow process. You'll need boot-repair or similar after you install Windows. – AFH Sep 7 '18 at 14:53
  • The NT60 bootloader in Vista and up is able to boot from a logical partition. Only the NT52 bootloader suffers from that issue, so unless you're installing windows XP, it should be fine. And in my experience gparted is a lot more stupid and slower than other 3rd party partitioning software. It doesn't automatically resize logical partitions when creating or convert to primary partitions – phuclv Sep 7 '18 at 15:31
  • @AFH I did tried to move sda6 up so that i have enough space for creating primary partition, but sda6 is a ntfs partition and Gparted gives me the unknown file system error when try to move, and suggesting me to use windows OS and run the command chkdsk /f which i tried as well using a windows CD but didn't worked. I also tried Gparted live from my usb and the same happened **I can't move sda6 or any other partition, while the free space is being sandwiched between the two partitions. – shinwari_afg Sep 7 '18 at 15:58
  • @phuclv I'm trying to install windows 10 or 8.1,not XP or 7. – shinwari_afg Sep 7 '18 at 16:01
  • It was sda5 that I suggested moving, though I have successfully moved NTFS partitions with gparted. Maybe you haven't installed NTFS support - ls /bin/ntfs* should show a dozen or more programs. – AFH Sep 7 '18 at 16:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.