Hi there,
I'm succesfully install refind 0.9.2 on my machine, but I have a problem. If I shutdown the machine and turn it on - all works, but if I use reboot instead of shutdown, refind menu doesn't show up. The same issue come up if I enter the UEFI setup and exit it. How can I fix it?
Sorry for my english.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does this problem occur when you reboot from any OS, or just from some of them?
What does appear when you reboot but don't see rEFInd? (Does it boot to another OS, launch the setup utility, etc.? Are any error messages shown?) If you see something complex, posting a digital photo or even a video may be helpful.
If any Linux distribution is one of your OSes, what does efibootmgr -v show (typed as root or using sudo)?
What EFI boot loaders are installed, and under what names? In Linux, typing find /boot -iname "*.efi" should return a list. (You may need to precede that command with sudo, depending on your mount options.)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This sounds like a firmware bug to me; however, you might want to investigate the /boot/efi/EFI/Boot/bootx64.efi file. That's the "fallback" boot loader, and it's possible that it's either related to the problem or could be a workaround, in any of several ways:
The computer could be booting EFI/Boot/bootx64.efi when you reboot, rather than booting the regular boot loader, thus causing the problem.
The computer could be booting EFI/Boot/bootx64.efi when you start cold, and this program may be passing control to rEFInd or fixing the firmware's boot variables, thus partially working around the problem -- but only on cold boots, not on reboots. (Fedora ships with a program that's often installed here to try to work around buggy firmware by storing and then restoring EFI boot variables, for instance.)
Copying rEFInd to this filename might work around the problem. See the Alternative Naming Options section of the rEFInd installation instructions for information on how to do this.
Overall, I recommend you try to figure out what this file is. Check its file size vs. other .efi file sizes on your ESP, and look for other files in that directory that might provide clues -- for instance, configuration files, etc. You can then try experimenting by moving/renaming EFI/Boot, replacing that file with rEFInd, etc. This may enable you to work around the problem, or at least figure out what's wrong.
Another thing you might try is upgrading your firmware. Check with your computer's manufacturer to see if there's a firmware (they'll probably call it a "BIOS") update. If there is one, you can try applying it -- but be aware that this sometimes breaks the boot order, so you may need to use efibootmgr to reset it. (Re-installing rEFInd is an overkill way to do this, if you're unfamiliar with efibootmgr.)
One more thing you might try is entering your firmware and disabling your network-boot options. Your efibootmgr output indicates that these are active, and it's conceivable that they're somehow interfering with normal operation. This is a long shot, though.
One further diagnostic question: When you reboot, do you see any of the normal startup messages, like your computer manufacturer's logo? If not, it's possible that your computer is hanging on the shutdown part of the reboot operation, rather than on the startup portion. This would put the whole problem in a new light. There are some Linux kernel options that change how Linux handles shutdown and restart operations, and passing those might help. See here for some basic information on this subject. The fact that you're seeing the same problem in both Windows and Linux suggests that this isn't the cause, though -- or if it is, it's because of a firmware bug that will take a firmware update to fix.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
I'm succesfully install refind 0.9.2 on my machine, but I have a problem. If I shutdown the machine and turn it on - all works, but if I use reboot instead of shutdown, refind menu doesn't show up. The same issue come up if I enter the UEFI setup and exit it. How can I fix it?
Sorry for my english.
Some questions:
efibootmgr -v
show (typed asroot
or usingsudo
)?find /boot -iname "*.efi"
should return a list. (You may need to precede that command withsudo
, depending on your mount options.)This sounds like a firmware bug to me; however, you might want to investigate the
/boot/efi/EFI/Boot/bootx64.efi
file. That's the "fallback" boot loader, and it's possible that it's either related to the problem or could be a workaround, in any of several ways:EFI/Boot/bootx64.efi
when you reboot, rather than booting the regular boot loader, thus causing the problem.EFI/Boot/bootx64.efi
when you start cold, and this program may be passing control to rEFInd or fixing the firmware's boot variables, thus partially working around the problem -- but only on cold boots, not on reboots. (Fedora ships with a program that's often installed here to try to work around buggy firmware by storing and then restoring EFI boot variables, for instance.)Overall, I recommend you try to figure out what this file is. Check its file size vs. other
.efi
file sizes on your ESP, and look for other files in that directory that might provide clues -- for instance, configuration files, etc. You can then try experimenting by moving/renamingEFI/Boot
, replacing that file with rEFInd, etc. This may enable you to work around the problem, or at least figure out what's wrong.Another thing you might try is upgrading your firmware. Check with your computer's manufacturer to see if there's a firmware (they'll probably call it a "BIOS") update. If there is one, you can try applying it -- but be aware that this sometimes breaks the boot order, so you may need to use
efibootmgr
to reset it. (Re-installing rEFInd is an overkill way to do this, if you're unfamiliar withefibootmgr
.)One more thing you might try is entering your firmware and disabling your network-boot options. Your
efibootmgr
output indicates that these are active, and it's conceivable that they're somehow interfering with normal operation. This is a long shot, though.One further diagnostic question: When you reboot, do you see any of the normal startup messages, like your computer manufacturer's logo? If not, it's possible that your computer is hanging on the shutdown part of the reboot operation, rather than on the startup portion. This would put the whole problem in a new light. There are some Linux kernel options that change how Linux handles shutdown and restart operations, and passing those might help. See here for some basic information on this subject. The fact that you're seeing the same problem in both Windows and Linux suggests that this isn't the cause, though -- or if it is, it's because of a firmware bug that will take a firmware update to fix.
The issue was with windows fast boot. I forgot to disable it. Thanks for the help.