You are not logged in.

#1 2014-03-22 13:31:00

maxi831
Member
Registered: 2014-03-22
Posts: 3

Not able to boot form HDD via UEFI

I decided to install Arch-Linux on my Laptop and to use UEFI instead of BIOS. I tried everything I am able to but my Laptop still can't boot grub or  gummiboot.

Some Information: I booted >in UEFI-mode< from my USB-Thumb, formated my HDD with GPT created an EfiSystemPartition (fat32) and a SystemPartition (ext4),
installed Arch on  the SystemPartition, chrooted in Systempartition, mount EfiSystemPartition to "/boot", executed "grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub --recheck --debug" as mentioned in ArchWiki (I also tried Gummiboot) - no Errors.
I checked the UEFI entry with efibootmgr, and tried to boot from  my HDD- Result: Error ... insert Boot media ... ;
The UEFI entry is available in my Bootmenu and is linked  to the correct path (I checked).
Can somebody help me? I'm trying now for a long time... By the way I was able to boot Win8 in UEFI mode. Hope this is enough information

Offline

#2 2014-03-22 16:30:31

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: Not able to boot form HDD via UEFI

I think you're supposed to: (presuming / is on /dev/sda2 & the EFI system partition is on /dev/sda1)

# mount /dev/sda2 /mnt
# mkdir /mnt/boot
# mount /dev/sda1 /mnt/boot

before you install the base system

# pacstrap /mnt base

generate the fstab

# genfstab -U -p /mnt >> /mnt/etc/fstab

and use arch-chroot

# arch-chroot /mnt /bin/bash

I've had best results just using efibootmgr -- I can boot both the vanilla kernel & the LTS kernel from my UEFI options.

Last edited by Head_on_a_Stick (2014-03-22 16:38:46)

Offline

#3 2014-03-22 21:01:04

maxi831
Member
Registered: 2014-03-22
Posts: 3

Re: Not able to boot form HDD via UEFI

Thank you for  your answer! -
unfortunately I still can't boot. What do you mean with just using efibootmgr? no Bootloader like grub?

Offline

#4 2014-03-22 21:32:26

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: Not able to boot form HDD via UEFI

efibootmgr can be installed using pacman, then type:

# efibootmgr -d /dev/sda -p 1 -c -L "Arch Linux" -l /vmlinuz-linux -u "root=/dev/sda2 rw initrd=/initramfs-linux.img"

presuming the ESP is on /dev/sda1 & / is on /dev/sda2 (and your /boot directory is on the ESP)...
A bootloader is not required with the current Arch kernel smile
This will create an entry in your UEFI boot options; check with:

# efibootmgr -v

Its all in the wiki:
https://wiki.archlinux.org/index.php/EF … ot_manager
Have you disabled Secure Boot?

Offline

#5 2014-03-23 00:48:06

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

Re: Not able to boot form HDD via UEFI

If you care to blast ahead without proper diagnostics, you could try creating a USB flash drive or CD-R with my rEFInd boot manager. There's a chance that it could boot your installation, although you'll need to do so by selecting a kernel, hitting F2 or Insert twice, and adding kernel options to specify your root device (as in "root=/dev/sda2"), and maybe something else. If this works, you could install rEFInd to your hard disk and use it or at least use the fully-booted system to better diagnose your problem.

If you want to properly diagnose the problem or if the preceding suggestion doesn't help, I recommend you boot to a Linux live CD of your choice and run the Boot Info Script. This tool will produce an output file calls RESULTS.txt. Post that here in code tags; or post it to a pastebin site and post the URL to your pastebin document here. That will give us detailed information about your configuration. (The sorts of paraphrased descriptions you've given usually omit critical details.)

Offline

#6 2014-03-23 08:56:13

Blµb
Member
Registered: 2008-02-10
Posts: 224

Re: Not able to boot form HDD via UEFI

You said you can boot Win8 - does that mean you still have that on your HDD? Since you also said you created an EFI System Partition, do you now have 2 of them (as only 1 will be used)? If you want to dual boot, keeping win8's setup and running `gummiboot --install` and adding an arch entry to ${esp-partition}/loader/entries/ should work fine.
Also note that when you try using gummiboot you need your kernel/initrd installed to the ESP so that gummiboot has access to the files. (simplest way: reinstall the `linux` package after the ESP is mounted to /boot and keep the /boot mountpoint pointing to the ESP.)


You know you're paranoid when you start thinking random letters while typing a password.
A good post about vim
Python has no multithreading.

Offline

#7 2014-03-23 09:46:25

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: Not able to boot form HDD via UEFI

Output of

sudo fdisk -l

Might help us with your problem


Mr Green

Offline

#8 2014-03-23 12:12:46

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: Not able to boot form HDD via UEFI

srs5694 wrote:

If you care to blast ahead without proper diagnostics, you could try creating a USB flash drive or CD-R with my rEFInd boot manager.

Good grief its Rod Smith --  we're not worthy!
wink

Offline

#9 2014-03-26 17:16:01

maxi831
Member
Registered: 2014-03-22
Posts: 3

Re: Not able to boot form HDD via UEFI

Hello everyone! I'm really sorry for the time gap (I was terrible busy).
Thank you for all answers.  I tried it over and over (grub, grummiboot, direct EFI-boot), but it just didn't work.
I did remember that Windows with UEFI worked on my Laptop -> So I installed Windows 8 on my Laptop -> booted UEFI arch from USB -> deleted all partitions from HHD, but the EFI-partition -> Installed grub UEFI the same way as I did before -> WORKED :-)
I don't know why. Before the Windows-Installation I used to use the command "mkfs.vfat -F 32 /dev/sdxX" to format my disk (wrong?).
Oh and here is my "fdisk -l":

Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 6873D861-B5F0-4240-A233-46CAE2861362

Device           Start          End   Size Type
/dev/sda1       831488     17608703     8G Linux swap
/dev/sda2       616448       821247   100M EFI System
/dev/sda3     17618944    500118158 230.1G Linux filesystem

again I am really sorry for the time gap ...

Offline

Board footer

Powered by FluxBB