Upgraded my SSD. Installed Ubuntu 18.04 LTS. Need help in finding or creating Windows 10 bootloader/efi info.
This was my previous config:
My Laptop had both SSD and HDD.
On SSD (250GB):
|__Ubuntu 16.04 +
|__Bootloader (GRUB?) - shows both Ubuntu and Windows
On HDD (1TB):
|__Windows 10 (separate partition) +
|__all my files/code/projects (on a separate partition).
Grub menu showed option to boot from either Ubuntu or Windows.
My Current config:
- I now upgraded my SSD. Replaced the old one with a new 1TB SSD.
- I installed Ubuntu 18.04 on the new SSD. No issues here.
- Grub menu shows only Ubuntu, as expected.
- Windows 10 OS is still on HDD.
- Now, I just need to either find the existing Windows 10 bootloader or create a new one.
On SSD (1TB): (new one)
|__Ubuntu 18.04 +
|__Bootloader (GRUB?) - shows only Ubuntu
On HDD (1TB): (no change)
|__Windows 10 (separate partition) +
|__all my files/code/projects (on a separate partition).
I tried boot-repair on Ubuntu, and got the suggestions shown on this pastebin link.
I am worried about my files/code/projects which are on HDD. Dont want to loose them at any cost.
How do I safely enable booting into Windows 10 along with Ubuntu?
Few Queries:
I have few doubts:
1.
This is the part of the output from pastebin efibootmgr -v
cmd:
Boot0000* Windows Boot Manager HD(1,GPT,878eab28-346d-48ff-bcfb-75f03235beee,0x800,0xfa000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0001* ubuntu HD(1,GPT,d7ec3e6a-5b15-4e8e-9019-d424bb0cabe7,0x800,0x76800)/File(\EFI\ubuntu\shimx64.efi)
Looks like it seems to have found Windows boot manager and that it is in EFI mode (not Legacy).
But under Drive/Partition Info
section, it shows that sda is notGPT
. Seem to contradict the above info. What am I missing?
nvme0n1 : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
sda : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
It also seems to have found OSs in nvme0n1p3 (Ubuntu) and sda1 (Win).
nvme0n1p3 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios
sda1 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
Under Suggested Repair
I see:
The default repair of the Boot-Repair utility would purge (in order to remove grub-efi) and reinstall the grub2 of
nvme0n1p3 into the MBRs of all disks (except live-disks and removable disks without OS).
Can I go with this recommeded defaults?
3. It also says: "Grub-efi would not be selected by default because: legacy-win no-win-efi".
- Does this mean Windows 10 was loaded in Legacy mode and not UEFI mode?
- Or is it just that it didn't find the Windows EFI?
It also suggests "Please enable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware". Instead can I just convert Windows 10 to UEFI model from Legacy using mbr2gtp? But will I risk loosing all my files on HDD by doing this?
5. Didnt quite understand, what happens if I select this option: "Alternatively, you can retry after activating the [Separate /boot/efi partition:] option"
I guess most of the other info can be found on this link. Please let me know if you need any other info.
I would like to emphasize that not loosing my files on HDD is of higher importance than getting back my Win 10 install.
Also, would a fresh install of Windows make things easier instead of repairing my boot?
Additional Notes:
- I tried startup repair using Windows Recovery USB, but didnt work.
os-prober
on Ubuntu didnt return anything.update-grub
didnt fix it.- I got to know that I cannot mix Legacy boot option and EFI boot (https://help.ubuntu.com/community/UEFI). But I dont know if my Windows is on Legacy(MBR) or GPT.
- Rechecked my BIOS - it is on UEFI and Legacy is not enabled. It was like this from before and I didnt change it now.
- Secure boot is disabled.
Appreciate any help.
sudo update-grub
to add Windows to the Ubuntu boot menu. – C.S.Cameron Dec 05 '20 at 10:33sudo update-grub
while booted from Ubuntu? Have you looked at /boot/grub/grub.cfg to see if there is a Windows menuentry? – C.S.Cameron Dec 05 '20 at 13:08Dont remember since I had setup the system 3 years back.
OK, at least I am clear about this. So may be Windows was in fact in MBR/Legacy mode previously.
I guess, I will try this option and report back. BTW, for reinstalling, will the entire HDD be converted to UEFI? Or only the partition for Windows?
– nikhil.tiru Dec 05 '20 at 15:44