Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New install not able to boot
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
bdx
n00b
n00b


Joined: 04 Jan 2006
Posts: 64

PostPosted: Wed Mar 02, 2016 4:07 am    Post subject: New install not able to boot Reply with quote

This is very strange. I had done a fresh gentoo install on a new disk following the instructions in the amd64 handbook and then managed to get gnome 3 installed and working. This was working for several days and many re-boots. Then, I took this disk out of the machine and put a different disk in to fool around installing some other linux distributions and windows. After that I put the first disk back in, same sata cable, same disk and the gentoo install would not boot. This was a grub2/GPT/efi install (my first and becoming unpleasent). I can boot the system rescue cd, mount the partitions, go into a chroot and all files appear to be ok. I was able to re-emerge and re-install grub2 in the chroot but the system will still not boot. This was a fair amount of work which was why I went to the trouble to save it on a separate disk and now it will not boot. Is there something else to try to get this system booting again ? The mother board is asus Z97-A and there is really no error message when it fails to boot, it just dumps you into the bios setup for the motherboard.
Back to top
View user's profile Send private message
ennui
n00b
n00b


Joined: 24 Apr 2003
Posts: 17
Location: Copenhagen, Denmark

PostPosted: Wed Mar 02, 2016 7:37 pm    Post subject: Re: New install not able to boot Reply with quote

bdx wrote:
...there is really no error message when it fails to boot, it just dumps you into the bios setup for the motherboard.


You turn the computer on with the disk on which you originally installed Gentoo attached and end up at the UEFI firmware setup screen? This sounds like your UEFI firmware is no longer configured to boot the drive.

I'm not overly-familiar with grub, but I believe you just need to install grub on the disk again à la the GRUB2 - 3.3 UEFI with GPT wiki section. Since you say you've already done this, try checking you're mounting the root of your ESP at /boot, and passing the correct parameters to grub-install. You may need to be explicit with respect to the parameters you're passing to grub-install (i.e. --target, --efi-directory, and --boot-directory, depending on your setup).
Back to top
View user's profile Send private message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 603

PostPosted: Wed Mar 02, 2016 11:50 pm    Post subject: Re: New install not able to boot Reply with quote

bdx wrote:

This was working for several days and many re-boots.
The mother board is asus Z97-A and there is really no error message when it fails to boot, it just dumps you into the bios setup for the motherboard.
This was a grub2/GPT/efi install


As ennui states. Your firmware can no longer see the drive for what ever reason.

Was your boot entry lost when you removed the drive? If so you may have to create a new one. Wiki efibootmgr


I am unfamiliar with this motherboard so I can't provide any specific information. I would check the firmware settings carefully. Make sure it is set to boot in EFI mode and not legacy mode
and secure boot is disabled.


Make sure your firmware can see the drive. From the Manual
Quote:
By default, the EZ Mode screen appears when you enter the BIOS setup program. The EZ Mode provides you an overview of the basic system information, and allows you to select the display language, system performance mode and boot device priority.


Check to see if your drive is listed [properly detected] in the sata information and boot priority sections. When in the setup menu the F8 key should display all bootable devices. If the firmware can't see the drive it can't boot it.
Back to top
View user's profile Send private message
chiefbag
Guru
Guru


Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom

PostPosted: Thu Mar 03, 2016 11:26 am    Post subject: Reply with quote

Have you tried resetting the CMOS?
Swapping of drives may have led to confusion in the BIOS and may require a reset.
Page 22 in the link below shows how.

http://dlcdnet.asus.com/pub/ASUS/mb/LGA1150/Z97-A/e9060_z97-a_ug_for_web_only.pdf
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Thu Mar 03, 2016 1:46 pm    Post subject: Reply with quote

Quote:
Then, I took this disk out of the machine and put a different disk in to fool around installing some other linux distributions and windows. A


Nothing to do with linux!

This is a design flaw of uefi bioses. That will happen with any operating system and uefi bioses

you need to reinstall hte bootloader, so uefi sees your bootloader again.

do not ever remove / disable your booting drive in uefi, because it forgets it instantly.

edit1: old mbr bios is much better as these days uefi bioses (many many flaws, made by design)

edit2: your title is misleading and does not reflect fact. Your issue is that your bootloader is not seen by uefi because you have changed the drive of your computer. This has nothing to do with the installation itself. It is an error between chair and the user. I suppose this is a security feature. No new installed drives will boot up with maybe malcious code.

edit3: belongs to not gentoo specific, off topic section, as it is hardware / uefi based design issue itself.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Thu Mar 03, 2016 4:00 pm    Post subject: Reply with quote

I have related question. I have a computer that forgets every time the boot is MBR, so booting it up involves going into setup every time. I prepared a hard drive for it with EFI partition and EFI stub kernel on it - but the motherboard firmware does not see it. I know the kernel is OK and the path to it is correct. How can I initiate EFI boot on this thing? When I boot from MBR efibootmgr will not run, efivars are missing (obviously).
Back to top
View user's profile Send private message
bdx
n00b
n00b


Joined: 04 Jan 2006
Posts: 64

PostPosted: Sat Mar 05, 2016 8:48 pm    Post subject: Reply with quote

tw04l124, I would agree that this is a UEFI bios/firmware problem and or operator error. I'm not sure I had the OS set to 'other' when I did the initial gentoo install, but why should this matter.

My method of not screwing up an existing install has been to purchase a new disk of the same type, put it in the machine on the same cables, put the old disk on a shelf and if anything goes wrong put the old disk back in the machine. This has always worked for me and now it does not for some unknown reason. In my opinion this whole UEFI garbage is not progress and it also slows down the boot time.

In any case I gave up, erased the disk and started over.

Anyone know where to buy a new motherboard without UEFI ?
Back to top
View user's profile Send private message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 603

PostPosted: Sun Mar 06, 2016 6:20 pm    Post subject: Reply with quote

Buffoon wrote:
I have related question. I have a computer that forgets every time the boot is MBR, so booting it up involves going into setup every time. I prepared a hard drive for it with EFI partition and EFI stub kernel on it - but the motherboard firmware does not see it. I know the kernel is OK and the path to it is correct. How can I initiate EFI boot on this thing? When I boot from MBR efibootmgr will not run, efivars are missing (obviously).

Its hard to give a specific answer to this kind of question without having more data about the system and setup. Different manufactures may have very different requirements on what the system expects to see before it boots anything.

I use the EFI stub kernel as well and only use GRUB for hardware that doesn't support the UEFI standard. Its been at least 2 years sense I went through this mess myself but what I learned was. For my system "AsRock 990FX Extreme4" motherboard I had to have "boot to EFI set" and then I had to have some EFI aware media to boot to. After several failures I got a SysRescueCD ISO to boot in EFI mode. NOTE: Many ISO's are EFI aware but have several booting options. Make sure you are booting a EFI system ISO (KERNEL). Once you have successfully booted SysRescueCD in EFI mode you should be able to use efibootmgr.

To make my system boot my Gentoo HD the first time, I used efibootmgr from within SysRescueCD to create the boot entry
Code:
efibootmgr -c -d /dev/sda -p 1 -L Gentoo-<???> -l '\EFI\gentoo\gs<???>x64.efi'

This portion has to match your setup and meet your motherboards EFI requirements.
Code:
'\EFI\gentoo\gs<???>x64.efi'

The <???> represents the kernel version.

My Boot Entries
Code:

efibootmgr
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0006,0004,0007,0001,0002
Boot0001  Hard Drive
Boot0002  CD/DVD Drive
Boot0003* Gentoo-4115
Boot0004* UEFI: Built-in EFI Shell
Boot0006* Windows Boot Manager
Boot0007  UEFI: WDC WD5000HHTZ-04N21V0

Efibootmgr can be used to make several modifications as to what and how the system boots. It is also possible (depending on the motherboard) to use the EFI Shell to add or modify boot entries but it is NOT recommended.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Mon Mar 07, 2016 1:40 pm    Post subject: Reply with quote

bdx wrote:


My method of not screwing up an existing install has been to purchase a new disk of the same type, put it in the machine on the same cables, put the old disk on a shelf and if anything goes wrong put the old disk back in the machine.


Error between screen and chair. I repeat. Uefi does not like any changes to the discs or the boot entries. There are no two identical drives available on the market, except you work at the drive plant itself and you are able to access those special tools to create two identical drives.

Summary: Uefi does not like any disc changes and therefore deletes any boot entries.

A disc change is also when you remove the existing disc temporarily and boot up the box afterwards.

...

Uefi is not MBR Bios, behaves differently.

Keep in mind to have some way to recreate the way to boot your operating system when you touch the calbes or boot entries of your bootable disc. (E.g. gentoo handbook + live-cd with essential tools)

...

you have to live wiht uefi as this is the new standard. you may get computers without it but these are ~8 years or older, when this is desireable
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Mon Mar 07, 2016 1:46 pm    Post subject: Reply with quote

Buffoon wrote:
I have related question. I have a computer that forgets every time the boot is MBR, so booting it up involves going into setup every time. I prepared a hard drive for it with EFI partition and EFI stub kernel on it - but the motherboard firmware does not see it. I know the kernel is OK and the path to it is correct. How can I initiate EFI boot on this thing? When I boot from MBR efibootmgr will not run, efivars are missing (obviously).


A) not correctly installed bootloader
b) broken uefi implementation
.a) update bios, i suppose you already did this
.b) custom bios
.c) hack the bios (called a bios mod)
.d) bios battery dead?
.e) settings not saved?
.f) happens on warm boot also or not?
.g) Does this also happens with windows 7 for example?
.h) I recommend the gentoo handbook, and that mentiones grub2. any fancy other boot methods are "not" supported, causes fuss.
when you use grub2, you should at least see the grub2 menu when it is set up correctly. could be done with any newbie distro like linux mint to test out. use a disc which you do not need, quick install linux mint and than verify if the same behaviour occurs please. afaik last time i used linux mint it used grub2.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Mon Mar 07, 2016 3:16 pm    Post subject: Reply with quote

Thank you OldTango, will try with SystemRescue.

@tw04l124
Latest firmware is loaded, every time I boot I have to go into setup, set CSM mode, save and exit. It boots, but even warm reboot resorts back to EFI and fails to boot - but all the EFI stuff is there! The damn thing just does not see it. (No Windows around, haven't been for a long, long time.) I do not like Grub2, Will go rEFInd if I have to.
Broken UEFI definitely. This is an Intel NUC, BTW.
Back to top
View user's profile Send private message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 603

PostPosted: Thu Mar 17, 2016 11:03 pm    Post subject: Reply with quote

Buffoon wrote:
This is an Intel NUC, BTW.

What module of NUC do you have? I would like to read its manual.

Also If you haven't seen or read this documentation I recommend you do. It may prove helpful.

Best..... :)
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