You are not logged in.

#1 2013-12-05 03:29:17

DoctorSelar
Member
Registered: 2013-08-27
Posts: 47

rEFInd - Stuck booting Linux

Hello,

I'm having a bit of trouble with Arch on my laptop. A few months ago, I managed to get rEFInd working on it with the help of people on this forum. Now, I'm having trouble with it again. I'm not sure if the problem lies within rEFInd or Linux. I ran pacman -Syu a couple days ago and it updated Linux as well. When mkinitcpio was running, it showed a ton of errors but still built the image. I rebooted a few hours later and for some reason rEFInd's autodetection didn't find it. I went in using a live USB and tried to remake the image. It came up with the same errors. I rebooted my computer again, and rEFInd detected Linux. When I pushed enter to boot Linux, it hung at the next screen. No error messages, no nothing. I rebooted into the live environment and uninstalled Linux and tried reinstalling it, only to find pacman was having some issues and refused to install Linux because the file already existed. After some Googling, I found pacman's --force option and used that to install Linux. The image compiled fine with no errors, everything seemed to be going fine. When I rebooted, rEFInd still refused to boot Linux. I even tried resetting the refind_linux.conf in the /boot folder, but still nothing. If it helps, this issue started with the previous version of rEFInd, and when I upgraded to the newest version to see if that solved the problem, nothing changed. If you need any more information, don't hesitate to ask.


Never assume. It makes an "ass" of "u" and "me".

Offline

#2 2013-12-05 04:02:20

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: rEFInd - Stuck booting Linux

What errors did you get when building the image?  Also, using --force is never a good idea unless you know exactly what it will do.

Offline

#3 2013-12-05 12:38:30

DoctorSelar
Member
Registered: 2013-08-27
Posts: 47

Re: rEFInd - Stuck booting Linux

There were a ton of errors relating to firmware for something for different laptop brands. I think it was when running the keyboard build hook that these errors occurred.


Never assume. It makes an "ass" of "u" and "me".

Offline

#4 2013-12-05 12:43:11

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: rEFInd - Stuck booting Linux

Post /etc/mkinitcpio.conf and the output of `mkinitcpio -p linux`

Last edited by graysky (2013-12-05 12:43:25)

Offline

#5 2013-12-05 13:39:43

DoctorSelar
Member
Registered: 2013-08-27
Posts: 47

Re: rEFInd - Stuck booting Linux

As I said in my initial post, the generation of the image seems to go fine now as in there are no errors. I still have two firmware warnings but these have occurred every single time I have run mkinitcpio on three computers, so I they're not the problem.

Here's the output of 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: 3.12.2-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 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: 3.12.2-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> 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 initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful

And here's mkinitcpio.conf:

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"

# Uncomment next line for Plymouth
#MODULES="i915"

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS="base"
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS="base udev autodetect block filesystems"
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS="base udev block filesystems"
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS="base udev block mdadm encrypt filesystems"
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev block lvm2 filesystems"
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.

# Add plymouth AFTER base and udev
HOOKS="base udev autodetect modconf block filesystems keyboard fsck"

# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""

I did use Plymouth as a splash screen on startup, but that was one of the first things that I disabled when this problem occurred.


Never assume. It makes an "ass" of "u" and "me".

Offline

#6 2013-12-08 04:55:45

DoctorSelar
Member
Registered: 2013-08-27
Posts: 47

Re: rEFInd - Stuck booting Linux

I've tried some more things over the last few days. I looked in the refind_linux.conf file in the /boot folder and found that the root partition UUID was wrong, but even after I had corrected that it still wouldn't boot. I tried running mkinitcpio -p linux on the live CD and copying the created files over to /boot, still nothing. I even tried restoring rEFInd from a backup I made before switching to the newer version, still nothing. I'll try manually adding an entry for Arch in the refind.conf file in the /boot/efi/EFI/Microsoft/Boot folder (location of the rEFInd .efi file) tomorrow. If anyone has any ideas, I'd be glad to try them out.


Never assume. It makes an "ass" of "u" and "me".

Offline

#7 2013-12-08 11:07:00

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: rEFInd - Stuck booting Linux

DoctorSelar wrote:

... I looked in the refind_linux.conf file in the /boot folder and found that the root partition UUID was wrong, but even after I had corrected that it still wouldn't boot...

Hmm... are you aware of the correct structure of a UEFI boot system, i.e. that file belongs under $esp.  Did you have $esp mounted to /boot/efi when you you copied over the needed files?  Post the output of:

du -xah /boot

Last edited by graysky (2013-12-08 11:08:40)

Offline

#8 2013-12-08 19:18:27

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: rEFInd - Stuck booting Linux

graysky wrote:
DoctorSelar wrote:

... I looked in the refind_linux.conf file in the /boot folder and found that the root partition UUID was wrong, but even after I had corrected that it still wouldn't boot...

Hmm... are you aware of the correct structure of a UEFI boot system, i.e. that file belongs under $esp.

No, it doesn't -- at least, not necessarily. The refind_linux.conf file belongs in the same directory as the kernel. On most systems, this will be Linux's /boot directory, but if the ESP isn't mounted there and you manually copy the kernel to the ESP, refind_linux.conf should go where rEFInd locates the kernel. The refind.conf file belongs in the same directory as the rEFInd binary file (refind_x64.efi or whatever it happens to be called).

Offline

Board footer

Powered by FluxBB