I'm quite new to Linux in general and wanted to try it out. I have Acer Aspire Nitro - 16GB RAM, Core i7, 2 hard discs - 128 GB SATA and 1 TB HDD.
On the SATA disc I would like to install Windows 10 and on the HDD - Ubuntu.
The SATA disc (Disk 0) is converted to GPT and the HDD disk (Disk 1) is MBR. This I did using the cmd diskpart command.
BIOS info : UEFI mode is enabled. Secure boot is also enabled with no option to be disabled. Quick boot disappear as option in UEFI mode.
What i did so far:
Pre-install: formatted the two hard disks
Installing Win:
- Changed the boot order in BIOS - 1.USB, 2.Disk0 (SATA), 3.Disk1 (HDD)
- Selected the SATA disk for installation
- Done - now I have Disk0 split in 3 - Recovery Partition, C, System Reserved
Installing Ubuntu:
- Changed the boot order in BIOS - 1.USB, 2.Disk1 (HDD), 3.Disk0 (SATA), 4.Win Boot Manager
- In the installation menu - Select something else
- Ubuntu detects that I have Win installed in dev/sda so I can see the different partitions. The HDD is labeled dev/sdb. From that free space I create:
- Swap partition - Primary, 20GB
- Root partition - Logical, 20GB, mounted to /
- Home partition - Logical, 400GB, mounted to /home
- Fat32 partition mounted to /windows, 20GB
- EFI boot partition - Primary, 200 MB
Device for boot loader installation : dev/sdb WDC bla-bla (1TB)
using these tutorials: How to use manual partitioning during installation? and https://help.ubuntu.com/community/UEFI#Creating_an_EFI_System_Partition
What I expected : To my understanding I expected to have two EFI boot partitions - one per disk. Disk0 boots windows, Disk1 boots Ubuntu. Since the boot order is unchanged at this stage - I expect HDD to boot first, then the GRUB boot loader to show up so I could choose which OS to run.
What I got: Straightforward Windows run. When I press F12 I see two options
- Windows Boot Manager(TS128GMTS800)
- ubuntu(TS128GMTS800)
The TS128GMTS800 is the model of the SATA disk. So it happens that I have one EFI boot loader in SATA that runs both Win and Ubuntu.
What actually happened here? Where is the GRUB loader ? How can I get Ubuntu without relying on F12 every time?
I'm not sure if I miss something during installation... (prob lots of reading on the partition/OS subject but that unfortunately comes with experience)
Some shots from GParted might reveal additional problems of the installation
Screenshot (dev/sda = SATA, dev/sdb = HDD)
As you can see dev/sdb3 is not mounted to boot/efi but at the same time it has boot and esp flags. This is actually the partition I selected as EFI boot partition during the Ubuntu installation and find it strange it was not mounted..
bcdedit
, andeasyuefi
don't permanently change your boot order, then your firmware is defective and you must use the file-renaming hack -- or better yet, if possible, return the defective computer to the store and get one that works. – Rod Smith Apr 08 '17 at 13:51/dev/sda2
, not/dev/sdb3
. Also, your Ubuntu disk uses MBR, not GPT. This shouldn't cause the problem you describe, but there's a small chance that it is doing so. Converting/dev/sdb
from MBR to GPT withgdisk
(see this page for instructions) might help, but also runs a small risk of making matters worse. – Rod Smith Apr 09 '17 at 00:38grub-install
script, though, performs these steps automatically. You should not try to mix and match these manual and automatic procedures -- at least, not unless you're an expert or have the guidance of one. Thesudo
command gives you administrative authority, so that's the answer to your final question. If you're booted in the regular installation,sudo grub-install
should do the job, with no options. I'm not an expert on thegrub-install
options. – Rod Smith Apr 09 '17 at 18:51