I tried the alternative method shown here using boot-repair
after the system didn't detect at all the linux bootloader (only windows option and the disc only (which I don't know why it appears) were in the bios boot order options and in the boot menu). Now the BIOS detects the bootloader (ubuntu is added to the list), but in this minimal bash mode.
I have to type the following lines to make it show the usual splash screen, just as I customised it:
set root=(hd0, gpt5) (this is my root partition)
set prefix=(hd0, gpt5)/boot/grub
insmod normal
normal
Why do I have to type this every time I boot? How can I solve it? I also tried to use boot-repair to reinstall grub completly ticking the purge grub option, but it still doesn't work
EDIT: Requested info
~ ❯ sudo parted -l
Model: SSSTC CL1-4D512 (nvme)
Disk /dev/nvme0n1: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 274MB 273MB fat32 EFI system partition boot, esp
2 274MB 290MB 16.8MB Microsoft reserved partition msftres
3 290MB 262GB 262GB ntfs Basic data partition msftdata
5 262GB 510GB 248GB ext4 (Unlabelled root)
6 510GB 511GB 629MB fat32 (Unlabelled boot) boot, esp
4 511GB 512GB 1049MB ntfs Basic data partition hidden, diag
sudo cat /boot/efi/EFI/ubuntu/grub.cfg
cat: /boot/efi/EFI/ubuntu/grub.cfg: No such file or directory (this doesn't look good)
~ ❯ sudo ls /boot/efi/EFI
BOOT Linux pop Pop_OS-4ce634ae-abfa-41e3-8b20-28dabe16a83d systemd
~ ❯ sudo mount /dev/nvme0n1p6 /mnt
~ ❯ sudo ls -R /mnt
/mnt:
BootInfo boot-sav EFI loader 'System Volume Information'
/mnt/BootInfo:
FD
/mnt/BootInfo/FD:
sda
/mnt/BootInfo/FD/sda:
/mnt/boot-sav:
nvme0n1p1 nvme0n1p3 nvme0n1p4
/mnt/boot-sav/nvme0n1p1:
/mnt/boot-sav/nvme0n1p3:
/mnt/boot-sav/nvme0n1p4:
/mnt/EFI:
BOOT Linux pop Pop_OS-4ce634ae-abfa-41e3-8b20-28dabe16a83d systemd
/mnt/EFI/BOOT:
bkpbootx64.efi bootx64.efi fbx64.efi grubx64.efi mmx64.efi
/mnt/EFI/Linux:
/mnt/EFI/pop:
BOOTX64.CSV grub.cfg grubx64.efi mmx64.efi shimx64.efi
/mnt/EFI/Pop_OS-4ce634ae-abfa-41e3-8b20-28dabe16a83d:
cmdline initrd.img initrd.img-previous vmlinuz.efi vmlinuz-previous.efi
/mnt/EFI/systemd:
systemd-bootx64.efi
/mnt/loader:
entries loader.conf random-seed
/mnt/loader/entries:
Pop_OS-current.conf Pop_OS-oldkern.conf
'/mnt/System Volume Information':
~ ❯ sudo mount /dev/nvme0n1p1 /mnt
~ ❯ sudo ls -R /mnt
/mnt:
'$RECYCLE.BIN' BOOT EFI 'System Volume Information'
'/mnt/$RECYCLE.BIN':
desktop.ini
/mnt/BOOT:
BOOT.SDI
/mnt/EFI:
Boot Microsoft pop UpdateCapsule
/mnt/EFI/Boot:
bkpbootx64.efi bootx64.efi fbx64.efi grubx64.efi mmx64.efi
/mnt/EFI/Microsoft:
Boot Recovery
/mnt/EFI/Microsoft/Boot:
BCD bootmgfw.efi da-DK es-ES fr-CA ja-JP kd_02_15b3.dll kd_07_1415.dll lt-LT pl-PL ro-RO sv-SE zh-TW
BCD.LOG bootmgr.efi de-DE es-MX fr-FR kd_02_10df.dll kd_02_1969.dll kd_0C_8086.dll lv-LV pt-BR ru-RU tr-TR
BCD.LOG1 BOOTSTAT.DAT el-GR et-EE hr-HR kd_02_10ec.dll kd_02_19a2.dll kdnet_uart16550.dll memtest.efi pt-PT sk-SK uk-UA
BCD.LOG2 boot.stl en-GB fi-FI hu-HU kd_02_1137.dll kd_02_1af4.dll kdstub.dll nb-NO qps-ploc sl-SI winsipolicy.p7b
bg-BG cs-CZ en-US Fonts it-IT kd_02_14e4.dll kd_02_8086.dll ko-KR nl-NL Resources sr-Latn-RS zh-CN
/mnt/EFI/Microsoft/Boot/bg-BG:
bootmgfw.efi.mui bootmgr.efi.mui
/mnt/EFI/Microsoft/Boot/cs-CZ:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/da-DK:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/de-DE:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/el-GR:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/en-GB:
bootmgfw.efi.mui bootmgr.efi.mui
/mnt/EFI/Microsoft/Boot/en-US:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/es-ES:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/es-MX:
bootmgfw.efi.mui bootmgr.efi.mui
/mnt/EFI/Microsoft/Boot/et-EE:
bootmgfw.efi.mui bootmgr.efi.mui
/mnt/EFI/Microsoft/Boot/fi-FI:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/Fonts:
chs_boot.ttf jpn_boot.ttf malgun_boot.ttf meiryo_boot.ttf msjh_boot.ttf msyh_boot.ttf segmono_boot.ttf segoe_slboot.ttf
cht_boot.ttf kor_boot.ttf malgunn_boot.ttf meiryon_boot.ttf msjhn_boot.ttf msyhn_boot.ttf segoen_slboot.ttf wgl4_boot.ttf
/mnt/EFI/Microsoft/Boot/fr-CA:
bootmgfw.efi.mui bootmgr.efi.mui
/mnt/EFI/Microsoft/Boot/fr-FR:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/hr-HR:
bootmgfw.efi.mui bootmgr.efi.mui
/mnt/EFI/Microsoft/Boot/hu-HU:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/it-IT:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/ja-JP:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/ko-KR:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/lt-LT:
bootmgfw.efi.mui bootmgr.efi.mui
/mnt/EFI/Microsoft/Boot/lv-LV:
bootmgfw.efi.mui bootmgr.efi.mui
/mnt/EFI/Microsoft/Boot/nb-NO:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/nl-NL:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/pl-PL:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/pt-BR:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/pt-PT:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/qps-ploc:
memtest.efi.mui
/mnt/EFI/Microsoft/Boot/Resources:
bootres.dll en-US
/mnt/EFI/Microsoft/Boot/Resources/en-US:
bootres.dll.mui
/mnt/EFI/Microsoft/Boot/ro-RO:
bootmgfw.efi.mui bootmgr.efi.mui
/mnt/EFI/Microsoft/Boot/ru-RU:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/sk-SK:
bootmgfw.efi.mui bootmgr.efi.mui
/mnt/EFI/Microsoft/Boot/sl-SI:
bootmgfw.efi.mui bootmgr.efi.mui
/mnt/EFI/Microsoft/Boot/sr-Latn-RS:
bootmgfw.efi.mui bootmgr.efi.mui
/mnt/EFI/Microsoft/Boot/sv-SE:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/tr-TR:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/uk-UA:
bootmgfw.efi.mui bootmgr.efi.mui
/mnt/EFI/Microsoft/Boot/zh-CN:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Boot/zh-TW:
bootmgfw.efi.mui bootmgr.efi.mui memtest.efi.mui
/mnt/EFI/Microsoft/Recovery:
BCD BCD.LOG BCD.LOG1 BCD.LOG2
/mnt/EFI/pop:
grubx64.efi shimx64.efi
/mnt/EFI/UpdateCapsule:
CapsuleUpdateFile1000.bin
'/mnt/System Volume Information':
AadRecoveryPasswordDelete ClientRecoveryPasswordRotation IndexerVolumeGuid WPSettings.dat
'/mnt/System Volume Information/AadRecoveryPasswordDelete':
'/mnt/System Volume Information/ClientRecoveryPasswordRotation':
UPDATE: Nevermind, the computer died again (not because of me, the motherboard broke for the second time and I hope I can get the whole thing replaced). Thanks to the ones that tried to help me