Head_on_a_Stick - Thank you very much, you solved my problem
I first tried as you suggested, and performed the
bcdedit command, but this time using lowercase for debian. I restarted the computer, but unfortunately, it went to booting windows again.
I then followed through the steps you provided. My
bootmfgw.efi was in a different location than you suggested but I was able to figure it out by opening
nautilus /dev/sda1Here is a copy of my entries from terminal.
simon@HP-X360:~$ mount /dev/sda1 /mnt
mount: only root can do that
simon@HP-X360:~$ sudo mount /dev/sda1 /mnt
simon@HP-X360:~$ cp /mnt/EFI/Microsoft/bootmgfw.efi{,.bak}
cp: cannot stat '/mnt/EFI/Microsoft/bootmgfw.efi': No such file or directory
simon@HP-X360:~$ sudo nautilus /dev/sda1
** (nautilus:2029): WARNING **: 23:08:35.702: Unable to get contents of the bookmarks file: Error opening file /root/.gtk-bookmarks: No such file or directory
^C
simon@HP-X360:~$ cp /mnt/EFI/Microsoft/Boot/bootmgfw.efi{,.bak}
cp: cannot create regular file '/mnt/EFI/Microsoft/Boot/bootmgfw.efi.bak': Permission denied
simon@HP-X360:~$ sudo cp /mnt/EFI/Microsoft/Boot/bootmgfw.efi{,.bak}
simon@HP-X360:~$ sudo cp /mnt/EFI/debian/grubx64.efi /mnt/EFI/Microsoft/Boot/bootmgfw.efi
simon@HP-X360:~$ sudo nano /boot/grub/custom.cfg
simon@HP-X360:~$ sudo nano /boot/grub/custom.cfg
simon@HP-X360:~$ sudo nautilus /dev/sda1
** (nautilus:2114): WARNING **: 23:12:49.757: Unable to get contents of the bookmarks file: Error opening file /root/.gtk-bookmarks: No such file or directory
^C
simon@HP-X360:~$ sudo blkid
/dev/sda1: UUID="8CAE-E7EB" TYPE="vfat" PARTLABEL="sda1 - EFI" PARTUUID="041dbf90-92cc-4b19-b0bb-89ccf64084c1"
/dev/sda3: LABEL="Windows 10" UUID="06723A41723A35B1" TYPE="ntfs" PARTLABEL="sda3 - Windows 10" PARTUUID="6a82e000-fded-47cb-8038-d8473743df3f"
/dev/sda4: LABEL="Elementary" UUID="a1f7d01d-91b7-4b08-85e7-69ac72fabb52" TYPE="ext4" PARTLABEL="sda4 - Elementary" PARTUUID="d326b1ba-a74c-4580-af2a-12e7a0f691bf"
/dev/sda6: LABEL="Windows RE tools" UUID="ECF8B1E1F8B1AA6A" TYPE="ntfs" PARTLABEL="sda6 - Windows RE Tools" PARTUUID="ef33b516-2e42-409d-b518-aa467cd03a38"
/dev/sda7: LABEL="RECOVERY" UUID="98D4C6C6D4C6A63A" TYPE="ntfs" PARTLABEL="sda7 - HP Recovery" PARTUUID="70e6d463-2315-43eb-8c1a-c07679ea38d6"
/dev/sda8: LABEL="Debian" UUID="d63f60dc-8071-4bca-8bbc-f6e12a8617f0" TYPE="ext4" PARTLABEL="sda8 - Debian" PARTUUID="036b1a85-f238-4f13-823b-2cbc5c203568"
/dev/sda9: LABEL="Linux-Shared" UUID="722354ff-0b40-48cf-a216-d0234f49a027" TYPE="ext4" PARTLABEL="sda9 - Linux Shared" PARTUUID="12338744-674a-4ae6-a75d-fa79f139095f"
/dev/sda10: UUID="5ce96ea1-da8a-46ed-a3f1-d1d2214732c7" TYPE="swap" PARTUUID="3b21eed8-4332-44d5-a698-1775ab31ca74"
/dev/sda11: LABEL="Linux Mint" UUID="612e050e-f46b-4120-8d1a-869e3f82d0b7" TYPE="ext4" PARTLABEL="sda11 - Linux Mint" PARTUUID="5a3d6491-1be1-4ccc-8eb6-52151f96e529"
/dev/sda2: PARTLABEL="sda2 - Microsoft Reserved" PARTUUID="d5b4e36a-5a0f-432f-8036-ec42aad6d5cc"
simon@HP-X360:~$ sudo nano /boot/grub/custom.cfg
simon@HP-X360:~$ sudo nano /boot/grub/custom.cfg
simon@HP-X360:~$ sudo rebootAfter the rebooot, it went straight to debian bootloader.
I can't believe, it is fixed. Thank you so much, this has problem has been bugging me for so long.
Thank you for your time, and have a great day,
Simon