Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[WONTFIX]UEFI: can't boot anything.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
alexcortes
Apprentice
Apprentice


Joined: 18 Dec 2011
Posts: 205
Location: Rio de Janeiro, Brazil

PostPosted: Sun Mar 27, 2016 8:21 pm    Post subject: [WONTFIX]UEFI: can't boot anything. Reply with quote

Hi,

I am trying to boot on UEFI mode to finish my Gentoo installation which I did using the minimal image but I can't boot anything in UEFI mode, just on legacy.

Tried:

Quote:
SystemRescueCD, either CD/DVD or USB;
Fedora on USB;
KaOS USB;


Nothing works on UEFI. The laptop is a HP g4-2117br and the secureboot is disabled. :x

Thanks!


Last edited by alexcortes on Mon Mar 28, 2016 3:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
skiwarz
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2014
Posts: 128

PostPosted: Sun Mar 27, 2016 8:44 pm    Post subject: Reply with quote

What do you mean "nothing works"? What happens when you try to boot one of those usb sticks? Does your uefi detect them and then fail to load it? Or does it not even see your drives? In other words, can you be a little more descriptive? :wink:
Back to top
View user's profile Send private message
alexcortes
Apprentice
Apprentice


Joined: 18 Dec 2011
Posts: 205
Location: Rio de Janeiro, Brazil

PostPosted: Sun Mar 27, 2016 9:21 pm    Post subject: Reply with quote

Hi,

Sorry, the error message is:

Quote:
Boot Device not Found erro 03f0


I found a "BIOS" update from this month but I need a windows installation to do that and I had it there until yesterday. :(
Back to top
View user's profile Send private message
skiwarz
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2014
Posts: 128

PostPosted: Sun Mar 27, 2016 9:54 pm    Post subject: Reply with quote

What is the output of
Code:
parted /dev/sda print all
or for your applicable /dev/***
Back to top
View user's profile Send private message
alexcortes
Apprentice
Apprentice


Joined: 18 Dec 2011
Posts: 205
Location: Rio de Janeiro, Brazil

PostPosted: Sun Mar 27, 2016 9:58 pm    Post subject: Reply with quote

I've installed another HD there and I am installing a W7 to make the BIOS update. But from the Gentoo installation time everything seems OK with the HD, I had no problems at all to make the partitions and install the system from legacy mode.

I will be back after the BIOS update.

Thanks!
Back to top
View user's profile Send private message
skiwarz
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2014
Posts: 128

PostPosted: Sun Mar 27, 2016 10:49 pm    Post subject: Reply with quote

If you installed from a bios boot (legacy mode), you may not have partitioned the hdd correctly. That's why I'd like to see the parted output. You need to have an efi partition on your drive, and iirc needs to be gpt partitioned. Let me know what you find.
Back to top
View user's profile Send private message
alexcortes
Apprentice
Apprentice


Joined: 18 Dec 2011
Posts: 205
Location: Rio de Janeiro, Brazil

PostPosted: Sun Mar 27, 2016 10:50 pm    Post subject: Reply with quote

Here we go:

Code:
Model: ATA ST500LM012 HN-M5 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  132MB   131MB   fat32                 msftdata
 2      132MB   32.3GB  32.2GB  ext4
 3      32.3GB  497GB   465GB   ext4
 4      497GB   500GB   3221MB  linux-swap(v1)


Model: Kingston DT 101 II (scsi)
Disk /dev/sdb: 4010MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start  End     Size    Type     File system  Flags
 2      113kB  32.6MB  32.5MB  primary  fat16        esp


Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0 has been opened read-only.
Error: /dev/sr0: unrecognised disk label
Model: hp CDDVDW SN-208BB (scsi)                                         
Disk /dev/sr0: 481MB
Sector size (logical/physical): 2048B/2048B
Partition Table: unknown
Disk Flags:


Now I saw there are a option "Boot from EFI File" when in legacy mode. I need to take a look on how to boot from it.

The BIOS update was a false alert. The date was wrong on HP website, it was indeed from 2013.
Back to top
View user's profile Send private message
skiwarz
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2014
Posts: 128

PostPosted: Sun Mar 27, 2016 11:57 pm    Post subject: Reply with quote

You need to make an efi partition. Must be fat32 format, and flagged as the efi system partition. You can do this in gdisk by giving it type ef00. It can be anywhere in your partition table, as long as it meets those two criteria. Then you need to install grub2 to that partition, because that's where uefi will look for your bootloader. Make sure grub2 is configured appropriately by following this guide: https://wiki.gentoo.org/wiki/GRUB2
That should get it working.

edit: actually, it might be easier to use cfdisk instead of gdisk. I forgot it supports gpt now, and I personally like the interface better. But, up to you
Back to top
View user's profile Send private message
alexcortes
Apprentice
Apprentice


Joined: 18 Dec 2011
Posts: 205
Location: Rio de Janeiro, Brazil

PostPosted: Mon Mar 28, 2016 12:17 am    Post subject: Reply with quote

Hi,

I will try it soon but indeed I had created sda1 with EF00 flag.
Back to top
View user's profile Send private message
alexcortes
Apprentice
Apprentice


Joined: 18 Dec 2011
Posts: 205
Location: Rio de Janeiro, Brazil

PostPosted: Mon Mar 28, 2016 2:12 am    Post subject: Reply with quote

I rebuild the sda1:

Code:
mkdosfs -F 32 -n efi-boot /dev/sda1


But grub won't install probably because I was not booted on UEFI mode. :(

I will try the Ubuntu image to see if it boot on UEFI here.

Thanks!
Back to top
View user's profile Send private message
skiwarz
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2014
Posts: 128

PostPosted: Mon Mar 28, 2016 2:29 am    Post subject: Reply with quote

Make sure you configured grub correctly, to include setting correct use flags and "GRUB_PLATFORMS" options in make.conf and then re-emerge if you changed anything. Also, ensure you followed the instructions here https://wiki.gentoo.org/wiki/GRUB2#UEFI_with_GPT for the UEFI with GPT section.

Good luck!
Back to top
View user's profile Send private message
alexcortes
Apprentice
Apprentice


Joined: 18 Dec 2011
Posts: 205
Location: Rio de Janeiro, Brazil

PostPosted: Mon Mar 28, 2016 2:31 am    Post subject: Reply with quote

Not working yet.

Code:
grub2-install --target=x86_64-efi --efi-directory=/boot


Code:
Installing for x86_64-efi platforms;
efibootmgr: EFI varables are not supported on this system.
efibootmgr: EFI varables are not supported on this system.
Installation finished. No error reported.


I think the only way is booting on UEFI mode.
Back to top
View user's profile Send private message
skiwarz
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2014
Posts: 128

PostPosted: Mon Mar 28, 2016 3:06 am    Post subject: Reply with quote

It seems you might be correct. This says you need to be booted uefi first: https://wiki.gentoo.org/wiki/Efibootmgr#Configuration
Back to top
View user's profile Send private message
alexcortes
Apprentice
Apprentice


Joined: 18 Dec 2011
Posts: 205
Location: Rio de Janeiro, Brazil

PostPosted: Mon Mar 28, 2016 4:04 am    Post subject: Reply with quote

I re-created the partition.

Code:
Model: ATA ST500LM012 HN-M5 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name        Flags
 1      1049kB  132MB   131MB   fat32           EFI System  boot, esp
 2      132MB   32.3GB  32.2GB  ext4
 3      32.3GB  497GB   465GB   ext4
 4      497GB   500GB   3221MB  linux-swap(v1)



Followed the advise form @Logicien to make it work from a BIOS installation:

Quote:
https://forums.gentoo.org/viewtopic-t-1040016-highlight-uefi.html


Also following:

Quote:
https://wiki.gentoo.org/wiki/EFI_stub_kernel


And didn't work. The firmware "File Manager" shows nothing neither boot on UEFI mode.

Since I wasn't able to boot anything on UEFI mode I am assuming I have problematic firmware.

I will wait until tomorrow if someone bring any news, if not I will give up the UEFI thing.

Thanks!

EDIT: I also tried the Ubuntu image and not boot too.
EDIT.2: Arch Linux image also won't boot.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Mar 28, 2016 7:59 am    Post subject: Reply with quote

alexcortes wrote:
EDIT: I also tried the Ubuntu image and not boot too.
EDIT.2: Arch Linux image also won't boot.

alexcortes ... if you are unable to boot efi with these various efi capable disks (sysresccd included) then this would point to your firmware ... that said, from the above it suggests you are selecting/enabling 'legacy' in the firmware, is that correct? If so, that might explain the issue.

best ... khay
Back to top
View user's profile Send private message
alexcortes
Apprentice
Apprentice


Joined: 18 Dec 2011
Posts: 205
Location: Rio de Janeiro, Brazil

PostPosted: Mon Mar 28, 2016 3:08 pm    Post subject: Reply with quote

khayyam wrote:
alexcortes wrote:
EDIT: I also tried the Ubuntu image and not boot too.
EDIT.2: Arch Linux image also won't boot.

alexcortes ... if you are unable to boot efi with these various efi capable disks (sysresccd included) then this would point to your firmware ... that said, from the above it suggests you are selecting/enabling 'legacy' in the firmware, is that correct? If so, that might explain the issue.

best ... khay


@khayyam

Yes, I am booting on legacy mode otherwise (UEFI only) I do not have how to boot anything.

I will try this Microsoft thing:

Code:
https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface#UEFI_boot_loader_does_not_show_up_in_firmware_menu


Thanks!
Back to top
View user's profile Send private message
alexcortes
Apprentice
Apprentice


Joined: 18 Dec 2011
Posts: 205
Location: Rio de Janeiro, Brazil

PostPosted: Mon Mar 28, 2016 3:50 pm    Post subject: Reply with quote

Hum. The UEFI Shell thing and the MS thing won't work.

I give up.

Thanks!
Back to top
View user's profile Send private message
alexcortes
Apprentice
Apprentice


Joined: 18 Dec 2011
Posts: 205
Location: Rio de Janeiro, Brazil

PostPosted: Mon Mar 28, 2016 4:11 pm    Post subject: Reply with quote

My brother whom bought this laptop said even windows 8/10 won't boot UEFI, that is why he leave it here - he use Windows.
Back to top
View user's profile Send private message
djdunn
l33t
l33t


Joined: 26 Dec 2004
Posts: 780
Location: Arrakis

PostPosted: Tue Mar 29, 2016 1:44 am    Post subject: Reply with quote

you should be able to find the efi for manual installation, you should be able to just copy it to /boot/efi/boot/bootx64.efi where /boot is mounted to the efi partition

Just rename the efi file to bootx64.efi and plug it into /boot/efi/boot/ which is the default fallback location with the default fallback efi file name and you should be able to bypass the requirements for having to boot in efi mode for needing to have to modify the efi variables

I know that syslinux:6 or higher includes efi booting and you can easilly install it without first being booted in uefi mode

If it is unable to recoganize those default location and filename as defined by the uefi specification like you said before its likely a firmware issue
_________________
A process cannot be understood by stopping it. Understanding must move with the flow of the process, must join it and flow with it.

-The First Law of Mentat
Back to top
View user's profile Send private message
At4ri
n00b
n00b


Joined: 11 Mar 2016
Posts: 52

PostPosted: Tue Mar 29, 2016 3:44 am    Post subject: Re: [WONTFIX]UEFI: can't boot anything. Reply with quote

alexcortes wrote:
Hi,

I am trying to boot on UEFI mode to finish my Gentoo installation which I did using the minimal image but I can't boot anything in UEFI mode, just on legacy.

Tried:

Quote:
SystemRescueCD, either CD/DVD or USB;
Fedora on USB;
KaOS USB;


Nothing works on UEFI. The laptop is a HP g4-2117br and the secureboot is disabled. :x

Thanks!


the installation is finished ? I get to load grub with uefi options?
You have to select the boot from the bios , if you want legacy or UEFI .


example of my table , gentoo and win10

Code:

Disposit.    Comienzo      Final  Sectores Tamaño Tipo
/dev/sda1        2048     923647    921600   450M Entorno de recuperación de Windows
/dev/sda2      923648    1128447    204800   100M Sistema EFI
/dev/sda3     1128448    1161215     32768    16M reservado para Microsoft
/dev/sda4     1161216  724725759 723564544   345G Datos básicos de Microsoft
/dev/sda5   724725760 1339123711 614397952   293G Datos básicos de Microsoft
/dev/sda6  1339123712 1340147711   1024000   500M Sistema de ficheros de Linux
/dev/sda7  1340147712 1344346111   4198400     2G Linux swap
/dev/sda8  1344346112 1554061311 209715200   100G Sistema de ficheros de Linux
/dev/sda9  1554061312 1742804991 188743680    90G Sistema de ficheros de Linux

_________________
Grupo telegram gentoo y otras hierbas
https://telegram.me/joinchat/C3V8xD5C1VzvaYH4CJULyw

OS: Gentoo ~amd64 & windows 10
Back to top
View user's profile Send private message
alexcortes
Apprentice
Apprentice


Joined: 18 Dec 2011
Posts: 205
Location: Rio de Janeiro, Brazil

PostPosted: Tue Mar 29, 2016 7:39 pm    Post subject: Reply with quote

@djdunn

I think I already had tried it. Thanks!

@At4ri

I am aware of it.

If I select UEFI boot it always fall onto not having a OS anywhere. If I boot in legacy mode I have a option to open a "File Manager" and run a EFI file directly but whenever I did the file manager was always empty.

I am already running on GPT + BIOS/Legacy mode, and will let the UEFI experience to another opportunity. 8)

Thanks!
Back to top
View user's profile Send private message
Simdol
n00b
n00b


Joined: 27 Mar 2016
Posts: 11

PostPosted: Wed Mar 30, 2016 3:44 am    Post subject: Reply with quote

alexcortes wrote:
@djdunn

I think I already had tried it. Thanks!

@At4ri

I am aware of it.

If I select UEFI boot it always fall onto not having a OS anywhere. If I boot in legacy mode I have a option to open a "File Manager" and run a EFI file directly but whenever I did the file manager was always empty.

I am already running on GPT + BIOS/Legacy mode, and will let the UEFI experience to another opportunity. 8)

Thanks!


To be perfectly honest with you, you would be better off trying to dd (Be careful! It is also known as Disk Destroyer) your USB rather than messing with the partition table, especially if you are unfamiliar with DOS / GPT / hybrid partition table. Here is a great guide for that: https://wiki.gentoo.org/wiki/Sakaki%27s_EFI_Install_Guide/Creating_and_Booting_the_Minimal-Install_Image_on_USB If you are on Windows, simply use Rufus (http://rufus.akeo.ie/) to format it for you.

Good luck,
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum