Score:0

Creating a partition to install windows

us flag

I have a Dell Inspiron 15 5000. It came with Windows 10 and I have installed Ubuntu 20 without formatting and partitioning.

Now I would like to put back Windows 10 because this is a company laptop. I have created a bootable USB with Windows 10. I am booting from the USB and the Windows setup is started. I am stuck on the below screen where there is no drive to install Windows.

enter image description here

I have an idea that I have to create a partition of format NTFS, but I am not sure if that is the right way and I do not want to damage the disk. Within the existing Ubuntu OS, I can see a partition that I think I can format, see screenshot below.

enter image description here

I am not sure how to continue, I need some guidance. I do not need any files from the Ubuntu OS, I would like to clean it and install Windows.

Edit

Is this the right way to format the disk?

enter image description here

cn flag
Ray
So, this computer had Windows and then you put Ubuntu on. Now, you want to erase Ubuntu completely and put Windows back? There isn't anything you could do that would "damage the disk". That is, you can try one partition type and if that doesn't work, try another. Trying many things would not "damage the disk". It will obviously destroy your data, but since you're willing to have all of it wiped, then there is no harm. If the disk is "destroyed", then that's from normal wear and tear... (i.e., it was dying anyway)
cn flag
Ray
Creating an NTFS partition might be the right way to go. However, I wonder if erasing all partitions and giving it a blank disk (i.e., the same condition as if you bought a disk brand new) would prompt Windows to format it properly. You're using a Windows installation CD/DVD?
teebo avatar
us flag
@Ray I have downloaded a Windows 10 ISO and made a USB bootable with it
teebo avatar
us flag
@Ray so from the free space that is highlighted in orange in the attached image, should I format that? and how much space should I give it?
cn flag
Ray
Just to check I'm understanding you correctly -- you want to erase everything you had on the hard disk, right? You are removing Ubuntu? If so, you should give it everything on the hard disk -- there is no reason to give it less that what is available. Or am I misunderstanding something?
teebo avatar
us flag
@Ray yes you got me right, OK I see, so looking at the second screenshot I have, I can format the orange section volume of the disk to NTFS and then what would be the next step? Will I then reboot to the USB and then start the Windows setup I should be able to continue from there?
cn flag
Ray
So, forget Ubuntu for a moment. If you built a computer from scratch, you would put in a newly purchased hard disk into the computer. A hard disk with no partitions at all. Then you boot up the USB and...Windows should install? Why don't you give it a try... I don't know if it'll work but given you have no concerns in terms of data loss, try anything and if that doesn't work, try something else...
karel avatar
sa flag
Does this answer your question? [How can I install windows 7 over ubuntu?](https://askubuntu.com/questions/339727/how-can-i-install-windows-7-over-ubuntu)
Pilot6 avatar
cn flag
Does this answer your question? [How to remove Ubuntu and put Windows back on?](https://askubuntu.com/questions/133533/how-to-remove-ubuntu-and-put-windows-back-on)
oldfred avatar
cn flag
Just be sure to use gpt partitioning & boot in UEFI boot mode as your Product Key is in the UEFI and only works in UEFI boot mode. Windows also wants multiple partitions in UEFI mode, so best to just let it install to unallocated space. https://msdn.microsoft.com/en-us/library/windows/hardware/dn898510%28v=vs.85%29.aspx#RecommendedPartitionConfigurations
Score:2
ng flag

Just format the disk and don't create any partitions.

Choose the whole disk on the left side of the Disks application and then from the drop down choose "Format" and when it asks for the partition scheme, choose GPT. That's all you need to do.

Since the Windows installer will need to create several partitions it's better if the disk is totally empty.

teebo avatar
us flag
I have updated the question with a screenshot under the Edit section. Is that the right way to format it?
Nmath avatar
ng flag
Yes that is correct
teebo avatar
us flag
There's an error with unmounting filesystem when trying to format
Nmath avatar
ng flag
Probably because you've already been working on it. Reboot and try again
Score:0
us flag

The answer above was very helpful to solving this. One step that was missing was that I could not format the disk because it was being used. What I had to do was to create another bootable USB with Ubuntu and instead of installing it, I have selected "Try Ubuntu", once I was in Ubuntu, I then started the gparted application and I was able to format the disk.

After that, I still could not see the partition in the Windows installation setup.

What solved the issue was to change some settings in the BIOS setup > Storage>

Instead of having select RAID on I switch it to AHCI/NVMe . enter image description here

I don't even know what that means.

I am assuming the selection was changed by Ubuntu automatically when I first removed Windows and installed Ubuntu. After this I could see the partition in the Windows setup. I had to format it and create a new volume of the maximum disk size to be able to continue with the setup.

JFTR Downloading RAID drivers and having theM extracted driverfolders in the root of the Windows bootable USB could not solve the issue.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.