I am trying to install Ubuntu 20.04.1 LTS to a portable external drive. The laptop I am using has two internal NVMe drives for Windows 10 and data, ando I want my Ubuntu installation to only be on the external drive. However, I tried multiple times, and grub keeps getting installed to the NVMe drive instead!
From the bootable live USB, I select Try Ubuntu, and then partition my external drive (/dev/sdb):
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 514047 512000 250M ef EFI (FAT-12/16/32)
/dev/sdb2 514048 1049090047 1048576000 500G 8e Linux LVM
/dev/sdb3 1049090048 1091033087 41943040 20G 7 HPFS/NTFS/exFAT
/dev/sdb2 is an LVM partition (which I am trying to learn about) where I created logical volumes for swap, /, and /home.
Then within the Live Desktop, I select Install Ubuntu and the something else option. By default, the installer chooses /dev/nvme0n1p1 from the internal Windows 10 NVMe drive. I double click that and change the default use as EFI to use as nothing, so the type gets changed from efi to fat32. Then I double click /dev/sdb and select use as efi. I then select the lvm partitions for swap, /, and home. I also make sure to change "Use device for boot loader installation" from /dev/nvme0 to /dev/sdb. See the screenshots below:
installer1.jpginstaller2.jpg
Then I start the installation. However, despite my choices above, it still ends up selecting /dev/nvme0n1p1 for grub, as shown by lsblk during the install:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 1.8T 0 disk
├─sdb1 8:17 0 250M 0 part [WHY NOT HERE?]
├─sdb2 8:18 0 500G 0 part
│ ├─volume1-lvswap 253:0 0 72G 0 lvm [SWAP]
│ ├─volume1-lvroot 253:1 0 20G 0 lvm /target
│ └─volume1-lvhome 253:2 0 250G 0 lvm /target/home
└─sdb3 8:19 0 20G 0 part
nvme0n1 259:0 0 1.8T 0 disk
├─nvme0n1p1 259:1 0 260M 0 part /target/boot/efi [WHY HERE??]
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 1.8T 0 part
├─nvme0n1p4 259:4 0 1G 0 part
└─nvme0n1p5 259:5 0 12.7G 0 part
wrong_efi_target.jpg
I have tried this three times, each time being super careful about the settings, and yet the result is the same. Why is nvme0n1p1 selected as /target/boot/efi when I thought I told the installer to use /dev/sdb1?
Can you please help me with suggestions on how I can get the installer to use /dev/sdb1 (the portable external drive) instead of the internal NVMe drive for the grub stuff?
Bookmarks