Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Grub EFI (SOS)

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
User avatar
sjsj
Posts: 166
Joined: 2016-10-22 16:26
Has thanked: 3 times

[SOLVED] Grub EFI (SOS)

#1 Post by sjsj »

Hello,

Sorry, I speak a little English.

I have a laptop: ASUS ZenBook 13 (UX325E)

And I have an external SSD: ADATA SC680 (240 GB)

I would like create Debian SSD and I would like this SSD another laptop(s).

My steps:
  • In Windows 11, download rufus-3.20.exe
  • Download: debian-11.5.0-amd64-netinst.iso
  • Download for internet/wifi: firmware-iwlwifi_20210315-3_all.deb
  • With Rufus created Debian installer pendrive (ISO, not DD because I need know copy my firmware to the pendrive).
  • The pendrive copied this file: ~/firmware/firmware-iwlwifi_20210315-3_all.deb
  • I successfully installed Debian on the SSD.
  • This laptop works when the SSD connected, but my another Lenovo Ideapad 3 laptop not works.
My comments:

The Lenovo BIOS EFI list only see 1, the main HDD. Not see the connected SSD. Why and how to solve this?

When I install the Debian, I can't add boot flag to SSD. B is my laptop SSD and pendrive B too, but the external SSD don't know add B.

When disconnected the external SSD to my ASUS laptop: I see only grub text, but not run anything.

I will reinstall if need.

Please help me. This is SOS. Thanks!
Last edited by sjsj on 2022-10-08 22:35, edited 1 time in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Grub EFI (SOS)

#2 Post by Head_on_a_Stick »

Run this command from your working machine:

Code: Select all

dpkg-reconfigure grub-efi-amd64
Select the "force GRUB installation to removable loader location" option.
deadbang

User avatar
sjsj
Posts: 166
Joined: 2016-10-22 16:26
Has thanked: 3 times

Re: Grub EFI (SOS)

#3 Post by sjsj »

Thanks, but please see the photos and help me. :(

ASUS:

Image

Lenovo:

Image

User avatar
sjsj
Posts: 166
Joined: 2016-10-22 16:26
Has thanked: 3 times

Re: Grub EFI (SOS)

#4 Post by sjsj »

I want to start over.
Screenshots (Windows 11):

Image

Image

Image

Image

Image

Image

Image

Image

Image

Image

efibootmgr -v

Code: Select all

efibootmgr -v
BootCurrent: 0003
Timeout: 2 seconds
BootOrder: 0003,0004,0000
Boot0000* Windows Boot Manager	HD(1,GPT,0e605a83-a1a5-430f-9a29-c1edfffd7526,0x800,0x82000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0003* debian	HD(1,GPT,0e605a83-a1a5-430f-9a29-c1edfffd7526,0x800,0x82000)/File(\EFI\DEBIAN\SHIMX64.EFI)
Boot0004* UEFI: ADATA USB Flash Drive 1100, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(0,0)/HD(1,MBR,0x26dc1ad,0x800,0xe73800)..BO
fdisk -l

Code: Select all

sudo su
fdisk -l
fdisk -l
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: INTEL SSDPEKNW512G8                     
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: A0C99B5E-7FCB-4F9E-B059-025A5B08025F

Device             Start        End   Sectors   Size Type
/dev/nvme0n1p1      2048     534527    532480   260M EFI System
/dev/nvme0n1p2    534528     567295     32768    16M Microsoft reserved
/dev/nvme0n1p3    567296  997857934 997290639 475.5G Microsoft basic data
/dev/nvme0n1p4 997859328  999804927   1945600   950M Windows recovery environment
/dev/nvme0n1p5 999804928 1000214527    409600   200M Windows recovery environment


Disk /dev/sda: 223.57 GiB, 240057409536 bytes, 468862128 sectors
Disk model: SC680           
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: B4A6512F-8555-4523-AC85-4991B5DE5D2A

Device         Start       End   Sectors   Size Type
/dev/sda1       2048 249999359 249997312 119.2G Linux filesystem
/dev/sda2  249999360 281249791  31250432  14.9G Linux swap
dpkg-reconfigure grub-efi-amd64

Code: Select all

sudo su
dpkg-reconfigure grub-efi-amd64
Installing for x86_64-efi platform.
Installation finished. No error reported.
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-5.10.0-18-amd64
Found initrd image: /boot/initrd.img-5.10.0-18-amd64
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
Processing triggers for shim-signed:amd64 (1.38+15.4-7) ...
Screenshots (Debian, external SSD)

Image

Image

Image

Image

Restart, I see:

Image

Please help me. Thanks. If need, I start over again and again.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Grub EFI (SOS)

#5 Post by Head_on_a_Stick »

I think you will need to either remove the non-working boot entry or manually select the USB stick from the firmware ("BIOS") boot menu.

Use the efibootmgr command to change the boot entries. Read the man page for details.
deadbang

User avatar
sjsj
Posts: 166
Joined: 2016-10-22 16:26
Has thanked: 3 times

Re: Grub EFI (SOS)

#6 Post by sjsj »

Thanks. Solved. USB Type-C don't works, but USB Type-A it works. Craziness... :)

Post Reply