0

Ok so forgive me as I'm new to Linux and don't fully understand the differences between EFI and UEFI and whatnot. Also saw a similar (same) question here but there were no answers and only vague comments.


I have a Ryzen 5 2500U laptop with a laptop BIOS (ig UEFI). Right now there are 3 boot options. Windows bootloader, Ubuntu (which is a remnant of an older installation (I think)), and something called Lupin. When Lupin is on the top and my external hard disk is connected (which has Ubuntu and another partition with some data on it (NTFS)) it asks me to boot into Ubuntu or to Windows. But my problem is that when I disconnect it, it just presents me with the GRUB command line thing and the only way I can boot into Windows is to go into the BIOS and change the boot priority.

I just want to configure it in a way that whenever I boot when my hard disk is connected, it should boot into Ubuntu. But when it is not, it should boot into Windows without hassle.

I have tried a boot repair program in a live Ubuntu USB but afaik it pretty much did nothing.

Also, I am a big n00b, so step-by-step instructions are much appreciated. Forgive any formatting as I'm new to Stack Exchange too.

This is the answer by oldfred. I vaguely get the intention, but have no idea how to accomplish it and what to search for.

If BIOS you just install grub to MBR of external drive and set BIOS to boot external first & Windows second. If UEFI bit more complicated as Ubuntu's Ubiquity installer will only install grub to internal drive and not partition an external with an ESP. So you must partition in advance and include an ESP. Then reconfigure grub after install or see this work around during install. Posted work around to manually unmount & mount correct ESP during install bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1396379 – oldfred

EDIT: Boot repair summary output: https://paste.ubuntu.com/p/jmc9Gf97gZ/

The Ubuntu installation is in an external USB hard drive (sdb) and sda is my internal SATA HDD.

Here is a pic of my BIOS:

BIOS

  • External Harddisk is a USB one or SATA or someother? The options for Ubuntu and Windows it is showing are Ubuntu inside this HDD and Windows on the Main System?? – PRATAP Dec 05 '20 at 03:17
  • Someone else's answer may not apply. Best to post link to Summary Report from Boot-Repair. Quote above is for an external drive install. Is that what you have or want? Must know if UEFI or BIOS as answers are different (report will show that). UEFI/gpt partitioning in Advance, new versions do not need swap partition: http://askubuntu.com/questions/743095/how-to-prepare-a-disk-on-an-efi-based-pc-for-ubuntu & https://askubuntu.com/questions/343268/how-to-use-manual-partitioning-during-installation & https://help.ubuntu.com/community/UEFI – oldfred Dec 05 '20 at 04:09
  • @oldfred Added the information you requested. Thanks for answering. Also, the answer I quoted was yours. What a coincidence! – hummusman Dec 05 '20 at 10:00
  • Your sdb drive is MBR, it would be better to be gpt partitioned. But that will erase it. So backup all data, particularly your NTFS partition. You may be able to convert with this: Converting to or from GPT - must have good backups. http://www.rodsbooks.com/gdisk/mbr2gpt.html Then use gparted to add an ESP - efi system partition to sdb. UEFI/gpt partitioning in Advance, new versions do not need swap partition: http://askubuntu.com/questions/743095/how-to-prepare-a-disk-on-an-efi-based-pc-for-ubuntu Then you may need to reinstall or at minimum reinstall grub. – oldfred Dec 05 '20 at 14:28

0 Answers0