rEFInd boot issue after reinstallation

Hi there,

I somehow messed up and ended up wiping my boot partition.
I used manjaro-architect to format, mount (/boot/efi/) and re-install rEFInd.
First thing I noticed, I lost the maia theme but more importantly, when I’m booting Manjaro I’m facing this error:

Failed to open file: dev\sdb3\boot\intel-ucode.img
Trying to load files to higher address
Failed to open file: dev\sdb3\boot\intel-ucode.img

If I chroot in my install the file is present.
I really don’t get it and have no clue how to fix this.

Thanks for your help,

SecT0uch.

Seems like a potential bug in the /boot/refind_linux.conf. Could you post its contents so I can see how the installer messed it up? Easiest way to fix it manually without knowing precise formatting is to just remove the part with ucode, then it will boot.

Since you cannot boot you can press tab on Manjaro icon twice and you’ll see full cmdline like if you press “e” in grub menu. It is editable, all you need is to adjust parameters to your needs and press enter to boot. Then edit refind_linux file accordingly.

1 Like

Boot to your manjaro installed OS (not liveOS) using [More Complicated Setups] here (I have to assume you do not have a grub.cfg since you installed in m-a but a normal install will generate a grub.cfg). And yes, you can boot using grub despite not having grub.

When booted, best to remove your refind_linux.conf as a new refind install will not remove an existing refind_linux.conf.

Then just reinstall refind package

sudo pacman -Sy refind-efi 
sudo refind-install

Good luck.

Thanks for your replies !
The content of refind_linux.conf :

"Boot with standard options"  "rw  root=UUID=25ad0ebd-8c86-4259-a63c-0a8ddc2090b5  quiet rd.udev.log-priority=3 initrd=/dev/sdb3/boot/intel-ucode.img initrd=/dev/sdb3/boot/initramfs-%v.img"
"Boot to single-user mode"    "rw  root=UUID=25ad0ebd-8c86-4259-a63c-0a8ddc2090b5  quiet rd.udev.log-priority=3 single initrd=/dev/sdb3/boot/intel-ucode.img initrd=/dev/sdb3/boot/initramfs-%v.img"
"Boot with minimal options"   "rw  root=UUID=25ad0ebd-8c86-4259-a63c-0a8ddc2090b5 initrd=/dev/sdb3/boot/intel-ucode.img initrd=/dev/sdb3/boot/initramfs-%v.img"

Do not use /dev/sdxy anywhere but use only UUID
Did you reinstall refind?
Did refind-install gives you this refind_linux.conf ?
It is wrong!

Confirm you have removed your refind_linux.conf, reinstalled refind and do the refind-install.
If that is the case, @Chrysostomus will have to look why it generates this wrong entry.

Do reinstall if you have not.
If you had, change manually to something like this…


"Boot with standard options"    "root=PARTUUID=d7ab9a0b-b52b-4b69-8d1c-bd57b9b98a2e initrd=\intel-ucode.img initrd=\initramfs-4.20-x86_64.img rw"
"Boot to single-user mode"      "root=PARTUUID=d7ab9a0b-b52b-4b69-8d1c-bd57b9b98a2e initrd=\intel-ucode.img initrd=\initramfs-4.20-x86_64.img rw single"
"Boot with minimal options"     "root=PARTUUID=d7ab9a0b-b52b-4b69-8d1c-bd57b9b98a2e initrd=\intel-ucode.img initrd=\initramfs-4.20-x86_64-fallback.img rw single"

Use PARTUUID, get it from ‘blkid’
And where did you get this rd.udev.log-priority=3
It is not necessary.

[edit] -

This file is the one with an install with m-a.

I couldn’t boot using grub (error: no such device: /etc/manjaro-release)
But I did it chrooting in the installation.
The reinstallation gave me this refind_linux.conf:

"Boot with standard options"  "lang=en_US keytable=fr tz=UTC driver=free nouveau.modeset=1 i915.modeset=1 radeon.modeset=1 misobasedir=manjaro misolabel=MJRO1802 quiet systemd.show_status=1"
"Boot to single-user mode"    "lang=en_US keytable=fr tz=UTC driver=free nouveau.modeset=1 i915.modeset=1 radeon.modeset=1 misobasedir=manjaro misolabel=MJRO1802 quiet systemd.show_status=1 single"
"Boot with minimal options"   "ro root=UUID=25ad0ebd-8c86-4259-a63c-0a8ddc2090b5"

When booting up I’m ending in a rootfs shell with ERROR: device '' not found

EDIT :

Just noticed when chrooted that my boot partition seems to be /dev/sdb1, with an other UUID. I’ll try edit my refind-linux.cfg to see if it does the job.

Okay, let’s handle the non-relevant to you issues later, though it requires looking into.
(no /etc/manjaro-release?)
(you chrroot and cannot fixx it?, you probably chroot wrongly (not easy to chroot) now I’m worried you chrooted wrongly…)

Boot up livecd OS and from there change manually refind_linux.conf from there.
You may want to rename your old refind_linux.conf so that you can feel comfortable (it’s okay - to me).
Reboot.

Please recheck typo and get your PARTUUID’s , linux kernels and anything else correct.

I chroot using m-a. mounting the partitions, then I chroot. It seems quite straightforward

Don’t worry about it now (about chroot). Can’t do anything about it.
But personally, I won’t recommend chroot, if not done well or fix problem, chroot will cause more other issues. If it can be avoided.
[edit] - For example, did you mount the $esp before chroot?
And is that mounted properly? (to /mnt/boot/efi?)

Let’s get to fix your your refind_linux.conf.
ps: if refind is not installed properly, it may still fail.
Then we’ll have to get you booted into the OS by trying again…my link that you failed.
Oh, confirm your $esp partition is /boot/efi and not /boot. Should be from your first post, but … sometimes we, er I read things from posts that isn’t properly written.

Reminder -

Before chroot, the partition is mounted to /mnt/boot/efi, when chrooted to /boot/efi

Editing the line using 2 * TAB wouldn’t work for tests ?

Don’t worry about it now. We have things to do.

chrooted to /boot/efi?
did you not chroot to /mnt?
And OS partition mounted as /mnt beforehand?

Before chroot the partition is mounted to /mnt/boot/efi.
After chroot, /dev/sdb1 is mounted to /boot/efi.

But I don’t understand why on livecd the partition is on /dev/sdb1 and m-a generates a conf with /dev/sdb3. I’m trying various configurations.

Editing the line directly with rEFInd editor wouldn’t work, instead of rebooting on livecd every time ?

Show your corrected refind_linux.conf

I tried :

"Boot with standard options"  "rw  root=UUID=25ad0ebd-8c86-4259-a63c-0a8ddc2090b5  quiet rd.udev.log-priority=3 initrd=/dev/sdb3/boot/intel-ucode.img initrd=/dev/sdb3/boot/initramfs-%v.img"

"Boot with standard options"  "rw  root=UUID=fad3-c863  quiet rd.udev.log-priority=3 initrd=/dev/sdb1/boot/intel-ucode.img initrd=/dev/sdb1/boot/initramfs-%v.img"

3rd time I said this…

Can you do this?

Same issue using PARTUUID from blkid (from livecd):
"Boot with standard options" "root=PARTUUID=5d9657d7-7717-431a-acdc-ddc6375d914c initrd=\intel-ucode.img initrd=\initramfs-4.20-x86_64.img rw"

Both files intel-ucode.img and initramfs-4.20-x86_64.img are present.

From livecd OS, provide…

efibootmgr -v
sudo parted -l
sudo blkid

Go to file manager of liveOS, and into the partition of Manjaro, (sda3? tell us if it is sda3 or sda1)
and print out contents of
/etc/fstab
/boot

note to self: see what happens when you don’t ask for this in the beginning?

efimootmgr -v:

BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0001,0004,0005
Boot0001* Windows Boot Manager	HD(2,GPT,e2825b72-e438-46d0-8e3c-cc63a47004e9,0xdf30800,0x64000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)
Boot0003* rEFInd Boot Manager	HD(1,GPT,5d9657d7-7717-431a-acdc-ddc6375d914c,0x800,0x100000)/File(\EFI\refind\refind_x64.efi)
Boot0004* UEFI: Corsair Voyager 3.0 000A	PciRoot(0x0)/Pci(0x14,0x0)/USB(16,0)/HD(1,MBR,0x0,0x1231e0,0x2000)..BO
Boot0005* UEFI:  USB DISK 2.0 PMAP	PciRoot(0x0)/Pci(0x14,0x0)/USB(2,0)/HD(1,MBR,0x1d97b299,0x800,0x1ce2800)..BO

parted -l :

Model: ATA KINGSTON SMS200S (scsi)
Disk /dev/sda: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name                  Flags
 1      1049kB  120GB  120GB  ntfs         Microsoft basic data  msftdata
 2      120GB   120GB  210MB  fat32                              boot, hidden, esp


Model: ATA Samsung SSD 840 (scsi)
Disk /dev/sdb: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size    File system     Name  Flags
 1      1049kB  538MB  537MB   fat32
 3      538MB   116GB  115GB   ext4
 2      116GB   120GB  4194MB  linux-swap(v1)


Model:  USB DISK 2.0 (scsi)
Disk /dev/sdc: 15.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  15.5GB  15.5GB  primary  fat32        boot, lba


Model: Corsair Voyager 3.0 (scsi)
Disk /dev/sdd: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start  End    Size    Type     File system  Flags
 2      611MB  615MB  4194kB  primary               esp

blkid:

/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/sda1: UUID="6753A24C2DBBD997" TYPE="ntfs" PARTLABEL="Microsoft basic data" PARTUUID="e98311b8-9325-44a2-9b79-fc8a35db6e5e"
/dev/sda2: LABEL_FATBOOT="EFI" LABEL="EFI" UUID="8310-F759" TYPE="vfat" PARTUUID="e2825b72-e438-46d0-8e3c-cc63a47004e9"
/dev/sdb1: UUID="FAD3-C863" TYPE="vfat" PARTUUID="5d9657d7-7717-431a-acdc-ddc6375d914c"
/dev/sdb2: UUID="f4454647-61c6-47f5-840b-20b2d33da1a5" TYPE="swap" PARTUUID="da1285a7-bbcd-4a15-85e4-cac48cbd991b"
/dev/sdb3: UUID="25ad0ebd-8c86-4259-a63c-0a8ddc2090b5" TYPE="ext4" PARTUUID="d8288fc2-86d0-4cbe-b47d-5a09e31543d3"
/dev/sdc1: LABEL="ARCHBANG" UUID="B467-8EB8" TYPE="vfat" PARTUUID="1d97b299-01"
/dev/sdd1: UUID="2019-02-17-09-31-35-00" LABEL="MJRO1802" TYPE="iso9660"
/dev/sdd2: SEC_TYPE="msdos" LABEL_FATBOOT="MISO_EFI" LABEL="MISO_EFI" UUID="9493-D28B" TYPE="vfat"