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

Hardware • [Solved] Cant install GRUB on emmc storage on Acer Spin 1

$
0
0
I finally did it. The last guide that was essential to me actually overcoming this hurdle was one on GrubEFIReinstall.

It seems I really needed to add "--no-nvme" to the grub-install command. It is only very few steps ... if you do the right ones! :wink:

Here is the whole process that finally worked (after running the install routine without setting up grub) in all its glory:
  1. mount the needed partitions
  2. switch from the live system to the freshly installed system (chroot)
  3. install grub-efi
  4. execute grub-install with all the needed flags
  5. run update-grub

Code:

user@debian:~$ sudo -sroot@debian:/home/user# cat /proc/partitionsmajor minor  #blocks  name 179        0  122138624 mmcblk1 179        1     524288 mmcblk1p1 179        2  120611840 mmcblk1p2 179        3    1000448 mmcblk1p3 179      256       4096 mmcblk1boot0 179      512       4096 mmcblk1boot1   8        0    7987200 sda   8        1    3103808 sda1   8        2       4768 sda2   7        0    2580448 loop0   8       16   15564800 sdb   8       17   15563776 sdb1root@debian:/home/user# mount /dev/mmcblk1p2 /mnt/root@debian:/home/user# mount /dev/mmcblk1p1 /mnt/boot/efiroot@debian:/home/user# for i in /dev /dev/pts /proc /sys /sys/firmware/efi/efivars /run; do mount -B $i /mnt/$i; doneroot@debian:/home/user# chroot /mntroot@debian:/# apt install grub-efi Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following additional packages will be installed:  efibootmgr grub-common grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed grub2-common libefiboot1  libefivar1 libfuse2 mokutil os-prober shim-helpers-amd64-signed shim-signed shim-signed-common  shim-unsignedSuggested packages:  multiboot-doc grub-emu mtools xorrisoThe following NEW packages will be installed:  efibootmgr grub-common grub-efi grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed grub2-common  libefiboot1 libefivar1 libfuse2 mokutil os-prober shim-helpers-amd64-signed shim-signed shim-signed-common  shim-unsigned0 upgraded, 16 newly installed, 0 to remove and 219 not upgraded.Need to get 7586 kB of archives.After this operation, 59.1 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 libefivar1 amd64 37-6 [50.0 kB]Get:2 http://deb.debian.org/debian bookworm/main amd64 libefiboot1 amd64 37-6 [44.1 kB]Get:3 http://deb.debian.org/debian bookworm/main amd64 efibootmgr amd64 17-2 [27.6 kB]Get:4 http://deb.debian.org/debian bookworm/main amd64 libfuse2 amd64 2.9.9-6+b1 [119 kB]Get:5 http://deb.debian.org/debian bookworm/main amd64 grub-common amd64 2.06-13+deb12u1 [2709 kB]Get:6 http://deb.debian.org/debian bookworm/main amd64 grub2-common amd64 2.06-13+deb12u1 [614 kB]Get:7 http://deb.debian.org/debian bookworm/main amd64 grub-efi-amd64-bin amd64 2.06-13+deb12u1 [1574 kB]Get:8 http://deb.debian.org/debian bookworm/main amd64 grub-efi-amd64 amd64 2.06-13+deb12u1 [45.7 kB]Get:9 http://deb.debian.org/debian bookworm/main amd64 grub-efi amd64 2.06-13+deb12u1 [2388 B]Get:10 http://deb.debian.org/debian bookworm/main amd64 grub-efi-amd64-signed amd64 1+2.06+13+deb12u1 [1259 kB]Get:11 http://deb.debian.org/debian bookworm/main amd64 mokutil amd64 0.6.0-2 [26.9 kB]Get:12 http://deb.debian.org/debian bookworm/main amd64 os-prober amd64 1.81 [30.9 kB]Get:13 http://deb.debian.org/debian bookworm/main amd64 shim-unsigned amd64 15.8-1~deb12u1 [440 kB]Get:14 http://deb.debian.org/debian bookworm/main amd64 shim-helpers-amd64-signed amd64 1+15.8+1~deb12u1 [301 kB]Get:15 http://deb.debian.org/debian bookworm/main amd64 shim-signed-common all 1.44~1+deb12u1+15.8-1~deb12u1 [13.6 kB]Get:16 http://deb.debian.org/debian bookworm/main amd64 shim-signed amd64 1.44~1+deb12u1+15.8-1~deb12u1 [329 kB]Fetched 7586 kB in 2s (4012 kB/s)   perl: warning: Setting locale failed.perl: warning: Please check that your locale settings:LANGUAGE = (unset),LC_ALL = (unset),LANG = "en_US.UTF-8"    are supported and installed on your system.perl: warning: Falling back to the standard locale ("C").locale: Cannot set LC_CTYPE to default locale: No such file or directorylocale: Cannot set LC_MESSAGES to default locale: No such file or directorylocale: Cannot set LC_ALL to default locale: No such file or directoryPreconfiguring packages ...E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)Selecting previously unselected package libefivar1:amd64.(Reading database ... 237761 files and directories currently installed.)Preparing to unpack .../00-libefivar1_37-6_amd64.deb ...Unpacking libefivar1:amd64 (37-6) ...Selecting previously unselected package libefiboot1:amd64.Preparing to unpack .../01-libefiboot1_37-6_amd64.deb ...Unpacking libefiboot1:amd64 (37-6) ...Selecting previously unselected package efibootmgr.Preparing to unpack .../02-efibootmgr_17-2_amd64.deb ...Unpacking efibootmgr (17-2) ...Selecting previously unselected package libfuse2:amd64.Preparing to unpack .../03-libfuse2_2.9.9-6+b1_amd64.deb ...Unpacking libfuse2:amd64 (2.9.9-6+b1) ...Selecting previously unselected package grub-common.Preparing to unpack .../04-grub-common_2.06-13+deb12u1_amd64.deb ...Unpacking grub-common (2.06-13+deb12u1) ...Selecting previously unselected package grub2-common.Preparing to unpack .../05-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 .../06-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 .../07-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 .../08-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 .../09-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 .../10-mokutil_0.6.0-2_amd64.deb ...Unpacking mokutil (0.6.0-2) ...Selecting previously unselected package os-prober.Preparing to unpack .../11-os-prober_1.81_amd64.deb ...Unpacking os-prober (1.81) ...Selecting previously unselected package shim-unsigned:amd64.Preparing to unpack .../12-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 .../13-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 .../14-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 .../15-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 libfuse2:amd64 (2.9.9-6+b1) ...Setting up libefivar1:amd64 (37-6) ...Setting up shim-unsigned:amd64 (15.8-1~deb12u1) ...Setting up mokutil (0.6.0-2) ...Setting up libefiboot1:amd64 (37-6) ...Setting up grub-common (2.06-13+deb12u1) ...Setting up os-prober (1.81) ...Setting up shim-signed-common (1.44~1+deb12u1+15.8-1~deb12u1) ...locale: Cannot set LC_CTYPE to default locale: No such file or directorylocale: Cannot set LC_MESSAGES to default locale: No such file or directorylocale: Cannot set LC_ALL to default locale: No such file or directoryNo DKMS packages installed: not changing Secure Boot validation state.Setting up shim-helpers-amd64-signed (1+15.8+1~deb12u1) ...locale: Cannot set LC_CTYPE to default locale: No such file or directorylocale: Cannot set LC_MESSAGES to default locale: No such file or directorylocale: Cannot set LC_ALL to default locale: No such file or directorySetting up grub-efi-amd64-bin (2.06-13+deb12u1) ...Setting up efibootmgr (17-2) ...Setting up grub-efi-amd64-signed (1+2.06+13+deb12u1) ...Setting up grub2-common (2.06-13+deb12u1) ...Setting up shim-signed:amd64 (1.44~1+deb12u1+15.8-1~deb12u1) ...locale: Cannot set LC_CTYPE to default locale: No such file or directorylocale: Cannot set LC_MESSAGES to default locale: No such file or directorylocale: Cannot set LC_ALL to default locale: No such file or directoryNo DKMS packages installed: not changing Secure Boot validation state.Setting up grub-efi-amd64 (2.06-13+deb12u1) ...locale: Cannot set LC_CTYPE to default locale: No such file or directorylocale: Cannot set LC_MESSAGES to default locale: No such file or directorylocale: Cannot set LC_ALL to default locale: No such file or directoryCreating config file /etc/default/grub with new versionSetting up grub-efi (2.06-13+deb12u1) ...Processing triggers for man-db (2.11.2-2) ...Processing triggers for libc-bin (2.36-9+deb12u8) ...Processing triggers for shim-signed:amd64 (1.44~1+deb12u1+15.8-1~deb12u1) ...locale: Cannot set LC_CTYPE to default locale: No such file or directorylocale: Cannot set LC_MESSAGES to default locale: No such file or directorylocale: Cannot set LC_ALL to default locale: No such file or directoryroot@debian:/# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Debian --force --removable --no-nvramInstalling for x86_64-efi platform.Installation finished. No error reported.root@debian:/# update-grubGenerating grub configuration file ...Found background image: /usr/share/images/desktop-base/desktop-grub.pngFound linux image: /boot/vmlinuz-6.1.0-25-amd64Found initrd image: /boot/initrd.img-6.1.0-25-amd64Warning: os-prober will not be executed to detect other bootable partitions.Systems on them will not be added to the GRUB boot configuration.Check GRUB_DISABLE_OS_PROBER documentation entry.Adding boot menu entry for UEFI Firmware Settings ...done
Thanks again for your help, lindi.

Statistics: Posted by Onsemeliot — 2024-10-25 17:15 — Replies 9 — Views 324



Viewing all articles
Browse latest Browse all 3567

Trending Articles