I’m using a Surface Book 2. I’m installing Manjaro GNOME side-by-side with an existing Manjaro KDE. I’m using a live USB for this install. I’m installing from calamares
, and replacing the partition /dev/nvme0n1p5
with Manjaro GNOME
Here is the output of sudo calamares -d
...
[PYTHON JOB]: Found gettext "en_US" in "/usr/share/locale/en_US"
.. Job description from pretty_name "bootloader" = "Install bootloader."
[PYTHON JOB]: "Bootloader: grub (efi)"
.. Running ("grub-install", "--target=x86_64-efi", "--efi-directory=/boot/efi", "--bootloader-id=Manjaro", "--force")
.. Target cmd: ("grub-install", "--target=x86_64-efi", "--efi-directory=/boot/efi", "--bootloader-id=Manjaro", "--force") Exit code: 1 output:
Installing for x86_64-efi platform.
Could not prepare Boot variable: No space left on device
grub-install: error: efibootmgr failed to register the boot entry: Input/output error.
WARNING: [PYTHON JOB]: "Command 'grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Manjaro --force' returned non-zero exit status 1."
[PYTHON JOB]: "stdout:Installing for x86_64-efi platform.\nCould not prepare Boot variable: No space left on device\ngrub-install: error: efibootmgr failed to register the boot entry: Input/output error."
...
Here is the output of sudo fdisk -l
Disk /dev/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: SAMSUNG MZFLW1T0HMLH-000MU
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: DB6FB364-EE6E-7842-BD3F-F23E082DA781
Device Start End Sectors Size Type
/dev/nvme0n1p1 4096 618495 614400 300M EFI System
/dev/nvme0n1p2 618496 488900607 488282112 232.8G Linux filesystem
/dev/nvme0n1p3 1964494086 2000397734 35903649 17.1G Linux swap
/dev/nvme0n1p4 488900608 1660776447 1171875840 558.8G Linux filesystem
/dev/nvme0n1p5 1660776448 1964494085 303717638 144.8G Linux filesystem
Partition table entries are not in disk order.
... # Some other stuff about /loop and the usb partitions
Here is the output of sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 121.4M 1 loop /run/miso/sfs/livefs
loop1 7:1 0 887.3M 1 loop /run/miso/sfs/mhwdfs
loop2 7:2 0 1.5G 1 loop /run/miso/sfs/desktopfs
loop3 7:3 0 775.6M 1 loop /run/miso/sfs/rootfs
sda 8:0 1 28.9G 0 disk
├─sda1 8:1 1 3.3G 0 part /run/miso/bootmnt
└─sda2 8:2 1 4M 0 part
nvme0n1 259:0 0 953.9G 0 disk
├─nvme0n1p1 259:1 0 300M 0 part /tmp/calamares-root-zq06xj1k/boot/efi
│ /mnt/boot-partition
├─nvme0n1p2 259:2 0 232.8G 0 part
├─nvme0n1p3 259:3 0 17.1G 0 part
├─nvme0n1p4 259:4 0 558.8G 0 part
└─nvme0n1p5 259:8 0 144.8G 0 part /tmp/calamares-root-zq06xj1k
So I have tried to mount the /dev/nvme0n1p1
partition containing the EFI system. It now lists the following folder structure, output from `ls -LRl:
.:
total 12
drwxr-xr-x 3 root root 4096 Jan 13 12:07 EFI
drwxr-xr-x 2 root root 4096 Jan 7 2021 Manjaro
drwxr-xr-x 2 root root 4096 Jan 7 2021 boot
./EFI:
total 4
drwxr-xr-x 2 root root 4096 Jan 13 12:07 Manjaro
./EFI/Manjaro:
total 0
./Manjaro:
total 136
-rwxr-xr-x 1 root root 139264 Jan 13 12:18 grubx64.efi
./boot:
total 148
-rwxr-xr-x 1 root root 151552 Jan 7 2021 bootx64.efi
When I power-off, remove the USB, and reboot, it automatically reboots into the existing Manjaro KDE partition. This is alright for now, but I would like for the GRUB menu to show up so that I can choose to boot into Manjaro GNOME. I also haven’t been confirm that the Manjaro GNOME system is working at this point. Although I suspect that it is other than the actual .efi
file to boot it up.
Any ideas what’s the error here and what might be a solution?
Solved, TLDR:
Try deleting the dump-type efi variables as suggested by @megavolt. It didn’t work for me immediately, but it was almost certainly the biggest contributor here. Thank you to @andreas85 as well.