System drive no longer bootable ("reboot and select proper boot device"), but is fine
This is a problem I've had on several occasions whenever I start unplugging/plugging stuff in my PC build--my system drive (SSD) is no longer bootable with the infamous error:
Reboot and Select proper Boot device or Insert Boot Media in selected Boot device and press a key
Drive is fine as I can plug it as an external drive on my laptop and the data is there. Things I've tried:
- Make sure drive is in port 0 (i.e. first SATA port). I'm sure this was the same port that was used before
- Ensure the boot order is correct
- Unplugged all other drives to make things simple to diagnose
- Selecting that drive to boot manually via F11 key which brings up a lit of drives you can boot
- Testing out other SATA cables
BIOS sees the drive but for some reason doesn't see see it as a boot device, hence the error message. I use systemd-boot and UEFI and I have the Samsung 850 Pro SSD and Asrock P67 Extreme 4 Gen 3 motherboard. I feel like I've tried all combinations of BIO settings involving using AHCI Mode as opposed to IDE, disabling/enabling Marvell SATA3 Operation Mode, enabling/disabling UEFI-compatible ROM (vs. legacy).
The last time I had this issue years ago I simply re-installed Arch and it worked--no touching of the SATA cables. I'm really struggling to find out how to solve this without another full install. Would reinstall or setting up the bootloader again work? I see this as necessary for those who dualboot Windows as Windows overwrites the bootloader or something, but I don't dualboot so I'm pretty sure nothing got written to the disk and therefore this wouldn't do anything.
I have no idea why a reinstall had worked though.
Any help is much appreciated. If you need any more information, I'll provide it.
P.S. Could it have anything to do with UUID? According to my notes, I already set that up:
# blkid -s UUID -o value /dev/sda2 >> /boot/loader/entries/arch.conf
# blkid -s UUID -o value /dev/mapper/crypt-root >> /boot/loader/entries/arch.conf
Edited 19 Jan 2019. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 2 · 100% up
- Kind
- Text
- ID
- ahooj3
8 comments
That sounds like your changes of the PC configuration removed or invalidated the firmware entry of your bootloader. Try booting an Arch installation image on the affected computer and reinstall systemd-boot.
I agree with /u/nikoksr that your
/boot/loader/entries/arch.conflooks broken (just useroot=/dev/mapper/cryptrootinstead of the UUID, this is less error-prone), but currently your system doesn't even seem to reach the point where this would matter.Thanks, guys! /u/nikoksr
Made the change in
/boot/loader/entries/arch.confand reinstalled systemd-boot and now my system drive is bootable again--glad this is fixed and I can be productive tomorrow. Learned a few things: PC configuration can remove/invalidate firmware entry of bootloader and that even though I enabled UEFI in the BIOS, flash drive with Arch ISO only boots in UEFI mode if the boot order is changed to booting the flash drive first (I didn't change the boot order as I figured the system booted to the flash drive automatically after failnig to boot the system drive was enough, but apparently that means it will boot in BIOS mode instead--UEFI variables not accessible and could not install systemd-boot).I remember reading UUID having advantages over specifying path as unplugging drives and plugging them back can change the order of /dev/<sdX>, for example. Do any of those advantages apply to
root=UUID=xxxor should I just useroot=/dev/mapper/cryptrootfor simplicity?The device name
/dev/mapper/cryptrootis guaranteed to be stable, it is the name you assigned yourself with the second argument ofcryptdeviceon the kernel command line in/boot/loader/entries/arch.conf.Generally, using
(PART)LABELto specify devices offers the same advantages as using(PART)UUID, but is much easier to type, especially during installation. In your case, you could e.g. useLABELin/etc/fstab, since you already set these anyway. For thecryptdeviceoption in/boot/loader/entries/arch.conf, you could set a partition label for the encrypted partition and use that ascryptsetup=PARTLABEL=.... For more information, see the ArchWiki article on persistent block device naming.In my experience a reinstall is only necessary when you've got so many problems on your machine that a reinstall would be less work. So there probably will be a fix for your problem other than a reinstall.
Could you post your:
lsblk -fHere's the outputs. I can't post output of
lsblk -fas I can't boot the drive even on my laptop (though I haven't played with the BIOS settings too much). My laptop is XPS 13 and I've tried placing booting its nvme drive last so it will attempt to boot into the attached Samsung 850 Pro system drive that I'm having trouble booting from from my desktop but that doesn't work.Appreciate it.
I feel like this has to do with your /boot/loader/entries/arch.conf.
Do you have a bootable archlinux usbdrive?