You are not logged in.

#1 2019-05-06 14:42:31

ekrok
Member
Registered: 2019-04-25
Posts: 3

[SOLVED] UEFI not booting after installing Manjaro on external SSD

I installed Manjaro via a bootable USB drive on an external SSD. Now my EFI Arch installation won't boot. If I boot from the Manjaro USB drive and select "Detect EFI bootloaders" I can select my bootloader (hd1,gpt1)/efi/grub_uefi/grubx64.efi and boot into my system.

I added the bootloader manually in the BIOS (by pointing it to /efi/grub_uefi/grubx64.efi), but that does not successfully boot.
My partition layout:

# lsblk
NAME            MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda               8:0    0 238,5G  0 disk  
├─sda1            8:1    0   300M  0 part  
├─sda2            8:2    0   400M  0 part  /boot
└─sda3            8:3    0 237,8G  0 part  
  └─grp0        254:0    0 237,8G  0 crypt 
    ├─grp0-root 254:1    0    60G  0 lvm   /
    └─grp0-home 254:2    0 177,8G  0 lvm   /home
# gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.4

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 500118192 sectors, 238.5 GiB
Model: HFS256G39TND-N21
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): E958A92D-BCA8-7844-B59A-203D318DB3A1
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 2048, last usable sector is 500118158
Partitions will be aligned on 2048-sector boundaries
Total free space is 0 sectors (0 bytes)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          616447   300.0 MiB   EF00  
   2          616448         1435647   400.0 MiB   8300  
   3         1435648       500118158   237.8 GiB   8E00  

The bootloader is located under /dev/sda1:

# tree
.
└── EFI
    └── grub_uefi
        └── grubx64.efi

2 directories, 1 file

/boot:

# tree -L 2
.
├── EFI
├── grub
│   ├── fonts
│   ├── grub.cfg
│   ├── grubenv
│   ├── locale
│   ├── themes
│   └── x86_64-efi
├── initramfs-linux-fallback.img
├── initramfs-linux-lts-fallback.img
├── initramfs-linux-lts.img
├── initramfs-linux.img
├── intel-ucode.img
├── lost+found [error opening dir]
├── vmlinuz-linux
└── vmlinuz-linux-lts

7 directories, 9 files

Some additional information:

# efibootmgr -v
No BootOrder is set; firmware will attempt recovery
# bootctl status
Couldn't find EFI system partition. It is recommended to mount it to /boot or /efi.
Alternatively, use --esp-path= to specify path to mount point.
System:
     Firmware: n/a (n/a)
  Secure Boot: disabled
   Setup Mode: user

Current Boot Loader:
      Product: n/a
     Features: ✗ Boot counting
               ✗ Menu timeout control
               ✗ One-shot menu timeout control
               ✗ Default entry control
               ✗ One-shot entry control
          ESP: n/a
         File: └─n/a

Boot Loaders Listed in EFI Variables:

After running sudo mount /dev/sda1 /efi

# bootctl status
systemd-boot not installed in ESP.
No default/fallback boot loader installed in ESP.
System:
     Firmware: n/a (n/a)
  Secure Boot: disabled
   Setup Mode: user

Current Boot Loader:
      Product: n/a
     Features: ✗ Boot counting
               ✗ Menu timeout control
               ✗ One-shot menu timeout control
               ✗ Default entry control
               ✗ One-shot entry control
          ESP: n/a
         File: └─n/a

Available Boot Loaders on ESP:
          ESP: /efi (/dev/disk/by-partuuid/5eaa63c7-a2f6-8247-9bdf-3cc2eaa7d1ad)

Boot Loaders Listed in EFI Variables:
Boot Loader Entries:
        $BOOT: /efi (/dev/disk/by-partuuid/5eaa63c7-a2f6-8247-9bdf-3cc2eaa7d1ad)

0 entries, no entry could be determined as default.

I suspect there is an easy fix for this and would be grateful for any help.

Last edited by ekrok (2019-05-06 20:11:10)

Offline

#2 2019-05-06 15:09:54

HalosGhost
Forum Fellow
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: [SOLVED] UEFI not booting after installing Manjaro on external SSD

ekrok wrote:

I installed Manjaro

Sounds like this question may belong on another place on the internet.

After running sudo mount /dev/sda1 /efi

What is /efi? Did you modify your rootfs?

All the best,

-HG

Offline

#3 2019-05-06 15:28:36

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,715

Re: [SOLVED] UEFI not booting after installing Manjaro on external SSD

This looks unpleasant

Found valid GPT with protective MBR; using GPT.

Had there been an MBR prior to installing the Other OS?
It smells like Manjaro screwed with your boot partition.  You may need to rebuild it and reinstall your boot loader.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2019-05-06 16:10:58

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 227

Re: [SOLVED] UEFI not booting after installing Manjaro on external SSD

I not use to grub so maybe I saying nonsenses.
But I see weird that EFI partition hasn't mount point ¿What grub_efi/grubx64.efi run and how does its search?

Edit:
Sorry my english:
What does grub_efi/grubx64.efi runs and how does grubx64.efi its search (for what it runs)?

Last edited by Alber (2019-05-06 17:32:57)


Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.

Offline

#5 2019-05-06 16:53:33

ekrok
Member
Registered: 2019-04-25
Posts: 3

Re: [SOLVED] UEFI not booting after installing Manjaro on external SSD

HalosGhost wrote:

Sounds like this question may belong on another place on the internet.

Well I'm running Arch, not Manjaro.

HalosGhost wrote:

After running sudo mount /dev/sda1 /efi
What is /efi? Did you modify your rootfs?

Not to my knowledge.

# bootctl status
Couldn't find EFI system partition. It is recommended to mount it to /boot or /efi.

That is why I created an /efi directory and mounted /dev/sda1 to it.

ewaller wrote:

Had there been an MBR prior to installing the Other OS?
It smells like Manjaro screwed with your boot partition.  You may need to rebuild it and reinstall your boot loader.

The drive Arch is installed on (sda) is using GPT.
How would I go about this? Just reinstalling GRUB?

Alber wrote:

But I see weird that EFI partition hasn't mount point

I am also confused by that. I remember I had some problems when I installed Arch because I wanted to have full disk encryption and EFI, so I followed a guide online, but I can not find it anymore.

Alber wrote:

¿What grub_efi/grubx64.efi run and how does its search?

Sorry, I don't understand what you mean by that?

Offline

#6 2019-05-06 17:08:23

loqs
Member
Registered: 2014-03-06
Posts: 19,101

Re: [SOLVED] UEFI not booting after installing Manjaro on external SSD

If you repeat GRUB#Installation_2 is a firmware entry then created for grub?

Offline

#7 2019-05-06 17:14:04

ekrok
Member
Registered: 2019-04-25
Posts: 3

Re: [SOLVED] UEFI not booting after installing Manjaro on external SSD

loqs wrote:

If you repeat GRUB#Installation_2 is a firmware entry then created for grub?

Yes, that did it. Thank you!

What I did:

mount /dev/sda1 /efi
grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB

Offline

#8 2019-05-06 17:59:15

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] UEFI not booting after installing Manjaro on external SSD

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

Board footer

Powered by FluxBB