LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-25-2023, 03:19 PM   #1
ardabro
Member
 
Registered: May 2015
Location: Katowice, Poland
Distribution: Debian, Ubuntu
Posts: 37

Rep: Reputation: Disabled
Question Motherboard stopped recognising both bootble EFI disks as bootable. Why?


It is 11 years old asus p8z77-v
For a long time I have two SSD-s connected to it. Both are bootable, have GPT partition table, and EFI partitions with boot and esp flags. There is Debian installed on both. Bullseye on the first one and Buster or maybe even older on the other. No issues until today.
What I did today: I removed everything from the case (in the process of building new machine), then assembled everything on bench for temporary usage. The only change is different choice and order of sata cables plugged into mb and CDROM not connected at all. There is also 3rd HDD - not bootable (I had 4 sata devices connected and now have 3 of them)
And now my motherboard refuses to boot from any of these two SSD-s. Moreover it doesn't show them for boot selection when "EFI only" is selected from compatibility-related menu in bios. Seems that it thinks they are both MBR ones and boot attempts result in "reboot and select proper boot device" message. I believe it is very unlikely that two separate drives got corrupted the same way. On the other hand I'm able to boot from usb stick, look at them in gparted, mount partitions - everything looks good (I see expected files on EFI partitions in particular). It seems that my motherboard just went mad, maybe for some security-related reasons. I'm thinking about reinstalling grub on these drives, but I'm afraid of things getting even worse.
So... the general question i why and what else could I do?
 
Old 11-25-2023, 04:19 PM   #2
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 4,008
Blog Entries: 33

Rep: Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471
ardabro,

Try connecting only one SATA cable from the SATA0 header on the motherboard to one of the SSDs.

Are all other connections correct?

Last edited by beachboy2; 11-25-2023 at 05:22 PM. Reason: typo
 
1 members found this post helpful.
Old 11-25-2023, 05:00 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
UEFI stores data in NVRAM on the motherboard - including device enumeration order. Move stuff around, this is gunna happen. Have a look at the output from "efibootmgr -v" run from the liveUSB.

I'd just chroot into each system and re-install grub to the disk. Then you can use efibootmgr to delete the old entries.
 
1 members found this post helpful.
Old 11-25-2023, 06:40 PM   #4
Arnulf
Member
 
Registered: Jan 2022
Location: Hanover, Germany
Distribution: Slackware
Posts: 274

Rep: Reputation: 89
The Asus P8Z77-V provides two SATA controllers, a six port controller integrated in the Z77 Express chipset and a separate ASMedia two port controller.
In some cases, Linux kernel doesn't provide same disk order as printed on mainboard and in manual. Connection of the third disk drive may derange disk order and causes boot fail.
Start with one SSD at port SATA6G_1 and check if system boots.
Connect second SSD to port SATA6G_2 and check if system boots.
Connect HDD to port SATA3G_3 and check if system boots.
If last check fails or HDD is a SATA 6.0 GB/s device connect HDD to port SATA6G_E1 and check if system boots.
Note: If your HDD is a SATA 6.0 GB/s device and it must run at a SATA 3.0 GB/s port in your setup its performance loss is nearly negligible in most cases.
If HDD uses MBR and CSM cannot be disabled try it with GPT on HDD.
 
1 members found this post helpful.
Old 11-26-2023, 01:05 PM   #5
ardabro
Member
 
Registered: May 2015
Location: Katowice, Poland
Distribution: Debian, Ubuntu
Posts: 37

Original Poster
Rep: Reputation: Disabled
Thank You guys!
Indeed: my motherboard lost all nvram boot entries. I managed to restore them with efibootmgr -c and didn't even need to reinstall grub.
 
  


Reply

Tags
boot error, efi, motherboard



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ooooy. EFI boot mmx64.efi.efi not found bulgin Linux - Newbie 12 12-20-2018 11:03 AM
grub - software raid1- check if both disks are bootable iampy Linux - Server 1 06-26-2017 08:51 AM
EFI main GPT overwritten everytime (when windows 7 runs) - structure of EFI masuch Linux - Newbie 2 07-20-2012 02:49 PM
Making bootable both disks of mdadm raid1 chiendarret Linux - Software 0 03-08-2009 05:15 AM
Installing Slackware with non-bootable CD or bootable floppy (but not both) TiddlyPom Slackware 2 03-22-2004 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration