Runbook for installing Ubuntu 24.04 LTS on Radek’s private dev laptop
(Acer Aspire F5-573G, i5-7200U, 8 GB RAM, SSD SSDPR-CX400-512-G2,
BIOS: InsydeH20 v1.18). This laptop serves as the local Claude Code dev workstation
(VSCode + Claude Code).
Root cause of the boot problem: InsydeH20 v1.18 on this Acer model ignores NVRAM
BootOrder entries written by efibootmgr. It always falls back to the hardcoded path
\EFI\Microsoft\Boot\bootmgfw.efi. Subiquity (the Ubuntu 24.04 installer) registers an
EFI entry but does not write the fallback path, so the system appears unbootable after
installation. The fix is to copy Ubuntu’s shim into the Microsoft Boot path.
What triggers this
Fresh Ubuntu 24.04 install on the Acer F5-573G → system shows “No bootable device” on first boot.
After installing Ubuntu 24.04 and rebooting without the USB drive:
BIOS shows “No bootable device” or boots directly into Windows (if dual-boot) without offering GRUB.
efibootmgr (from live USB) shows a ubuntu boot entry but it is never selected.
The EFI path \EFI\Microsoft\Boot\bootmgfw.efi is missing or does not point to Ubuntu shim.
# From live USB — confirm the EFI partition has an ubuntu entry but no Microsoft fallbackls /mnt/boot/efi/EFI/ # should list: ubuntu (maybe Microsoft)ls /mnt/boot/efi/EFI/Microsoft/Boot/ 2>/dev/null # likely missing or wrongefibootmgr # shows BootOrder and current entries
Hardware reference
Field
Value
Model
Acer Aspire F5-573G
CPU
Intel Core i5-7200U (Kaby Lake)
RAM
8 GB
Storage
SSDPR-CX400-512-G2 (512 GB SSD)
BIOS
InsydeH20 v1.18
Secure Boot
Enabled — cannot disable without supervisor password in this BIOS
EFI fallback
Hardcoded to \EFI\Microsoft\Boot\bootmgfw.efi
LAN port
None (USB adapter or WiFi for SSH from live USB)
Local IP (during install)
192.168.0.161 (verify via ARP or router admin)
Part A — Prepare Ubuntu 24.04 Desktop (manual install path)
The desktop installer is the standard recovery path. Skip to Part B if Ubuntu is already
installed but won’t boot.
Download Ubuntu 24.04 LTS Desktop ISO from https://ubuntu.com/download/desktop.
Flash to USB:
Windows: Rufus (GPT partition scheme, UEFI (non-CSM), write in ISO mode)
Press F12 at the Acer logo → select the USB device from the boot menu.
Follow the graphical Ubuntu installer normally (select language, keyboard, disk, user).
Use “Erase disk and install Ubuntu” for a clean install.
When the installer finishes and prompts to restart — click Restart Now, remove the USB
when asked.
Expected result: “No bootable device” error. This is normal on this hardware. Continue
to Part B with the live USB.
Part B (optional) — Autoinstall via user-data (for future unattended reinstalls)
Use this path to skip the graphical installer and automate disk layout, user creation, and
package installation. Requires network access at boot time to fetch the user-data file.
user-data gist:https://gist.github.com/radieu/6c016b4bf35a3bd86824973fd8f77576 Short URL:https://tinyurl.com/259ocnmc
Critical format requirement
The file must begin with version: 1 on the first line — with NO #cloud-config wrapper.
InsydeH20 autoinstall errors with "Malformed autoinstall in version or interactive-sections"
when the file starts with #cloud-config.
Correct format (first two lines):
version: 1autoinstall:
Wrong format (causes “Malformed autoinstall” error):
#cloud-configautoinstall: version: 1
Temporary password
The user-data sets a temporary password: ubuntu2026. Change it immediately after the
first login:
passwd
Boot with autoinstall
At the GRUB menu of the live USB, press e on “Try or Install Ubuntu”, then append to
the linux line:
Press Ctrl+X to boot. The installer runs unattended and reboots automatically.
Then continue to Part C (bootloader fix).
Part C — EFI Bootloader Fix (ALWAYS required on this hardware)
This is the main fix. Run it from the live USB after every install.
Step 1 — Boot the live USB and enable SSH
Power on with the USB drive inserted. At the GRUB menu select “Try Ubuntu” (not install).
Once the desktop loads, open a terminal and enable SSH access:
This script installs and starts openssh-server and configures key-based auth using the
Acer’s local IP. It is a convenience bootstrap — inspect it before running if security
is a concern.
Note the IP address shown by the script (usually 192.168.0.161). Verify with:
If the IP differs, check the router’s DHCP table or use:
arp -a | Select-String "192.168.0"
All remaining commands run over this SSH session.
Step 3 — Identify disk partitions
lsblk -f# orsudo fdisk -l /dev/sda
Expected layout after a clean Ubuntu 24.04 install:
/dev/sda1 → EFI System Partition (FAT32, ~512 MB)
/dev/sda2 → ext4 root partition (remainder of disk)
Adjust partition names (sda1, sda2) if the output shows different assignments.
Step 4 — Mount the installed system
sudo mount /dev/sda2 /mntsudo mount /dev/sda1 /mnt/boot/efisudo mount --bind /dev /mnt/devsudo mount --bind /proc /mnt/procsudo mount --bind /sys /mnt/syssudo mount --bind /run /mnt/runsudo mount -t efivarfs efivarfs /mnt/sys/firmware/efi/efivars
Expected output from grub-install: Installation finished. No error reported.
Step 6 — Copy Ubuntu shim to the Microsoft Boot fallback path (KEY FIX)
InsydeH20 v1.18 always checks \EFI\Microsoft\Boot\bootmgfw.efi first, regardless of
NVRAM BootOrder. Copying Ubuntu’s shim there makes the BIOS load Ubuntu while “thinking”
it is starting Windows Boot Manager.
efibootmgr# EXPECT: Boot0000* Windows Boot Manager -> \EFI\Microsoft\Boot\bootmgfw.efi# This entry now loads Ubuntu shim — the label is cosmetic only.
Part D — Post-install SSH setup on the installed system
The Ubuntu 24.04 Desktop install does NOT include openssh-server by default.
To enable SSH on the freshly installed system:
curl -sL https://tinyurl.com/2xhc9la6 | sudo bash
This is the same bootstrap script used in the live USB step. It installs openssh-server,
enables it at startup, and sets up key-based auth. After running, SSH from the Windows
workstation works immediately.
Why the Microsoft Boot path trick works
InsydeH20 on Acer F5-573G has a hardcoded fallback boot path: the firmware reads NVRAM
BootOrder but silently ignores it if the preferred entries are absent or unrecognised.
Instead it always falls through to \EFI\Microsoft\Boot\bootmgfw.efi — the path of the
Windows Boot Manager.
By placing shimx64.efi (Ubuntu’s Secure Boot shim, signed by Microsoft) at that path,
the BIOS loads it without complaints. The shim verifies the Ubuntu GRUB signature and hands
off control. From that point the boot sequence is normal Ubuntu: shim → GRUB → kernel.
Secure Boot remains enabled throughout — shimx64.efi carries a valid Microsoft certificate.
No Secure Boot bypass is required.
Escalation / error reporting
If Ubuntu does not boot after completing Part C:
Boot the live USB again and re-run Step 3 verification — confirm the EFI files are in
\EFI\Microsoft\Boot\.
Check BIOS settings: enter BIOS (F2 at Acer logo), navigate to Boot tab, confirm UEFI boot
order. If “Windows Boot Manager” is not first, move it to the top.
If EFI filesystem is missing entirely (GRUB install failed at Step 5), the EFI partition
may be unmounted or wrong — repeat from Step 3 with lsblk -f to identify the correct
partition.
If grub-install reports errors about EFI variables, confirm efivarfs is mounted:
mount | grep efivars
Re-run sudo mount -t efivarfs efivarfs /mnt/sys/firmware/efi/efivars if missing.
Prevention
After any kernel update that regenerates GRUB: verify that \EFI\Microsoft\Boot\bootmgfw.efi
still points to the Ubuntu shim. GRUB updates do not overwrite the Microsoft path, but a
full grub-install (e.g., from system-repair tools) might regenerate only \EFI\ubuntu\.
Re-run Step 6 if in doubt.
Do NOT runsudo efibootmgr -B against Boot0000 (Windows Boot Manager label) — that
entry is the only one the BIOS will use; deleting it makes the laptop unbootable until
Part C is re-run from a live USB.
Document any BIOS firmware update: a newer InsydeH20 version might fix or break the EFI
fallback behaviour. Test boot after any BIOS update and re-apply the Microsoft path fix if
needed.