problem grub-efi-amd64-bin, Version 2.02-2ubuntu8.15

grub-202004-ks3r grub-202004-ks3r at posteo.net
Sun Apr 12 12:44:00 UTC 2020


Hi,

I create bootable Hybrid-MBR/UEFI USB-Sticks for PC/MAC (32/64-bit).
Now have problem with latest version 2.02-2ubuntu8.15 grub-efi-amd64-bin
and related grub-common, grub-pc, grub-pc-bin, grub2-common
on LinuxMint 19.3 - 32 bit.
Does not work on MAC-Books or i-Macs (64-Bit), but still on PCs (32 and
64-bit).
In version prior i.e. 2.02-2ubuntu8.14 everthing worked fine.

I create the bootable Hybrid-MBR/UEFI USB-Sticks for PC/MAC (32/64-bit)
the way you see here:
https://forums.linuxmint.com/viewtopic.php?f=42&t=287353
https://forums.linuxmint.com/viewtopic.php?t=252351


Description:

Partitioning.
Open GParted
Select: Device->Create Partition Table, choose: "gpt" type (the UEFI
format); Apply (note warning)

>From Menu, select: Partition->New.
#1: 2 MiB (unformatted, at very bottom of drop down menu);
[Free space preceding = 1 MiB = Minimum, New Size = 2 MiB, Create as =
Primary Partition, File System = unformatted]
#2: 200 MiB (format fat32);
[Free space preceding = 0 MiB = Minimum, New Size = 200 MiB, Create as =
Primary Partition, File System = fat32]
#3: 2000 MiB for LM18 + LM19, which requires a swap-partition (format:
linux-swap):
[Free space preceding = 0 MiB = Minimum, New Size = 2000 MiB, Create as
= Primary Partition, File System = linux-swap]
#4: remaining space, rsp. space for Linux-System (format ext4);
[Free space preceding = 0 MiB = Minimum, New Size = remaining space for
LM19 System xxxx MiB, Create as = Primary Partition, File System = ext4]

Apply

When complete, right-click #1 and set flag as bios-grub.
Close GParted.

Install LinuxMint.
Turn off screensaver and display shutoff: xset s off
Double-click "Install" icon on desktop.
Let installer unmount partitions when asked.
Initiate install to target-USB drive using “Something Else” option.

Select sdc4 (assuming the target is sdc); click Change; Use as: Ext4
system = Ext4-Journaling-Dateisystem.
Don’t tick format box! and select mount point as root (“/”) (which you
can’t see until you’ve selected “use as”).

Select sdc for grub
****** important: select the drive, = /dev/sdc = "USB-Stick 32GB" but
not one of the partitions!!! i.e /dev/sdc4 *****
Double-check not making any changes to the internal hard drive.

Run install (confirm no format, which we did in GParted), selecting
other options as preferred (see Installation Guide).

When completed shut down live session and remove the live USB.


UEFI Bootloader.
Boot the newly installed system, still using BIOS or legacy boot (in
fact, it can't boot in UEFI yet).

Turn off screensaver and display shutoff: xset s off
 
Set up internet connection.

Install GParted (included by default in the live version but not the
installed one);
open;
right-click partition #2 (now probably sdb2) and mark with boot and esp
flags;
Close GParted.

Open Terminal and run, one line at a time (using copy and paste):

sudo apt-get install grub-efi-amd64-bin 
                                                    
****************!!!!!!!!!******* M y   p r o b l e m ********!!!!!!
(* downloads the package grub-efi-amd64-bin; grub-common; grub-pc;
grub-pc-bin; grub2-common alway in latest version i.e. 2.02-2ubuntu8.15)

sudo mkdir -p /mnt/esp
sudo mount /dev/sdb2 /mnt/esp
sudo grub-install /dev/sdb --efi-directory=/mnt/esp
--boot-directory=/boot --target=x86_64-efi --removable sudo umount /mnt/esp
sudo umount /mnt/esp
sudo rm -r /mnt/esp

* Note: After entering the first command, you’ll be asked for a
password. This is the same as your user password, selected during
installation

Shut down.

Post-Installation. Boot the USB drive again, this time in UEFI. As
mentioned for BIOS install (above), you may want to remove the system
idle lock or extend the timeout with the Screensaver configuration app.
Also, if booting on a Windows machine, run timedatectl set-local-rtc 1
so the USB drive won’t reset the system clock.

Note: Grub will reflect the internal bootloader present at the last
update, i.e., that of the machine on which it was running at the time.
You can update that with sudo update-grub if you change machines, but I
generally don’t bother.
Last edited by pbear on Sat Dec 28, 2019 12:12 am, edited 6 times in total.



Can you help, please
nobotter




More information about the Ubuntu-devel-discuss mailing list