Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have an SSD with a boot partition, and an encrypted root partition. Since yesterday, trying to boot from my SSD gives the following:
Code:
Waiting 10 seconds for device /dev/disk/by-uuid/2a...2ed to appear.........
failure /dev/disk/by-uuid/2a...2ed is unavailable
This booted me into a shell. There doesn't appear to be any devices attached, there is no `/dev/sdX` or `/dev/nvme...`, or `/dev/disk` files, `fdisk -l` is empty, `cat /proc/partitions` is empty, `blkid` is empty, and `df -a` doesn't even show the root filesystem exists:
It sounds like it can't find a kernel. The BIOS doesn't know anything about encryption.
Unless I'm very much mistaken, the Bios can't apply decryption. And if it could, the system wouldn't be very secure anyhow. So what did you think was going to happen? Did you think it through?
It went looking for the kernel, and didn't find it. So it dumped you into a busybox shell, and you have the basic bits of a few utilities.
If you get your kernel on the /boon partition, it might load the kernel. Booting will then puke on mounting the / partition. You might have had
Quote:
root=/dev/uuid=<Long alphanumeric string>
But depending on how you encrypted /, the long alphanumeric string might even be encrypted
If you can decrypt it, do. If you can't, re-partition and restore a backup. Presuming you don't have a backup, reinstall. Make a partition for home, and encrypt that if you must.
Thanks for the response. It's my understanding the the boot process is as follows:
Start on the unencrypted boot partition
Wait for the encrypted partition to appear (`/dev/disk/by-uuid/2a...2ed)`
Prompt for the passkey
Decrypt and mount the partition as `/`
Boot
The boot partition and encrypted root partition both exist on the same device. Turning on the computer puts me into GRUB, with my different configurations available (NixOS), so it clearly CAN read off the boot partition. But then it fails waiting for the encrypted partition to appear.
I think the fact the partition is encrypted is irrelevant, it's not even getting to the stage where it prompts for a decryption passkey, as the encrypted partition never appears.
The main issue I'm confused about, is how it's possible to go into the boot partition, yet neither fdisk nor blkid know that the device is connected. And again, how can `df` not show that there *is* a root filesystem, despite being able to read and write from it.
Some things I've tried since the original post:
Re-formatting the SSD - now I can fully boot from the M.2 to USB adapter, but not if I put the SSD inside the computer
Putting a different SSD inside my computer, and booting from a live USB - The device does not show up in `blkid` or `lsblk`
Trying the SSD on a different computer - one computer worked, another didn't.
I think there must be something wrong with both the SSD, and my motherboard, as the SSD in other computers has the same issue, and a different working SSD in the computer also doesn't appear from a live USB.
So confusing!
Last edited by wynprice; 03-30-2024 at 09:50 AM.
Reason: Wording
And also if /boot is on the SSD. Because if /boot or any other partitions can be read, on the SSD, and / cannot, that fingers the SSD. But if it's an 'all or nothing' situation, it would point at the motherboard.
There's also issues with mounting certain NVMEs in certain motherboards. Lack of height is a common complaint. If you approach the Motherboard/SSD with the understanding that there's a fault and try to fix it, you might get somewhere.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.