You are not logged in.

#1 2019-04-23 21:46:35

c.monty
Member
Registered: 2017-10-27
Posts: 18

Arch Linux is not booting, and Grub is not displayed

Hi,
some time ago I accidently deleted ~500MB of my main disk with dd.
I reported this incident here and with your support I repaired the EFI system partition.

However, since today Arch Linux is not booting anymore.
This means when I start the PC there's no Grub partition identified. Instead the EFI console is displayed.

I checked in BIOS if all disks are connected and identfied; there's no issue here means the 120GB SSD is available.

Then I booted Arch Linux from USB to start repair actions.
Here are my executed steps:

  1. Mount root-Subvolume: mount -o subvol=@,compress=lzo /dev/sdb6 /mnt

  2. Mount EFI system partition: mount /dev/sdb1 /mnt/efi

  3. Enter chroot: arch-chroot /mnt

  4. Mount all other subvolumes: mount -a

  5. Install Grub: grub-install --target=x86_64-efi --efi-directory=efi --bootloader-id=GRUB

  6. Generate grub.cfg: grub-mkconfig -o /boot/grub/grub.cfg

All actions finished w/o errors.
But Arch Linux still fails to boot; no Grub, nothing!

Can you please advise what steps should be executed?

THX

Last edited by c.monty (2019-04-24 05:25:17)

Offline

#2 2019-04-23 22:17:20

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 16,810

Re: Arch Linux is not booting, and Grub is not displayed

First, please fix your title, then come back.  ( https://wiki.archlinux.org/index.php/Co … ow_to_post bullet 1)

Welcome back.  Now, post the output of efibootmgr -v  and of  lsblk


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2019-04-23 22:17:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 28,112
Website

Re: Arch Linux is not booting, and Grub is not displayed

Remove the redundant and annoying all caps help from your thread title: https://wiki.archlinux.org/index.php/Co … ow_to_post

Regenerate your initramfs.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Online

#4 2019-04-24 19:32:03

c.monty
Member
Registered: 2017-10-27
Posts: 18

Re: Arch Linux is not booting, and Grub is not displayed

After starting Arch Linux from USB I entered the following commands:

root@archiso ~ # efibootmgr -v
BootCurrent: 000A
Timeout: 2 seconds
BootOrder: 000A,0005,0007,0008,0009
Boot0005* UEFI: PXE IP4 Intel(R) Ethernet Connection (H) I219-V	PciRoot(0x0)/Pci(0x1f,0x6)/MAC(309c23e3847a,0)/IPv4(0.0.0.00.0.0.0,0,0)..BO
Boot0007* UEFI: PXE IP6 Intel(R) Ethernet Connection (H) I219-V	PciRoot(0x0)/Pci(0x1f,0x6)/MAC(309c23e3847a,0)/IPv6([::]:<->[::]:,0,0)..BO
Boot0008* UEFI: Built-in EFI Shell	VenMedia(5023b95c-db26-429b-a648-bd47664c8012)..BO
Boot0009  UEFI: silicon -power 0.00	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/CDROM(1,0xa4,0x475d7)..BO
Boot000A* UEFI: silicon -power 0.00, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(1,MBR,0x69771a46,0xa4,0x20000)..BO

[root@archiso /]# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0    7:0    0 460.7M  1 loop 
sda      8:0    0 149.1G  0 disk 
|-sda1   8:1    0   200M  0 part 
|-sda2   8:2    0     1K  0 part 
|-sda5   8:5    0 146.9G  0 part 
`-sda6   8:6    0     2G  0 part 
sdb      8:16   0 119.2G  0 disk 
|-sdb1   8:17   0   100M  0 part /efi
|-sdb2   8:18   0   128M  0 part 
|-sdb3   8:19   0  65.5G  0 part 
|-sdb4   8:20   0   800M  0 part 
|-sdb5   8:21   0  13.6G  0 part 
|-sdb6   8:22   0  35.1G  0 part /
`-sdb7   8:23   0     4G  0 part 
sdc      8:32   1   1.9G  0 disk 
|-sdc1   8:33   1   571M  0 part 
`-sdc2   8:34   1    64M  0 part 

Entering chroot mode:

root@archiso ~ # arch-chroot /mnt 
[root@archiso /]# ls /efi/EFI/GRUB/
grubx64.efi

And generating initramfs:

[root@archiso /]# mkinitcpio -p linux
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.0.8-arch1-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.0.8-arch1-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful

Writing grub.cfg:

[root@archiso /]# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1.  Check your device.map.
###### - Grub-btrfs: Snapshot detection started - ######
# Info: Separate boot partition not detected 
Failed to set locale. Fix your system.
Failure (dbus fatal exception).
Failed to set locale. Fix your system.
Failure (dbus fatal exception).
Failed to set locale. Fix your system.
Failure (dbus fatal exception).
# Found snapshot: 2019-04-22 14:56:41 | @snapshots/108/snapshot
# Found snapshot: 2019-04-22 14:54:40 | @snapshots/107/snapshot
# Found snapshot: 2019-04-22 14:47:11 | @snapshots/106/snapshot
# Found snapshot: 2019-04-22 14:43:14 | @snapshots/105/snapshot
# Found snapshot: 2019-04-22 14:43:09 | @snapshots/104/snapshot
# Found 5 snapshot(s)
###### - Grub-btrfs: Snapshot detection ended   - ######
done

In my opinion the EFI bootloading is errornous.
At the bottom line Arch Linux is not booting after this actions.

Offline

#5 2019-04-24 20:04:33

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 4,940
Website

Re: Arch Linux is not booting, and Grub is not displayed

c.monty wrote:
root@archiso ~ # efibootmgr -v
BootCurrent: 000A
Timeout: 2 seconds
BootOrder: 000A,0005,0007,0008,0009
Boot0005* UEFI: PXE IP4 Intel(R) Ethernet Connection (H) I219-V	PciRoot(0x0)/Pci(0x1f,0x6)/MAC(309c23e3847a,0)/IPv4(0.0.0.00.0.0.0,0,0)..BO
Boot0007* UEFI: PXE IP6 Intel(R) Ethernet Connection (H) I219-V	PciRoot(0x0)/Pci(0x1f,0x6)/MAC(309c23e3847a,0)/IPv6([::]:<->[::]:,0,0)..BO
Boot0008* UEFI: Built-in EFI Shell	VenMedia(5023b95c-db26-429b-a648-bd47664c8012)..BO
Boot0009  UEFI: silicon -power 0.00	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/CDROM(1,0xa4,0x475d7)..BO
Boot000A* UEFI: silicon -power 0.00, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(1,MBR,0x69771a46,0xa4,0x20000)..BO

Looks like your UEFI firmware has "forgotten" the Arch NVRAM entry, this is distressingly common.

Use the --removable flag with the grub-install command to copy grubx64.efi to $ESP/EFI/BOOT/BOOTX64.EFI, that should be booted even in the absence of NVRAM entries.

If your firmware is particularly bad then you may have to copy grubx64.efi to $ESP/EFI/Microsoft/Boot/bootmgfw.efi to get it to boot.

See also https://www.rodsbooks.com/efi-bootloade … ive-naming & https://wiki.archlinux.org/index.php/GR … _boot_path

Offline

#6 2019-04-25 09:02:53

c.monty
Member
Registered: 2017-10-27
Posts: 18

Re: Arch Linux is not booting, and Grub is not displayed

I have added an entry like this
Boot0000* GRUB HD(1,800,32000,23532fbb-1bfa-4e46-851a-b494bfe9478c)File(\grubx64.efi)
with this command:

efibootmgr --create --disk /dev/sda --part 1 --loader /EFI/GRUB/grubx64.efi --label "Arch Linux" --verbose

This command finished w/o error, however after rebooting the entry is lost.
Seems like any modification here is not persistently stored on device.

Last edited by c.monty (2019-04-25 09:03:07)

Offline

#7 2019-04-25 09:06:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 7,756

Re: Arch Linux is not booting, and Grub is not displayed

Follow head_on_a_stick's advice regarding the fallback UEFI path, depending on your motherboard vendor (MSI by chance?) they  do not implement the UEFI spec correctly and either do not allow adding persistent NVRAM boot entries or only from their own firmware setup.

Last edited by V1del (2019-04-25 09:08:02)

Online

Board footer

Powered by FluxBB