You are not logged in.

#1 2019-06-18 17:00:25

amitkh
Member
Registered: 2019-06-18
Posts: 6

[SOLVED] rEFInd Blank Screen

I have had Arch installed for a few weeks dual booted with Windows 10 on a Dell Inspiron 7000, and just tried to switch from grub to rEFInd. I installed it manually and it boots into refind, but there are no options; just a blank white screen with the rEFInd logo on top. I have tried both with all drivers and only the x64 ones. GRUB still works fine, only rEFInd doesn't. In textonly mode, the screen is completely blank

This is refind_linux.conf

"Boot with standard options"  "root=UUID=dcabc003-7563-4abf-9459-d29157debedd rw quiet"
"Boot to single-user mode"    "root=UUID=dcabc003-7563-4abf-9459-d29157debedd rw quiet single"
"Boot with minimal options"   "ro root=UUID=dcabc003-7563-4abf-9459-d29157debedd"

refind.conf is completely default except for I uncommented the line to show all the tools to see if they would appear, but they still didn't
https://pastebin.com/34nP40vg

This is the output of efibootmgr

BootCurrent: 0001
Timeout: 2 seconds
BootOrder: 0001,0004,0002,0003,0000,000E,000F,0011,0012,0015,0016
Boot0000* Windows Boot Manager
Boot0001* arch
Boot0002* GRUB
Boot0003* rEFInd
Boot0004* Linux
Boot0005* rEFInd Boot Manager
Boot000E* Diskette Drive
Boot000F* M.2 SATA SSD
Boot0011* CD/DVD/CD-RW Drive
Boot0012* Onboard NIC
Boot0015* USB Storage Device
Boot0016* UEFI:  Flash Disk, Partition 1

EDIT: I added initrd=/EFI/arch/initramfs-linux to refind_linux.conf. Didn't help
I disabled PTT in the Dell BIOS.
Now, Refind starts again with no options, but after about 5 seconds, reboots. Key presses on the refind screen do nothing.

Last edited by amitkh (2019-06-19 02:11:47)

Offline

#2 2019-06-18 17:11:58

d_fajardo
Member
Registered: 2017-07-28
Posts: 462

Re: [SOLVED] rEFInd Blank Screen

Your refind_linux.conf is incomplete. You need to specify your initrd.  Please refer to this rEFind Archwiki. Also check that the UUID in your refind_linux.conf is indeed the UUID of your root partition.

Offline

#3 2019-06-18 18:08:48

amitkh
Member
Registered: 2019-06-18
Posts: 6

Re: [SOLVED] rEFInd Blank Screen

I have updated refind_linux.conf to the following:

"Boot with standard options"  "root=UUID=dcabc003-7563-4abf-9459-d29157debedd initrd=/EFI/arch/initramfs-linux.img rw"
"Boot to single-user mode"    "root=UUID=dcabc003-7563-4abf-9459-d29157debedd single"
"Boot with minimal options"   "ro root=UUID=dcabc003-7563-4abf-9459-d29157debedd"

My EFI partition is mounted to /esp
/esp/EFI/arch is mounted with --bind to /boot
However it made no difference. I also tried /boot/initramfs-linux.img as well as /initramfs-linux.img
None worked

Offline

#4 2019-06-18 20:51:28

d_fajardo
Member
Registered: 2017-07-28
Posts: 462

Re: [SOLVED] rEFInd Blank Screen

Did you check the UUID of your root partition? Did you check if it's PARTUUID or UUID? How did you generate your refind_linux.conf? Via refind-install or manually?
You can also check Methods of Booting Linux.

Edit: Also I forgot you're dual-booting with Windows. You should read the section Installation Alongside Existing Windows Installation. You might need to edit your menu entries on refind.conf.

Last edited by d_fajardo (2019-06-18 21:10:25)

Offline

#5 2019-06-18 21:15:16

cspack
Member
Registered: 2016-09-01
Posts: 24

Re: [SOLVED] rEFInd Blank Screen

For Arch you must uncomment

#extra_kernel_version_strings linux-lts,linux

in refind.conf

Offline

#6 2019-06-18 21:51:07

amitkh
Member
Registered: 2019-06-18
Posts: 6

Re: [SOLVED] rEFInd Blank Screen

Firstly, thank you for your responses

I checked the UUID with this command

[amit@akharch ~]$ ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Jun 18 16:46 2019-06-01-07-25-50-00 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jun 18 16:46 4A5807DF5807C921 -> ../../sda7
lrwxrwxrwx 1 root root 10 Jun 18 16:46 8551-B3F0 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Jun 18 16:46 a2853127-1ea1-4c24-a2b9-7010498fef7e -> ../../sda4
lrwxrwxrwx 1 root root 10 Jun 18 16:46 B09ABC8E9ABC5298 -> ../../sda6
lrwxrwxrwx 1 root root 10 Jun 18 16:46 B0A1-69A4 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 18 16:46 dcabc003-7563-4abf-9459-d29157debedd -> ../../sda5
lrwxrwxrwx 1 root root 10 Jun 18 16:46 F42AFDB32AFD734A -> ../../sda3

/dev/sda5 is my root partition, this matched refind_linux.conf
refind_linux.conf was generated using the script that came with refind, mkrlconf, and then I added the initrd
I installed refind manually to /esp/EFI/refind with the ESP partition mounted to /esp
I uncommented that line and have also tried manually adding stanzas to refind.conf.
None of these have worked

At this point I am not really sure what can be the issue. It seems like refind starts, but then just hangs with only the banner displaying, and then the system reboots in a few seconds

Last edited by amitkh (2019-06-18 21:52:02)

Offline

#7 2019-06-18 23:11:53

d_fajardo
Member
Registered: 2017-07-28
Posts: 462

Re: [SOLVED] rEFInd Blank Screen

Your efibootmgr returns slightly confusing entries:

Boot0000* Windows Boot Manager
Boot0001* arch
Boot0002* GRUB
Boot0003* rEFInd
Boot0004* Linux
Boot0005* rEFInd Boot Manager

It is not clear why you have arch, rEFInd, and rEFInd Boot Manager in your NVRAM entries. For one you have already too many boot entries if you include Grub and Windows. Which .efi is arch using to boot since it's your default (first) boot entry? Did you create that arch entry in your list of bootloaders? How about rEFInd? Did you generate that entry? You can try changing the boot order and boot either rEFInd or rEFInd Boot Manager and see what it gives you.

If I were you, I would delete the arch, rEFInd and rEFInd Boot Manager entries from the NVRAM for a clean slate and start again by issuing the command:

# efibootmgr --create --disk /dev/sdX --part Y --loader /EFI/refind/refind_x64.efi --label "rEFInd Boot Manager" --verbose

as stated in the wiki. You have to change the --disk and --loader part of course depending on your setup. Everything is explained clearly in the Wiki. Alternatively, you can run refind-install but from experience doing it manually is most reliable and precise.

I installed refind manually to /esp/EFI/refind with the ESP partition mounted to /esp]

I'm not entirely clear what you mean by esp here. Is your /esp==/boot? Just trying to clarify if you understood. If you read the wiki, the esp is in italics which means it could be any directory (formatted as FAT32) that would contain your initramfs, For most that /esp would normally be /boot. So is your intramfs.img in /esp?

Offline

#8 2019-06-18 23:21:46

amitkh
Member
Registered: 2019-06-18
Posts: 6

Re: [SOLVED] rEFInd Blank Screen

I did delete all the EFI entries and started fresh, however I did not use that command, I used the one in the rEFInd install guide which didn't specify the disk and partition, however it's on /dev/sda1 which is I believe the default anyway. This still did not work.

I followed the install of a friend of mine, the EFI partition is in fact mounted to the folder /esp, and the I used a mount --bind command to mount the /EFI/arch folder from the EFI partition to /boot. So /boot maps to (efi partition)/EFI/arch, which is where the kernel and initramfs are located. This system works flawlessly on his Thinkpad.

If that is problematic, however, I can remount the ESP partition to /boot if it will work better, my friend just explained that this way pacman will install the kernel to the right folder, the EFI/arch folder.

EDIT: The reason for all the efi entries was due to various reinstalls of GRUB/refind and I didn't clear them.
This is the new output

BootCurrent: 0008
Timeout: 0 seconds
BootOrder: 0009,0008,0000,0006
Boot0000* Windows Boot Manager	HD(1,GPT,66a57aee-a55b-43b4-a86d-3a2ccd0b24bb,0x800,0xfa000)/File(\EFI\refind\refind_x64.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.}...C................
Boot0006* UEFI: SanDisk X400 M.2 2280 256GB, Partition 1	HD(1,GPT,66a57aee-a55b-43b4-a86d-3a2ccd0b24bb,0x800,0xfa000)/File(EFI\Microsoft\Boot\bootmgfw.efi)..BO
Boot0008* arch	HD(1,GPT,66a57aee-a55b-43b4-a86d-3a2ccd0b24bb,0x800,0xfa000)/File(\EFI\arch\grubx64.efi)
Boot0009* rEFInd	HD(1,GPT,66a57aee-a55b-43b4-a86d-3a2ccd0b24bb,0x800,0xfa000)/File(\EFI\refind\refind_x64.efi)

Last edited by amitkh (2019-06-18 23:33:53)

Offline

#9 2019-06-18 23:50:48

d_fajardo
Member
Registered: 2017-07-28
Posts: 462

Re: [SOLVED] rEFInd Blank Screen

I used the one in the rEFInd install guide which didn't specify the disk and partition, however it's on /dev/sda1 which is I believe the default anyway.

Yes it looks like sda1 but you have to tell efibootmgr to '... --create --disk /dev/sda --part 1...' --> create an entry with /dev/sda partition 1 as your EFI partition.

I am not familiar with the --bind command and it looks like your friend's Thinkpad is able to mount --bind the partition before rEFind. However to me this --bind is complicated. There is a leaner, cleaner way to setup rEFInd.

I assume your /boot directory is formatted as FAT-32 in which case can you post the output of:

ls /boot

You shouldn't worry about pacman doing his job. What you need is initramfs.img and refind_x64.efi in the right directories. refind_x64.efi is what your NVRAM looks for to boot rEFIind and initramfs.img kick-starts the boot process.

I suggest having a good read of the rEFInd wiki again and try to understand what really is happening in the boot process rather than just copying what someone else has done. You can always come back to the forum if you have a problem understanding but do post the output of ls /boot.

Offline

#10 2019-06-19 00:03:01

amitkh
Member
Registered: 2019-06-18
Posts: 6

Re: [SOLVED] rEFInd Blank Screen

Thank you very much, I will take a look at that.
Here is ls /boot

drwxr-xr-x  4 root root 4.0K Jun 18 12:50 .
drwxr-xr-x 19 root root 4.0K Jun  6 13:48 ..
drwxr-xr-x  2 root root 4.0K Jun  6 13:55 efi
drwxr-xr-x  6 root root 4.0K Jun 18 16:38 grub
-rwxr-xr-x  1 root root 119K Jun 18 16:37 grubx64.efi
-rwxr-xr-x  1 root root  30M Jun 18 11:29 initramfs-linux-fallback.img
-rwxr-xr-x  1 root root 8.8M Jun 18 11:29 initramfs-linux.img
-rwxr-xr-x  1 root root  288 Jun 18 12:50 refind_linux.conf
-rwxr-xr-x  1 root root 5.8M Jun 11 11:15 vmlinuz-linux

Offline

#11 2019-06-19 00:22:45

amitkh
Member
Registered: 2019-06-18
Posts: 6

Re: [SOLVED] rEFInd Blank Screen

Thank you very much for your help!
I remounted the ESP partition at /mnt/boot, updated the fstab, reinstalled rEFInd, and it worked.

Offline

Board footer

Powered by FluxBB