You are not logged in.

#26 2011-12-02 01:24:29

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

I have an identical copy at /boot/efi/efi/grub/grub.cfg.

I've removed /boot/grub/grub.cfg.

Should the directory /boot/grub exist at all? It contains copies of device.map and video.lst. These also exist at /boot/efi/efi/grub/grub.cfg. Actually, on second thoughts, I'm pretty much sure this exists only because I thought grub.cfg was meant to be here so I should probably delete it.

Yes, I set the fs type to the EFI system partition type in gdisk which is the same as setting the bootable flag on it in parted as I understand it.

Should it be /boot/efi/EFI rather than /boot/efi/efi? The wiki says /boot/efi/efi but I thought it did not matter on a vfat fs in any case.

Thanks.

Last edited by cfr (2011-12-02 01:36:37)


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Online

#27 2011-12-02 01:35:21

Mavirick
Member
Registered: 2011-12-01
Posts: 62

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

/boot/grub

Is where the wiki has you create your grub.cfg and then says to copy it to

/boot/efi/efi/grub/grub.cfg

Back to the other question though, is the vfat32 set with the boot flag?

Offline

#28 2011-12-02 01:39:34

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

Yes, /dev/sda1 has the boot flag set in the parted-on-gpt sense (not in the fdisk-mbr sense).

parted shows:
1 1049kB 213MB 212MB fat32 EFI System boot


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Online

#29 2011-12-02 01:47:37

Mavirick
Member
Registered: 2011-12-01
Posts: 62

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

So just so I have everything clear you have it setup that you can choose GRUB2 from the UEFI boot menu, the problem is that when you choose that method, you are told no operating systems are installed correct?

Offline

#30 2011-12-02 01:56:34

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

I'm not sure. Is the UEFI boot menu the menu I get if I use F12 at start?

If I just boot, I don't get a menu at all. I just get straight to the complaint about no operating system.

If I use F1 at start, I can see GRUB2 as the first choice in the list of boot priorities.

If I use F12 at start, I get GRUB2 and the HDD in the boot menu and selecting either causes the screen to flash and the menu to reappear.

If I am meant to get the UEFI automatically on boot, I don't get it. I can only get the UEFI BIOS setup (F1) or the machine's boot/application menu (F12).

If the UEFI boot menu is supposed to work like the first menu you get with yaboot  on powerpc (which I think is basically the open firmware menu), that never appears.


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Online

#31 2011-12-02 02:08:43

Mavirick
Member
Registered: 2011-12-01
Posts: 62

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

Offline

#32 2011-12-02 02:10:18

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

The grub2 wiki page redirects to the instructions for creating the UEFI partition on the UEFI wiki page. I followed that but I did not install the UEFI shell which is mentioned earlier on that page as the grub2 instructions didn't seem to require that. Was I meant to do that? There's no "Launch EFI Shell from filesystem device" option in my UEFI BIOS setup or in the machine's boot/application menus.


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Online

#33 2011-12-02 02:28:49

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

My understanding was that the default Arch Linux kernel was configured with support for UEFI.

I am definitely using the 64 bit version of grub2-efi. file /boot/efi/efi/grub/* shows everything is "ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped" except for the text files. (And I installed the 64 bit version of Arch.)

According to the page on detecting firmware, anything non-Mac will have 64 bit UEFI.


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Online

#34 2011-12-02 02:39:38

Mavirick
Member
Registered: 2011-12-01
Posts: 62

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

Okay so GRUB2 is listed as the first boot device, and since you don't do anything it tries to boot GRUB2 which then gives you the no operating system found.

So it looks like you have UEFI booting working and now just need to get GRUB2 to recognize your Arch install.

Try this and then reboot and see if you make any progress.

cp /boot/efi/efi/grub/grub.efi /boot/efi/efi/boot/bootx64.efi

Offline

#35 2011-12-02 03:12:38

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

I already did that.


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Online

#36 2011-12-02 03:17:16

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

Mavirick wrote:

Okay so GRUB2 is listed as the first boot device, and since you don't do anything it tries to boot GRUB2 which then gives you the no operating system found.

So it looks like you have UEFI booting working and now just need to get GRUB2 to recognize your Arch install.

I'm not sure about that. If that was what was going on, I would not expect it to work with a USB key in unless I manually brought up the machine's boot menu. If it is booting UEFI and automatically trying to boot GRUB2, I should get no operating system found no matter what because GRUB2 should always fail in the same way. Or am I missing something?


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Online

#37 2011-12-02 03:18:22

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

Giving up on this for tonight. If anybody has any further suggestions, I'll try them tomorrow! Thanks again.


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Online

#38 2011-12-02 06:26:25

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

Mavirick wrote:
/boot/grub

Is where the wiki has you create your grub.cfg and then says to copy it to

/boot/efi/efi/grub/grub.cfg

Back to the other question though, is the vfat32 set with the boot flag?

No. The /boot/grub/grub.cfg created is for grub2-bios. It loads grub2-bios video modules, not grub2-efi modules. To create the correct config we need to use

# sed 's|/boot/grub|/boot/efi/efi/grub|g' /sbin/grub-mkconfig > /sbin/grub_efi-mkconfig
# grub_efi-mkconfig -o /boot/efi/efi/grub/grub.cfg

Offline

#39 2011-12-02 06:30:23

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

@cfr: Thats strange. AFAIK everything in you system is correct. I guess the issue is with the firmware. Can you post details of the Motherboard and BIOS/UEFI info? Any photo of boot menu options (if possible)? Try to launch UEFI Shell in any way. Maybe the shell.efi as /efi/boot/bootx64.efi from a USB drive?

Offline

#40 2011-12-02 06:31:38

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

cfr wrote:

There's no "Launch EFI Shell from filesystem device" option in my UEFI BIOS setup or in the machine's boot/application menus.

That is specific to Asus SandyBridge+ Motherboards with AMI (American Megatrends) firmware.

Offline

#41 2011-12-02 06:36:23

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

cfr wrote:

I rebooted expecting it to find no OS and surprisingly got a grub prompt.

Now I have no idea what to do next! The wiki describes two grub prompts:
sh: grub>
grub rescue>

Mine looks like this:
grub>

So I'm guessing it is the "normal" command shell but I'm not sure. I can set the pager and that is not supposed to be possible in rescue mode.

This is weirdly an improvement over no OS.

I know I'm meant to manually launch /boot/efi/efi/grub/grub.efi from the firmware but I've no idea if that's what I've done. I suspect not since I don't have a regular shell prompt and can't run ordinary commands.

Can anybody tell me what to do next?

Yes it is normal prompt. can you post the output of

grub> set

That should give the list of all variables defined. I want to know what is "prefix" set to. SInce you got grub prompt, that means grub.efi is already launched but then grub.efi is either unable to find its prefix dir or its config file (grub.cfg)

Offline

#42 2011-12-02 15:10:19

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

Yes it is normal prompt. can you post the output of

grub> set

I'm beginning to think I must be wrong about this ever happening. I can't get a grub prompt now - just "No operating system found". (But I'm sure it did get me a prompt when I tried and EFI system partition the first time...)

@cfr: Thats strange. AFAIK everything in you system is correct.

I didn't produce grub.cfg in the way you described for EFI. If the wiki explained that, I somehow missed it. I take it it should still work with core.efi, though?

I regenerated grub.cfg using the instructions you gave here and reran efibootmgr with the standard line from the wiki.

I guess the issue is with the firmware.

This does not sound like good news...

Can you post details of the Motherboard and BIOS/UEFI info? Any photo of boot menu options (if possible)?

My camera's at home but I could manage a photo tonight if necessary. For now:

[ThinkPad Setup/Main]
UEFI BIOS Version 8QET53WW (1.14 )
UEFI BIOS Date (Year-Month-Day) 2011-10-25
Embedded Controller Version 8QHT21WW (1.09 )
Machine Type Model 3045CTO
<serial number>
<serial number>
Asset Tag Information No Asset Information
CPU Type Intel(R) Core(TM) i3-2367M CPU
CPU Speed 1.40GHz
Installed memory 2048MB [I've got more RAM on order but this is what came installed]
<uuid>
<mac address>

[ThinkPad Setup/Config]
Available submenus: Network, USB, Keyboard/Mouse, Display, Power, Beep and Alarm, Serial ATA (SATA), CPU
I can post any which might be relevant. Most seem unlikely.
Serial ATA (SATA): SATA Controller Mode Option is set to AHCI (Have also tried Compatibility mode)

[ThinkPad Setup/Date/Time]
Obvious

[ThinkPad Setup/Security]
Available submenus: Password, Security Chip, UEFI BIOS Update Option, Memory Protection, Virtualization, I/O Port Access, Anti-Theft
Again, I can post details of any which might be relevant

[ThinkPad Setup/Startup]
Submenu: Boot
Boot Priority Order:
1. GRUB2
2. ATA HDD0: <serial number>
3. USB HDD
4. USB CD:
5, USB FDD
Excluded from boot priority order:
PCI LAN
Non-submenu options:
Network Boot: PCI LAN
UEFI/Legacy Boot: UEFI Only (Have also tried Both, Legacy Only is also an option; if set to Both there's also an option to pick which to prefer)
Boot Mode: Quick (Tried this in Diagnostics mode as well but it made it very difficult to get back into the Setup screen and only produced the stuff about shadowing posted earlier)
Option key Display: Enabled
Boot device List F12 Option: Enabled
Boot Order Lock: Disabled

[ThinkPad Seup/Restart]
Obvious options re. keeping/discarding changes, loading defaults and exiting

[Boot device List with F12/Boot Menu]
GRUB2
ATA HDD0:: <serial>

[Boot device List with F12/Application Menu]
Setup (Takes me to ThinkPad Setup as above; option sometimes disappears for apparently random reasons but maybe there's a logic I'm missing)
Diagnostic Splash

The Diagnostic Splash option shows the relevant screen for only a moment which seems ridiculous - this includes the stuff about shadowing mentioned earlier. First line starts "Phoenix SecureCore Tiano(TM)..."

Try to launch UEFI Shell in any way. Maybe the shell.efi as /efi/boot/bootx64.efi from a USB drive?

Er... do I have one? I don't seem to have a shell.efi under /boot/efi/efi/grub or /boot/efi/efi/boot. Or do I use /boot/efi/efi/boot/bootx64.efi which is a copy of /boot/efi/efi/grub/grub.efi? (At least, it was. I assume it still is.)

To set up a suitable USB drive, would I format a key as GPT? Or do I just copy whichever file to a directory /efi/boot/?

Sorry for the dumb questions. I'm just getting a bit lost and I don't want to claim I've tried something if I'm not sure I understood what I was asked to do correctly.

Thanks.


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Online

#43 2011-12-02 17:08:26

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

First time I am coming across someone with "Phoenix SecureCore Tiano" firmware. Most of the UEFI systems use AMI firmwares which provides an option for launching UEFI shell. For shell/efi try https://bugzilla.redhat.com/show_bug.cgi?id=748272#c41 . If that does not work, boot into archboot in uefi mode using https://gitorious.org/tianocore_uefi_du … I_boot_USB , then press c to go into grub prompt then type

grub> search.file /efi/grub/core.efi root
grub> chainloader (${root})/efi/grub/core.efi

That should launch the HDD's core.efi . OR

grub> search.file /efi/grub/grub.cfg root
grub> chainloader (${root})/efi/grub/grub.cfg

to switch to HDD's grub config file.

PS: Another bug https://bugzilla.redhat.com/show_bug.cgi?id=749325

Last edited by the.ridikulus.rat (2011-12-02 17:12:00)

Offline

#44 2011-12-02 17:51:35

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

the.ridikulus.rat wrote:

Should I replace the current /boot/efi/efi/boot/bootx64.efi with shell.efi renamed appropriately? Or should I put shell.efi on a USB stick? Or?


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Online

#45 2011-12-02 17:55:30

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

Try putting shell.efi as (USBSTICK)/efi/boot/bootx64.efi where the USB stick is MBR/GPT formatted (doesn't matter which one) but with FAT32 fs. Then boot the USB from the firmware, that should go into the shell directly. Then launch core.efi using

> fs0:\efi\grub\core.efi

Check whether it is fs0: or fs1: or fs2: and so on, depends on how many FAT partitions you have. Mostly it should be fs0: .

Better add a entry using bcfg command in UEFI shell

> bcfg boot dump
(find which number is GRUB2 = num)

> bcfg boot rm num
(replace num with actual num)

> bcfg boot add 0 fs0:\efi\grub\core.efi "GRUB2"
> reset
(for reboot)

Tell me whether the bcfg command created GRUB2 entry works? If so the bug is in efibootmgr (which has not been updated since 2009).

Last edited by the.ridikulus.rat (2011-12-02 18:00:15)

Offline

#46 2011-12-02 18:00:11

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

This seems to apply to bios booting with gpt rather than efi booting, right? But it might explain why I couldn't get grub-bios working... (This is a thinkpad. The really frustrating thing is that I deliberately picked one of these b/c thinkpads are meant to work well with Linux!)


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Online

#47 2011-12-02 18:15:02

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

the.ridikulus.rat wrote:

Try putting shell.efi as (USBSTICK)/efi/boot/bootx64.efi where the USB stick is MBR/GPT formatted (doesn't matter which one) but with FAT32 fs. Then boot the USB from the firmware, that should go into the shell directly. .

But it doesn't. Whether I just let it find the USB stick or I pick it from the F12 boot menu, I get this:

ASSERT_EFI_ERROR (Status = Device Error)
ASSERT c:\dev\shellbindev\Build\Shell\RELEASE_VS2005\X64\ShellPkg\Application\Shell\Shell\DEBUG\AutoGen.c(403): !EFI_ERROR (Sta

That's it. It stops mid-word?!


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Online

#48 2011-12-02 18:18:17

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

cfr wrote:
the.ridikulus.rat wrote:

Try putting shell.efi as (USBSTICK)/efi/boot/bootx64.efi where the USB stick is MBR/GPT formatted (doesn't matter which one) but with FAT32 fs. Then boot the USB from the firmware, that should go into the shell directly.

But it doesn't. Whether I just let it find the USB stick or I pick it from the F12 boot menu, I get this:

ASSERT_EFI_ERROR (Status = Device Error)
ASSERT c:\dev\shellbindev\Build\Shell\RELEASE_VS2005\X64\ShellPkg\Application\Shell\Shell\DEBUG\AutoGen.c(403): !EFI_ERROR (Sta

That's it. It stops mid-word?!

Try http://tianocore.git.sourceforge.net/gi … fi;hb=HEAD instead of the other shell.efi (actually shell.efi is newer version of Shell_Full.efi). Copy Shell_Full.efi to bootx64.efi and try again.

Offline

#49 2011-12-02 19:21:16

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

OK, I got a shell from the new USB key. In your instructions, you said to check which fs was correct. I've only got one which refers to the USB key. I've then got three blk devices - the USB key again, the hard drive (I think) and another USB (which is null).

That seems odd - shouldn't it see the partition table on the hdd, too?

fs0:\efi\grub\core.efi
'fs0:\efi\grub\core.efi' is not recognized as an internal or external command, operable program, or batch file

How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Online

#50 2011-12-02 19:39:23

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: [solved] Boot GPT disk in UEFI mode (Phoenix SecureCore Tiano)

I will check back later this evening - I have to get a bus in a few minutes.

I really appreciate all the help I'm getting. I never thought it would be quite this bad!


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Online

Board footer

Powered by FluxBB