You are not logged in.
sr, there isn't arch icon.
rEFInd
Boot Management
>
[box1] [box2] [box3]
box1: about rEFInd
box2: shut down computer
box3: reboot computer
icon for box1,box2,box3,rEFInd.
and
my /etc/mkinitcpio.conf
HOOK=(.....encrypt lvm2 filesystem....)
Last edited by angelfalls (2012-09-10 17:57:22)
Offline
Did you change the line in refind.conf to:
scanfor internal,external,manual
?
It would be really strange if it still didn't show the Arch icon after that, since 'manual' means that it will always add the hardcoded stanzas in the config file...
ᶘ ᵒᴥᵒᶅ
Offline
yep, am sure i uncommented out that line in refind.conf.
and use
HOOK=(.....encrypt lvm2 filesystem....)
MODULES="i915 intel_agp ahci sd_mod ext4"
options "ro root=/dev/mapper/arch-root init=/bin/systemd acpi_backlight=vendor quiet i915.i915_enable_rc6=1 libahci.ignore_sss=1"
or
options "ro root=/dev/mapper/arch-root init=/bin/systemd acpi_backlight=vendor quiet i915.i915_enable_rc6=1 libahci.ignore_sss=1"
or
options "cryptdevice=/dev/sda2:arch ro root=/dev/mapper/arch-root init=/bin/systemd acpi_backlight=vendor quiet i915.i915_enable_rc6=1 libahci.ignore_sss=1"
or
options "cryptdevice=/dev/sda2:arch ro root=/dev/mapper/arch-root init=/bin/systemd acpi_backlight=vendor quiet i915.i915_enable_rc6=1 libahci.ignore_sss=1 noapic"
and the same result: no arch icon.
Last edited by angelfalls (2012-09-10 18:16:26)
Offline
I have just added this bogus entry:
menuentry "Bla" {
loader /vmlinuz-bla
initrd /initramfs-bla.img
options "ro root=/dev/sda50"
}
and after rebooting it showed a new icon for that. So it must be something trivial and related to rEFInd (config) itself, not the kernel etc.
ᶘ ᵒᴥᵒᶅ
Offline
I tried this entry:
menuentry Arch {
loader /vmlinuz-linux
initrd /initramfs-linux.img
options "cryptdevice=/dev/sda2:arch ro root=/dev/mapper/arch-root"
no arch icon appears.
due to encrypted partition?
Offline
I tried this entry:
menuentry Arch { loader /vmlinuz-linux initrd /initramfs-linux.img options "cryptdevice=/dev/sda2:arch ro root=/dev/mapper/arch-root"
no arch icon appears.
due to encrypted partition?
No it should always appear, refind doesn't check if it exists or not. I got a Bla icon while it is obviously non-existent. Something else must be wrong.
ᶘ ᵒᴥᵒᶅ
Offline
/dev/sda1 /boot type vfat (UEFISYS)
# mount /dev/sda1 /mnt; cd /mnt
# ls -l
EFI/ initramfs-linux-fallback.img* initramfs-linux.img* screenshot.bmp* vmlinuz-linux*
# ls EFI/
boot/
# ls EFI/boot/
bootx64.efi* drivers_ia32/ drivers_x64/ icon/ refind.conf* refind_ia32.efi*
i don't think i miss something.
EDIT: can you post entirely your refind.conf.
Last edited by angelfalls (2012-09-10 19:06:02)
Offline
ignore.
Last edited by angelfalls (2012-09-11 00:40:50)
Offline
Here's my refind.conf, nothing special:
timeout 3
showtools shell
scanfor internal,external,manual
menuentry "Arch CK" {
loader /vmlinuz-linux-ck
initrd /initramfs-linux-ck.img
options "ro root=/dev/sda5 init=/bin/systemd acpi_backlight=vendor quiet elevator=bfq i915.i915_enable_rc6=1 libahci.ignore_sss=1"
}
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"
}
Sleep well.
P.s., you do have the icons folder under /boot/EFI/boot/icons? I don't know how rEFInd reacts when it's missing it's default icons.
ᶘ ᵒᴥᵒᶅ
Offline
So this is my arch:
timeout 5
showtools shell
scanfor internal,external,manual
menuentry Arch {
icon EFI/boot/icons/os_arch.icns
loader /vmlinuz-linux
initrd /initramfs-linux.img
options "cryptdevice=/dev/sda2:arch ro root=/dev/mapper/arch-root"
}
If i use "showtools shell" no button appear except "rEFInd" in screen. Otherwise the same result from the last one. (no arch icon)
Offline
any suggestion.
Offline
this weekend, i continues trying to fix this problem. only linux icon appear with follow config.
partition scheme:
/boot type fat32
rest of disk type linux-lvm
my refind.conf
timeout 5
scanfor internal,external,optical
scan_all_linux_kernels
menuentry Arch {
icon EFI/boot/icons/os_arch.icns
loader vmlinuz-arch.efi
initrd initramfs-arch.img
options "cryptdevice=/dev/sda2:arch ro root=/dev/mapper/arch-root init=/bin/systemd acpi_backlight=vendor quiet i915.i915_enable_rc6=1 libahci.ignore_sss=1"
disabled
}
menuentry Linux {
icon EFI/refind/icons/os_linux.icns
volume KERNELS
loader bzImage-3.3.0-rc7
initrd initrd-3.3.0.img
options "ro root=UUID=532432........."
disabled
}
/boot/
|--EFI
| |----boot
| |--bootx64.efi
| |--drivers_ia32
| |--drivers_x64
| |--icons
| |--initramfs-arch.img
| |--refind.conf
| |--refind_ia32.efi
| |--vmlinuz-arch.efi
|----initramfs-linux-fallback.img
|----initramfs-linux.img
|----vmlinuz-linux
rEFInd
Boot Management
[linux icon]
[box1] [box2] [box3]
box1: about rEFInd
box2: shut down computer
box3: reboot computer
linux icon: boot vmlinuz-linux from EFI
after selecting [linux icon] this output appears:
rEFInd - Booting OS
Starting vmlinuz-linux
Using load options 'vmlinuz-linux initrd=\initramfs-linux.img '
any suggestion ?
EDIT: $ bless --setBoot --folder /Volumes/EFI/boot --file /Volumes/EFI/boot/bootx64.efi
Last edited by angelfalls (2012-09-15 15:08:35)
Offline
@angelfalls: https://wiki.archlinux.org/index.php/UE … ing_rEFInd - see /boot/efi/EFI/arch/refind_linux.conf . Create a similar file at /boot/efi/refind_linux.conf . That is the file rEFInd uses for boot options.
You can also try gummiboot-efi-x86_64 from AUR.
Last edited by the.ridikulus.rat (2012-09-15 15:27:12)
Offline
# mv /boot/EFI/boot/refind.conf /boot/EFI/boot/refind.conf-example
my /boot/EFI/refind_linux.conf
"Boot with defaults" "cryptdevice=/dev/sda2:arch root=/dev/mapper/arch-root ro rootfstype=ext4 add_efi_memmap"
"Boot to Terminal" "cryptdevice=/dev/sda2:arch root=/dev/mapper/arch-root ro rootfstype=ext4 add_efi_memmap 3"
and no arch icon (linux icon) appear
i will try gummiboott-efi . thanks for your suggestion.
Offline
# mv /boot/EFI/boot/refind.conf /boot/EFI/boot/refind.conf-example
my /boot/EFI/refind_linux.conf"Boot with defaults" "cryptdevice=/dev/sda2:arch root=/dev/mapper/arch-root ro rootfstype=ext4 add_efi_memmap" "Boot to Terminal" "cryptdevice=/dev/sda2:arch root=/dev/mapper/arch-root ro rootfstype=ext4 add_efi_memmap 3"
and no arch icon (linux icon) appear
i will try gummiboott-efi . thanks for your suggestion.
Try refind text mode
Offline
@the.ridikulus.rat: menu does'nt appear.
Offline
i am wondering "folder" arg in bless command in case of gummiboot is /boot/efi/EFI or /boot/efi ?
$ sudo bless --setBoot --folder /boot/efi/EFI/ --file /mnt/efi/EFI/arch/gummiboot/gummibotx64.efi
/boot/efi/EFI/arch # ls
gummiboot/ initramfs-arch.img* vmlinuz-arch.efi*
/boot/efi/loader/entries/archlinux-core.conf
title Arch Linux
linux /EFI/arch/vmlinuz-arch.efi
initrd /EFI/arch/initramfs-arch.img
options cryptdevice=/dev/sda2:arch root=/dev/mapper/arch-root ro rootfstype=ext4
Last edited by angelfalls (2012-09-15 16:16:23)
Offline
i am wondering "folder" arg in bless command in case of gummiboot is /boot/efi/EFI or /boot/efi ?
$ sudo bless --setBoot --folder /boot/efi/EFI/ --file /mnt/efi/EFI/arch/gummiboot/gummibotx64.efi
I think it should be
$ sudo bless --setBoot --folder /boot/efi/EFI/arch/gummiboot --file /mnt/efi/EFI/arch/gummiboot/gummibootx64.efi
ie. the directory in which gummibootx64.efi resides. I am not sure because I have not used a Mac.
Offline
i moved rEFInd config directory to home directory.
# mv /boot/EFI/boot /home
then installed gummiboot-efi-x86_64-git, setup EFISTUB
Setting up EFISTUB
1.Create an FAT32 UEFI System Partition - Unified_Extensible_Firmware_Interface#Create_an_UEFI_System_Partition_in_Linux
2.Mount the UEFI System Partition at /boot/efi.
3.Create /boot/efi/EFI/arch/ directory.
4.Copy /boot/vmlinuz-linux to /boot/efi/EFI/arch/vmlinuz-arch.efi . The .efi file extension is very important as some UEFI firmwares refuse to launch a file without the .efi file extension.
5.Copy /boot/initramfs-linux.img to /boot/efi/EFI/arch/initramfs-arch.img.
6.Copy /boot/initramfs-linux-fallback.img to /boot/efi/EFI/arch/initramfs-arch-fallback.img.
7.Create /boot/efi/EFI/arch/linux.conf with the kernel parameters to be passed to the kernel (example file shown below). This file should consist of only one line and simply contains all the kernel parameters to be used by the EFISTUB loader to the kernel.
$ sudo bless --setBoot --folder /boot/efi/EFI/arch/gummiboot --file /mnt/efi/EFI/arch/gummiboot/gummibootx64.efi
gummiboot was configed as above.
after reboot and hold "alt" to alter boot partition, EFI partition disappear. EFI partiton couldn't recognised. no boot capability.
EDIT: i tried both with /boot/efi and /boot/efi/EFI (and /boot/efi/EFI/arch/gummiboot)
Last edited by angelfalls (2012-09-15 16:54:34)
Offline
$ sudo bless --setBoot --folder /boot/efi/EFI/arch/gummiboot --file /mnt/efi/EFI/arch/gummiboot/gummibootx64.efi
From what i saw in other websites, I think it should be:
$ sudo bless --setBoot --folder <mountpoint of UEFISYS in Mac OS> --file <Actual file path>
So it should be:
$ sudo bless --setBoot --folder /mnt/efi --file /mnt/efi/EFI/arch/gummiboot/gummibootx64.efi
Offline
I've just refreshed Arch, following the wiki and http://freedesktop.org/wiki/Software/gummiboot, bless as you said above. but i still can't boot into arch. no EFI partition when hold "alt", it's mean boot partition can't be recognized, so i think:
1. setboot problem (i dk think this is problem).
2. bug in gummiboot itself.
EDIT: follow this wiki page: https://wiki.archlinux.org/index.php/Gummiboot , i want to ask: CONFIG_EFI_STUB is enabled by default in kernel 3.5.3-1? if not how can i enable it?
Last edited by angelfalls (2012-09-15 18:53:10)
Offline
because i want to boot directly. i moved gummiboot.efi -> EFI/boot/bootx64.efi, now EFI partition was recoginized but still can't boot into arch. no output error, just white screen appear. :bad
/boot/
|--EFI
| |----boot
| |--bootx64.efi
| |--initramfs-arch.img
| |--entries
| |--loader.conf
| |--vmlinuz-arch.efi
|----initramfs-linux-fallback.img
|----initramfs-linux.img
|----vmlinuz-linux
Offline
Hello angelfalls.
Have you look at rodsbooks page about refind ?? if not check here ->> http://www.rodsbooks.com/refind/installing.html
Scroll down to Installing rEFInd Manually Using Mac OS X. And you can also look at Alternative Naming Options further down.
I struggled with refind for a week and follow arch wiki and could not get it to work. But when i check rods page i start over and removed everything and follow both guides for Linux. And it took me 5 min to get it running like this ->> http://www.rodsbooks.com/refind/
Maby worth a try?
My refind.conf settings. (The only config i use) arch wiki use 2??
timeout 10
scanfor internal,external,optical,manual
showtools shell,exit,reboot,shutdown
menuentry "Arch CK" {
icon \EFI\BOOT\icons\os_arch.icns
loader \vmlinuz-linux-ck
initrd \initramfs-linux-ck.img
options "ro root=/dev/sda3 acpi_backlight=vendor quiet elevator=bfq"
}
menuentry "Arch" {
icon \EFI\BOOT\icons\os_arch.icns
loader \vmlinuz-linux
initrd \initramfs-linux.img
options "ro root=/dev/sda3 acpi_backlight=vendor quiet"
}
I saw user litemotives settings for kernels i use in this thread. And i used them when i install refind again and changed to my needs .(Thanks litemotive).
freddie
Offline
OK, thank you guys, i'm booted into arch and everything seem be ok.
I use gummiboot, it's very simple and nice. Using /boot as $esp https://wiki.archlinux.org/index.php/Gummiboot
# tree -L 3 /boot
/boot/
|--EFI
| |----boot
| |--bootx64.efi
|----initramfs-linux-fallback.img
|----initramfs-linux.img
|----vmlinuz-linux
|----loader
|------|--loader.conf
|------|--entries
|------|----|arch.conf
/boot/loader/loader.conf
timeout 0
default arch
/boot/loader/entries/arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options cryptdevice=/dev/sda2:arch ro root=/dev/mapper/arch-root init=/bin/systemd acpi_backlight=vendor i915.i915_enable_rc6=1 libahci.ignore_sss=1 noapic quiet
# mkdir -p /boot/EFI/boot
# cp /usr/lib/gummiboot/gummiboot.efi /boot/EFI/boot/bootx64.efi
# bless --setBoot --folder <mountpoint of UEFISYS in Mac OS> --file <Actual file path>
Assuming my mountpoint is /Volumes/boot in mac os x, this is bless example:
#pwd
/Volumes
# bless --setBoot --folder boot --file boot/EFI/boot/bootx64.efi
# reboot
Partition scheme:
/dev/sda1 on /boot type vfat (fat32)
rest of disk linux-lvm (lvm on luks: /dev/mapper/{arch-root, arch-var, arch-home}
That's what i did to install arch on mabook air mid-2012, note: i used /boot as ESP.
The title of topic will be changed to : Can't boot EFISTUB using rEFInd (or gummiboot)
PS. plz update wiki if needed. i dk how to update . thanks.
Offline