You are not logged in.

#1 2012-09-09 07:45:30

angelfalls
Member
Registered: 2012-03-26
Posts: 139

[SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

i am trying to install arch on my macbook (mid-2012) (arch only os) using EFISTUB/rEFInd but unsuccessful. i read and followed wiki step by step.
my partition scheme:
/dev/sda1: 512MB (fat32,/boot/efi)
/dev/sda2: 100MB (ext2,/boot)
/dev/sda3: lvm partition
i use lvm on luks, root partition in lvm partition.

there are some changes from wiki:

/boot/efi/EFI/arch/linux.conf

root=/dev/mapper/arch-root ro rootfstype=ext4 add_efi_memmap initrd=\EFI\arch\initramfs-linux.img reboot=pci noapic

and

/boot/efi/EFI/arch/refind_linux.conf

"Boot with defaults" "root=/dev/mapper/arch-root ro rootfstype=ext4 add_efi_memmap"
"Boot to Terminal"   "root=/dev/mapper/arch-root ro rootfstype=ext4 add_efi_memmap 3"

i blessed within OSX:

$ sudo bless --setBoot --folder /mnt/efi/EFI/refind --file /mnt/efi/EFI/refind/refindx64.efi

any suggestion?

Last edited by angelfalls (2012-09-16 15:56:40)

Offline

#2 2012-09-09 08:08:53

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

What exactly is or is not working? "can't boot" and "unsuccesful" is not enough information for us to go on. Does rEFInd at least start?

In any case; the refind binary is called refind_x64.efi and not refindx64.efi, or is that a typo?

edit: i see that for some reason the wiki instructs to rename the rEFInd binary, i wonder why...

Why are you using both a linux.conf and refind_linux.conf?


ᶘ ᵒᴥᵒᶅ

Offline

#3 2012-09-09 08:27:51

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

thanks for reply.
exactly can't boot, i reboot and only white screen and gray folder in center with a question mark into it. so i don't know rEFInd start or not.
i use refind-efi-x86_64-git AUR package from archlinuxfr repo so it's refindx64.efi

Why are you using both a linux.conf and refind_linux.conf?

this is my mistake, i will try boot my box without rEFInd. (i use only arch on my box)

EDIT: i will try to boot with each linux.conf or refind_linux.conf.
....

Last edited by angelfalls (2012-09-09 09:44:37)

Offline

#4 2012-09-09 10:51:16

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

use only linux.conf or refind_linux.conf doesn't make sense.
if use linux.conf or refind_linux.conf, after reboot and wait ~20s black screen appears with output:

No bootable device -- insert boot disk and press any key

but i set rEFInd as default bootloader.
this is my steps to make rEFInd as default bootloader.

1. boot OSX
2. open termial
3. in termial use these commands: (disk0s1 is EFI partition (UEFISYS partition))
# mkdir /Volumes/abc
# mount -t msdos /dev/disk0s1 /Volumes/abc
# bless --setBoot --folder /Volumes/abc/efi/EFI/refind --file /Volumes/abc/efi/EFI/refind/refindx64.efi

i really don't know what am i wong?

EDIT: i checked, EFI (UEFISYS) partition had boot flag.

Last edited by angelfalls (2012-09-09 11:05:57)

Offline

#5 2012-09-09 17:32:47

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

I'm not sure what the problem could be angelfalls, i myself am not using the AUR package, but here's what i did:

- copy the contents of the refind folder to /EFI/boot/ on the efi partition
- rename the refind binary to /EFI/boot/bootx64.efi, which is the default loader name so it doesn't need to be blessed
- edit refind.conf, create entries for kernels (no refind_linux.conf or linux.conf files)

I am using the efi partition as /boot, so my kernels are placed directly in the partition's root. I'm not using lvm or anything weird.


ᶘ ᵒᴥᵒᶅ

Offline

#6 2012-09-09 18:45:17

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

can you show your partition scheme and  refind.conf (or entry for arch)?

Offline

#7 2012-09-09 19:35:53

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

Partitions:

/dev/sda1 on /boot type vfat (uefisys)
/dev/sda5 on / type ext4 
/dev/sda6 on /home type ext4 

Arch entry in /boot/EFI/boot/refind.conf

menuentry "Arch" {
        loader /vmlinuz-linux
        initrd /initramfs-linux.img
        options "ro root=/dev/sda5 init=/bin/systemd acpi_backlight=vendor quiet i915.i915_enable_rc6=1 libahci.ignore_sss=1"
}

ᶘ ᵒᴥᵒᶅ

Offline

#8 2012-09-09 19:48:31

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

am trying to reinstall arch. your /boot size is 512MB?

Offline

#9 2012-09-09 19:58:10

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

angelfalls wrote:

am trying to reinstall arch. your /boot size is 512MB?

No my boot is 200MB, it's the original efi partition of the MBA.


ᶘ ᵒᴥᵒᶅ

Offline

#10 2012-09-09 19:59:56

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

vfat partitions must be 512 and bigger.

Obviously you don't need something bigger.

Offline

#11 2012-09-09 20:03:12

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

@litemotiv: ok so your /boot partition is 200MB and hex code is ef00 (EFI system)
@89c51: yes wiki say at least 512MB
so why you @litemotiv use 200MB instead?

EDIT: nothing

Last edited by angelfalls (2012-09-09 20:10:36)

Offline

#12 2012-09-09 20:04:41

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

Apple does things their own way.

Offline

#13 2012-09-09 20:07:26

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

ok, i will try create /boot parttion with hexa code EF00 (EFI sys) with 200MB, be right back.

Offline

#14 2012-09-09 21:01:47

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

@litemotiv: i still not clearly something: you mount /dev/sda1 as /boot, after that create /boot/EFI/boot, then copy content of refind folder to /boot/EFI/boot, and rename /boot/EFI/boot/refind/refind_x64.efi to /boot/EFI/boot/bootx86.efi ?
i wil try in that way.

Last edited by angelfalls (2012-09-09 21:04:58)

Offline

#15 2012-09-09 21:22:34

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

angelfalls wrote:

@litemotiv: i still not clearly something: you mount /dev/sda1 as /boot, after that create /boot/EFI/boot, then copy content of refind folder to /boot/EFI/boot, and rename /boot/EFI/boot/refind/refind_x64.efi to /boot/EFI/boot/bootx86.efi ?
i wil try in that way.

Yes i basically rename the refind folder to boot, so the complete path becomes:

/boot/EFI/boot/bootx64.efi

edit: to clarify: i have no separate refind folder under /EFI/boot/, everything that was in the original refind folder is now in the folder 'boot'.

Last edited by litemotiv (2012-09-09 21:26:07)


ᶘ ᵒᴥᵒᶅ

Offline

#16 2012-09-09 21:26:49

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

I installed arch again:
scheme:

/dev/sda1 on /boot type vfat (uefisys)
/dev/sda2 on / type linux lvm (8e00) (contain swap,root,var,home)

I installed rEFInd use the precompiled binaries provided by upstream at http://sourceforge.net/projects/refind/ use these steps:

angelfalls wrote:

@litemotiv: i still not clearly something: you mount /dev/sda1 as /boot, after that create /boot/EFI/boot, then copy content of refind folder to /boot/EFI/boot, and rename /boot/EFI/boot/refind/refind_x64.efi to /boot/EFI/boot/bootx86.efi ?
i wil try in that way.

I use lvm on luks (lvm partition) so this is my entry:

menuentry "Arch" {
        loader /vmlinuz-linux
        initrd /initramfs-linux.img
        options "cryptdevice=/dev/sda2:arch ro root=/dev/sda5 init=/bin/systemd acpi_backlight=vendor quiet i915.i915_enable_rc6=1 libahci.ignore_sss=1"
}

and the result: rEFInd start something like that:

                                  rEFInd
                              Boot Management
                                                                         
                                              
                                                                           >

                        [box1]     [box2]    [box3] 

box1: about rEFInd
box2: shut down computer
box3: reboot computer

rEFInd started but can't boot into arch.

any suggestion?

Offline

#17 2012-09-09 21:28:40

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

litemotiv wrote:
angelfalls wrote:

@litemotiv: i still not clearly something: you mount /dev/sda1 as /boot, after that create /boot/EFI/boot, then copy content of refind folder to /boot/EFI/boot, and rename /boot/EFI/boot/refind/refind_x64.efi to /boot/EFI/boot/bootx86.efi ?
i wil try in that way.

Yes i basically rename the refind folder to boot, so the complete path becomes:

/boot/EFI/boot/bootx64.efi

edit: to clarify: i have no separate refind folder under /EFI/boot/, everything that was in the original refind folder is now in the folder 'boot'.

ok, i will change to this, right back.

Offline

#18 2012-09-09 21:50:56

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

rEFInd started but i still can't boot into arch.
any suggestion?

EDIT: mount /dev/sda1 /boot; mkdir /boot/EFI; cp -r refind /boot/EFI/boot; cd /boot/EFI/boot; mv refind_x64.efi bootx64.efi

Last edited by angelfalls (2012-09-09 21:54:11)

Offline

#19 2012-09-10 07:20:05

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

angelfalls wrote:

rEFInd started but i still can't boot into arch.
any suggestion?

Ok rEFInd starting is the most important part!

What do you get to see, does it show an icon for Arch? If it does, but you can't properly boot it, then you are likely missing some modules in the initramfs. Here are the modules from my mkinitcpio.conf:

MODULES="i915 intel_agp ahci sd_mod ext4"

Regenerate the initramfs with mkinitcpio -p linux and try again.

If it doesn't show an icon for Arch, then the problem should be in the refind.conf.


ᶘ ᵒᴥᵒᶅ

Offline

#20 2012-09-10 10:00:41

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

Unfortunately. my box with:

/etc/mkinitcpio.conf
MODULES="i915 intel_agp ahci sd_mod ext4"

I used both:

menuentry "Arch" {
        loader /vmlinuz-linux
        initrd /initramfs-linux.img
        options "ro root=/dev/sda5 init=/bin/systemd acpi_backlight=vendor quiet i915.i915_enable_rc6=1 libahci.ignore_sss=1"
}

or

menuentry "Arch" {
        loader /vmlinuz-linux
        initrd /initramfs-linux.img
        options "cryptdevice=/dev/sda2:arch ro root=/dev/sda5 init=/bin/systemd acpi_backlight=vendor quiet i915.i915_enable_rc6=1 libahci.ignore_sss=1"
}

and result: no icon for Arch on rEFInd's screen.

steps used to install rEFInd (in chroot)

1. down binary package, unzip
2. mkdir /boot/EFI
3. cp -r <path to binary pkg name>/refind    /boot/EFI/boot
4. mv /boot/EFI/boot/refind_x64.efi    /boot/EFI/boot/bootx64.efi
5. nano /boot/EFI/boot/refind.conf

humm.

Offline

#21 2012-09-10 10:12:32

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

Do you have the files /boot/vmlinuz-linux, /boot/initramfs-linux.img, /boot/initramfs-linux-fallback.img? If not, recreate your initramfs "mkinitcpio -p linux"


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#22 2012-09-10 10:18:32

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

yes, i have these file in /boot partition and i regenerated images (mkinitcpio -p linux)

Last edited by angelfalls (2012-09-10 10:18:58)

Offline

#23 2012-09-10 16:57:45

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

refind.conf:

# Which types of boot loaders to search, and in what order to display them:
# internal      - internal EFI disk-based boot loaders
# external      - external EFI disk-based boot loaders
# optical       - EFI optical discs (CD, DVD, etc.)
# hdbios        - BIOS disk-based boot loaders
# biosexternal  - BIOS external boot loaders (USB, eSATA, etc.)
# cd            - BIOS optical-disc boot loaders
# manual        - use stanzas later in this configuration file
# Default is internal,external,optical
#
scanfor internal,external,manual

smile


ᶘ ᵒᴥᵒᶅ

Offline

#24 2012-09-10 17:43:39

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

thanks for reply.
but it doesn't wok.

i think it can boot but lack one or many options pass to kernel. i dk.

Offline

#25 2012-09-10 17:51:25

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOVLED] Can't boot EFISTUB using rEFInd (or gummiboot)

angelfalls wrote:

thanks for reply.
but it doesn't wok.

i think it can boot but lack one or many options pass to kernel. i dk.

You need to be a bit more verbose angelfalls. For instance, if you can now see the Arch icon but booting it gives errors, please say that instead of "it doesn't work". It's not ideal if we have to guess each time what is or isn't working for you.

Assuming that you now have the icon, then i suspect that you need lvm and/or crypt modules in your initramfs as well.


ᶘ ᵒᴥᵒᶅ

Offline

Board footer

Powered by FluxBB