0

My laptop had Windows 10 installed from factory and has a 1 TB HDD. I recently downloaded Ubuntu 18.04 (LTS) from the net and installed it alongside Windows creating a partition as follows:

  • disk 0 :700 GB NTFS
  • disk 1 : 16 GB swap area
  • disk 2 : 299 GB ext4

I installed Ubuntu onto disk 2 and successfully ran Ubuntu. However, when I restarted the computer the third time with my bootable USB stick inserted, it did not go to the purple OS selection page but went back to the Try Ubuntu without installing or Install Ubuntu page.

I decided to re-install Ubuntu so I opened Windows and formatted disk 1 and 2 and extended disk 0. I then restarted Windows while pressing down Shift which opened a blue screen where I opened command prompt and wrote the following:

bootrec /fixmbr 
bootrec /fixboot 

The first command ran successfully but the second command said Access is Denied. I have no idea why I was doing this but I saw a tutorial saying I needed to do this.

I tried to fix it and so I did a diskpart(?) and assigned a name to the EFI directory and changed the file system to FAT32, but it was still not fixed. I realised, however, that I could install Ubuntu again without doing this.

So I installed Ubuntu successfully (this time with 800 GB in disk 0, 16 GB in disk 1 and 199 GB in disk 2) and can run Ubuntu but I don't have the option to boot onto Windows. BIOS shows I have only one OS - Ubuntu. I can access the files in the disk 0 partition from Ubuntu so I still have my files intact.

Is there a way to install Windows to disk 0 again without formatting the disk?

damadam
  • 2,833
  • Why don't you have just try to remove the USB stick instead of reinstalling ubuntu at 1st? You just had configured your MBR (Master Boot Record, which define boot priority) where your BIOS is looking on USB devices before internal disks (HDD or SSD) – damadam Dec 05 '19 at 10:38
  • Have you looked at some of the more obvious threads to start off? https://askubuntu.com/questions/221835/how-do-i-install-ubuntu-alongside-a-pre-installed-windows-with-uefi Amongst the ones that may yield a clue second time around. I can see you have tried a few times already. Can you tell us a bit more about your motherboard and bios settings? (I'm unable to prod via a comment, so sorry, this is not an actual answer) – Conrad B Dec 05 '19 at 10:03

0 Answers0