I’ve seen this post: GRUB starts in command line after reboot
I installed Ubuntu 20.04 LTS on my laptop which was originally running Windows 10. I wanted to replace windows completely, not dual boot, so used the erase disk option. (Though while installing I think it said I had no os installed? Possibly because I had to switch from RST to AHCI)
It wasn’t giving me the option to boot to Ubuntu so I used Boot Repair to try and fix it but now it just boots to the grub command line. I tried reinstalling Ubuntu to fix it. I can’t find the grub folder to carry out the fix given in the above question.
In my /efi/ folder I have Microsoft/ Boot/ ubuntu/
ls (hd0,3)
shows all my windows folders (E.g. Program Files and Users)
I don’t understand why all my windows stuff is still there. Any help would be appreciated, I’m a complete novice with this.
I’m using an ASUS Vivobook. I didn’t take note of the Boot Repair output the first time but I tried it again and here’s the output: http://paste.ubuntu.com/p/gCHNhNBVGk/
Edit: Seen this is the paste above
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi
Tried to change back to RST, boot windows and do this but get
error: file /efi/Microsoft/Boot/bootmgfw.efi not found
Changed back to AHCI and it booted to windows automatic repair, so went to command line and entered command. Got
The boot configuration data store could not be opened. The requested system device cannot be found.
Edit2:
After following below, the system just boots to the BIOS Utility, even after manually partitioning and installing to the harddisk.
Looking at GParted, I get some errors
I ran Boot Repair again (http://paste.ubuntu.com/p/3KpVBRfsSG) and it now loads into the grub command line again and Ubuntu is back as a boot option in the BIOS Utility.
Edit3: Finally fixed! Ran the following in the grub command
set root=(hd0, 4)
set prefix=(hd0, 4)/boot/grub/
insmode normal
normal
Fingers crossed it continues to work after shutdown. Still a bit worried about the GParted errors though.
Edit 4: GParted errors don’t show up when on installation (instead of try Ubuntu). I have to enter the above commands each time I turn on my laptop. I tried running the following but still had to enter the commands
sudo grub-install /dev/sda
sudo apt-get update
# to update grub
sudo apt-get upgrade
Running update-grub outputs (among other things)
Found Ubuntu 20.04.1 LTS on /dev/nvme0n1p2 Is it still trying to boot from nvme instead of sda then?
Actually this one is for X510UA, I don’t know if there’s a difference?: https://www.asus.com/Laptops/ASUS-VivoBook-15-X510UA/HelpDesk_Download/
– Clio L Oct 27 '20 at 00:45Would this fix the issue do you think?
– Clio L Oct 27 '20 at 12:40