Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3424

Hardware • Cant install GRUB on emmc storage on Acer Spin 1

$
0
0
I do have an Acer Spin 1 here. It is a neat little device that runs the Debian 12.7.0 Xfce Live system perfectly fine after I set a UEFI password, disabled secure boot and changed the boot order to first look for a system on my USB stick. Even the installation of the system on the 125 GB emmc disk /dev/mmcblk1p1 works flawlessly until it is time to create the GRUB menu. It fails with the message that it can't find the UEFI. So I need to finish the installation without creating a GRUB menu.

In principle this doesn't sound like a big deal since it should be rather easy to generate the GRUB menu afterwards. Unfortunately, at the next boot the system disk can't be found in the UEFI any longer. I can still mount the disk from the live system and see that all the system files are where they are supposed to be.

I found some guides I tried to install GRUB by hand but fail at an embarrassing point: I can't chroot into the disk with Debian installed because I so far couldn't figure out where to find bash. The GRUB configuration file I also can only find for the live system. It doesn't seem to be present on the system disk. I figure this isn't entirely surprising since I after all couldn't install GRUB during the installation routine.
Here is some hopefully relevant command line output from my attempts to install GRUB using the live system:

Code:

user@debian:~$ sudo apt install grub-efiReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following package was automatically installed and is no longer required:  libc6-i386Use 'sudo apt autoremove' to remove it.The following additional packages will be installed:  efibootmgr grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed grub2-common mokutil shim-helpers-amd64-signed shim-signed shim-signed-common shim-unsignedThe following packages will be REMOVED:  grub-legacyThe following NEW packages will be installed:  efibootmgr grub-efi grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed grub2-common mokutil shim-helpers-amd64-signed shim-signed shim-signed-common shim-unsigned0 upgraded, 11 newly installed, 1 to remove and 0 not upgraded.Need to get 4,634 kB of archives.After this operation, 39.4 MB of additional disk space will be used.Do you want to continue? [Y/n] yGet:1 http://deb.debian.org/debian bookworm/main amd64 efibootmgr amd64 17-2 [27.6 kB]Get:2 http://deb.debian.org/debian bookworm/main amd64 grub2-common amd64 2.06-13+deb12u1 [614 kB]Get:3 http://deb.debian.org/debian bookworm/main amd64 grub-efi-amd64-bin amd64 2.06-13+deb12u1 [1,574 kB]Get:4 http://deb.debian.org/debian bookworm/main amd64 grub-efi-amd64 amd64 2.06-13+deb12u1 [45.7 kB]Get:5 http://deb.debian.org/debian bookworm/main amd64 grub-efi amd64 2.06-13+deb12u1 [2,388 B]Get:6 http://deb.debian.org/debian bookworm/main amd64 grub-efi-amd64-signed amd64 1+2.06+13+deb12u1 [1,259 kB]Get:7 http://deb.debian.org/debian bookworm/main amd64 mokutil amd64 0.6.0-2 [26.9 kB]Get:8 http://deb.debian.org/debian bookworm/main amd64 shim-unsigned amd64 15.8-1~deb12u1 [440 kB]Get:9 http://deb.debian.org/debian bookworm/main amd64 shim-helpers-amd64-signed amd64 1+15.8+1~deb12u1 [301 kB]Get:10 http://deb.debian.org/debian bookworm/main amd64 shim-signed-common all 1.44~1+deb12u1+15.8-1~deb12u1 [13.6 kB]Get:11 http://deb.debian.org/debian bookworm/main amd64 shim-signed amd64 1.44~1+deb12u1+15.8-1~deb12u1 [329 kB]Fetched 4,634 kB in 1s (3,533 kB/s)   Preconfiguring packages ...(Reading database ... 245298 files and directories currently installed.)Removing grub-legacy (0.97-80) ...Selecting previously unselected package efibootmgr.(Reading database ... 245253 files and directories currently installed.)Preparing to unpack .../00-efibootmgr_17-2_amd64.deb ...Unpacking efibootmgr (17-2) ...Selecting previously unselected package grub2-common.Preparing to unpack .../01-grub2-common_2.06-13+deb12u1_amd64.deb ...Unpacking grub2-common (2.06-13+deb12u1) ...Selecting previously unselected package grub-efi-amd64-bin.Preparing to unpack .../02-grub-efi-amd64-bin_2.06-13+deb12u1_amd64.deb ...Unpacking grub-efi-amd64-bin (2.06-13+deb12u1) ...Selecting previously unselected package grub-efi-amd64.Preparing to unpack .../03-grub-efi-amd64_2.06-13+deb12u1_amd64.deb ...Unpacking grub-efi-amd64 (2.06-13+deb12u1) ...Selecting previously unselected package grub-efi.Preparing to unpack .../04-grub-efi_2.06-13+deb12u1_amd64.deb ...Unpacking grub-efi (2.06-13+deb12u1) ...Selecting previously unselected package grub-efi-amd64-signed.Preparing to unpack .../05-grub-efi-amd64-signed_1+2.06+13+deb12u1_amd64.deb ...Unpacking grub-efi-amd64-signed (1+2.06+13+deb12u1) ...Selecting previously unselected package mokutil.Preparing to unpack .../06-mokutil_0.6.0-2_amd64.deb ...Unpacking mokutil (0.6.0-2) ...Selecting previously unselected package shim-unsigned:amd64.Preparing to unpack .../07-shim-unsigned_15.8-1~deb12u1_amd64.deb ...Unpacking shim-unsigned:amd64 (15.8-1~deb12u1) ...Selecting previously unselected package shim-helpers-amd64-signed.Preparing to unpack .../08-shim-helpers-amd64-signed_1+15.8+1~deb12u1_amd64.deb ...Unpacking shim-helpers-amd64-signed (1+15.8+1~deb12u1) ...Selecting previously unselected package shim-signed-common.Preparing to unpack .../09-shim-signed-common_1.44~1+deb12u1+15.8-1~deb12u1_all.deb ...Unpacking shim-signed-common (1.44~1+deb12u1+15.8-1~deb12u1) ...Selecting previously unselected package shim-signed:amd64.Preparing to unpack .../10-shim-signed_1.44~1+deb12u1+15.8-1~deb12u1_amd64.deb ...Unpacking shim-signed:amd64 (1.44~1+deb12u1+15.8-1~deb12u1) ...Setting up efibootmgr (17-2) ...Setting up mokutil (0.6.0-2) ...Setting up grub-efi-amd64-signed (1+2.06+13+deb12u1) ...Setting up grub2-common (2.06-13+deb12u1) ...Installing new version of config file /etc/kernel/postinst.d/zz-update-grub ...Installing new version of config file /etc/kernel/postrm.d/zz-update-grub ...Setting up shim-signed-common (1.44~1+deb12u1+15.8-1~deb12u1) ...No DKMS packages installed: not changing Secure Boot validation state.Setting up grub-efi-amd64-bin (2.06-13+deb12u1) ...Setting up shim-unsigned:amd64 (15.8-1~deb12u1) ...Setting up grub-efi-amd64 (2.06-13+deb12u1) ...Creating config file /etc/default/grub with new versionSetting up shim-helpers-amd64-signed (1+15.8+1~deb12u1) ...Setting up grub-efi (2.06-13+deb12u1) ...Setting up shim-signed:amd64 (1.44~1+deb12u1+15.8-1~deb12u1) ...No DKMS packages installed: not changing Secure Boot validation state.Processing triggers for man-db (2.11.2-2) ...user@debian:~$ sudo mkdir -p /boot/efiuser@debian:~$ sudo mount /dev/mmcblk1p1 /boot/efiuser@debian:~$ sudo grub-install /dev/mmcblk1p1Installing for x86_64-efi platform.grub-install: error: failed to get canonical path of `overlay'.user@debian:~$ sudo chroot /mntchroot: failed to run command ‘/bin/bash’: No such file or directoryuser@debian:~$ sudo mount /dev/mmcblk1p1 /mntuser@debian:~$ sudo mount --bind /dev /mnt/devuser@debian:~$ sudo mount --bind /sys /mnt/sysuser@debian:~$ sudo chroot /mnt bashchroot: failed to run command ‘bash’: No such file or directoryuser@debian:~$ sudo chroot /mntchroot: failed to run command ‘/bin/bash’: No such file or directoryuser@debian:~$ sudo chroot /mnt /mnt/bin/bashchroot: failed to run command ‘/mnt/bin/bash’: No such file or directoryuser@debian:~$ sudo mousepad /mnt/boot/efi/EFI/debian/grub.cfguser@debian:~$ sudo mousepad /mnt/etc/default/grubuser@debian:~$ sudo mousepad /etc/grub.d/user@debian:~$ sudo mousepad /etc/default/grubuser@debian:~$ sudo mkdir -p /mnt/etc/default/user@debian:~$ sudo cp /etc/default/grub /mnt/etc/default/user@debian:~$ sudo chroot /mntchroot: failed to run command ‘/bin/bash’: No such file or directoryuser@debian:~$ mountsysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)udev on /dev type devtmpfs (rw,nosuid,relatime,size=1875396k,nr_inodes=468849,mode=755,inode64)devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=384476k,mode=755,inode64)/dev/sda1 on /run/live/medium type iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8)/dev/loop0 on /run/live/rootfs/filesystem.squashfs type squashfs (ro,noatime,errors=continue)tmpfs on /run/live/overlay type tmpfs (rw,noatime,mode=755,inode64)overlay on / type overlay (rw,noatime,lowerdir=/run/live/rootfs/filesystem.squashfs/,upperdir=/run/live/overlay/rw,workdir=/run/live/overlay/work,redirect_dir=on)tmpfs on /usr/lib/live/mount type tmpfs (rw,nosuid,nodev,noexec,relatime,size=384476k,mode=755,inode64)/dev/sda1 on /usr/lib/live/mount/medium type iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8)/dev/loop0 on /usr/lib/live/mount/rootfs/filesystem.squashfs type squashfs (ro,noatime,errors=continue)tmpfs on /usr/lib/live/mount/overlay type tmpfs (rw,noatime,mode=755,inode64)securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=450)mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)ramfs on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)ramfs on /run/credentials/systemd-tmpfiles-setup-dev.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)ramfs on /run/credentials/systemd-sysctl.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,inode64)ramfs on /run/credentials/systemd-tmpfiles-setup.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=384472k,nr_inodes=96118,mode=700,uid=1000,gid=1000,inode64)portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)/dev/mmcblk1p1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)/dev/mmcblk1p1 on /mnt type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)udev on /mnt/dev type devtmpfs (rw,nosuid,relatime,size=1875396k,nr_inodes=468849,mode=755,inode64)sysfs on /mnt/sys type sysfs (rw,nosuid,nodev,noexec,relatime)portal on /root/.cache/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=0,group_id=0)user@debian:~$ ls -l bin/bashls: cannot access 'bin/bash': No such file or directory

Statistics: Posted by Onsemeliot — 2024-10-21 06:55 — Replies 6 — Views 152



Viewing all articles
Browse latest Browse all 3424

Trending Articles