This is a bit long but please bear with me. I have a Dell Inspiron laptop with Windows 10 pre-installed. I recently installed Ubuntu 19.04 alongside it by creating a partition in the disk(I chose the 'something else' option during the installation). After the installation completed, my computer booted straight into Windows which was a common problem. So I googled for solutions and stumbled upon this post on this site called 'ItsFoss'(link to the post: https://itsfoss.com/no-grub-windows-linux/) where they said the fix for the problem is this commmand in command prompt:
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
So I input this command and my computer boots straight to linux, still no GRUB menu! and now I'm unable to boot into windows at all.I am a 100% sure I didn't overwrite the Windows partitions while installing Ubuntu as I booted into Windows thrice after completing the Ubuntu installation, so no problems there.
My question is how do I bring up the GRUB menu.
Here's what I've tried:
1. Pressing shift during the boot-up doesn't bring up the GRUB menu
2. When i ran the command grub-install --version
i got grub-install (GRUB) 2.02+dfsg1-12ubuntu2
so that means GRUB is installed,so I thought probably GRUB is not recognizing windows boot, so it directly boots into Ubuntu and wont show the GRUB screen, and I proceeded to write this:
sudo -H gedit /etc/default/grub
and got this:
GRUB settings
Guides tell me i should find GRUB_HIDDEN_TIMEOUT=0
and add a # to make it a comment,but as you can see in the image, there is no such line present.
3. A similar answer on stackexchange(https://superuser.com/questions/1150534/how-to-boot-into-ubuntu-directly) also asks to do the same thing to GRUB_HIDDEN_TIMEOUT=0
Given the fact that all this happened because of some command in cmd, i am not comfortable putting another command in terminal unless I'm sure.
4. I have tried changing boot modes and the problem persists in both BIOS and UEFI, In the UEFI mode no OS is recognized at all
5. The secure boot is off.
I'm at my wits end here, please help
Hope this helps in some way
– big-mac-overflow Nov 11 '20 at 11:55