Skip to content

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.

2 points8 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
2 · 100% up
Kind
Text
ID
ahooj3

Author

62
posts
105
comments
1
media
View profile

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.conf looks broken (just use root=/dev/mapper/cryptroot instead of the UUID, this is less error-prone), but currently your system doesn't even seem to reach the point where this would matter.

3 points

Thanks, guys! /u/nikoksr

Made the change in /boot/loader/entries/arch.conf and 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=xxx or should I just use root=/dev/mapper/cryptroot for simplicity?

2 points

The device name /dev/mapper/cryptroot is guaranteed to be stable, it is the name you assigned yourself with the second argument of cryptdevice on the kernel command line in /boot/loader/entries/arch.conf.

Generally, using (PART)LABEL to 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. use LABEL in /etc/fstab, since you already set these anyway. For the cryptdevice option in /boot/loader/entries/arch.conf, you could set a partition label for the encrypted partition and use that as cryptsetup=PARTLABEL=.... For more information, see the ArchWiki article on persistent block device naming.

2 points

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:

  • /boot/loader/entries/arch.conf
  • /etc/fstab
  • output of lsblk -f
1 points

Here's the outputs. I can't post output of lsblk -f as 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.

1 points

I feel like this has to do with your /boot/loader/entries/arch.conf.

Do you have a bootable archlinux usbdrive?

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.