0

I tried dual-booting Ubuntu and Windows 10, however the GRUB menu wasn’t loading, presumably because I have Alienware OS which interferes with it, so I ran:

bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
  • Now my computer won’t boot either OS normally on UEFI. I switched the booting mode from UEFI to Legacy, which let me boot an old version of Ubuntu I had installed previously.
  • I tried using the method that was given in a comment and it seems I'm getting an error when trying to use sudo:
    Here is the error that I got when I tried to sudo add

How can I reverse that command using the Linux terminal?

5
  • This answer may help
    – JW0914
    Commented Mar 13, 2021 at 13:11
  • @JW0914 Thank you for the help but when I tried to run each command, I ran into some errors. 404 Not Found IP
    – JustJie
    Commented Mar 14, 2021 at 2:31
  • Please add the terminal error output to your question (it does require internet access), as this has to be fixed from Linux (doing so from Windows will destroy GRUB boot). CSM [legacy] boot mode should not be used, as its only purpose was to allow distro installs that didn't support EFI boot pre-2017ish (i.e. all distros now support EFI boot, so CSM [legacy] mode should remain disabled - UEFI is 64bit, CSM mode emulates BIOS' 16bit architecture via 32bit, resulting in booting going from ~10s to ~45s) If an OS was installed w/ CSM mode disabled, it will generally not boot w/ CSM mode enabled.
    – JW0914
    Commented Mar 14, 2021 at 12:12
  • @JW0914 Got it. Just added the terminal error output in my description.
    – JustJie
    Commented Mar 14, 2021 at 22:17
  • Use a search engine to google the error
    – JW0914
    Commented Mar 15, 2021 at 12:05

0

You must log in to answer this question.

Browse other questions tagged .