LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-28-2024, 08:46 PM   #1
wynprice
LQ Newbie
 
Registered: Mar 2024
Posts: 2

Rep: Reputation: 0
Unhappy SSD unable to be found despite booting into it


Hello all,

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:
Code:
~ # df -a
Filesystem     1K-blocks     Used Available Use% Mounted on
devtmpfs          391020        0    391020   0% /dev
devpts                 0        0         0   0% /dev/pts
tmpfs            3910184        0   3910184   0% /dev/shm
proc                   0        0         0   0% /proc
tmpfs            1955092        4   1955088   0% /run
ramfs                  0        0         0   0% /run/keys
tmpfs            3910184        0   3910184   0% /run/wrappers
sysfs                  0        0         0   0% /sys
Things I've tried
  • Booting into a live USB - it can't detect the SSD at all, and dmesg appears fine
  • Using an M.2 to USB adapter - I'm unable to boot with it, but if I boot into a live USB I can mount the device and navigate it fine.
  • Testing the SSD on another machine - works perfectly

I'm not even sure how this could be possible? How can I boot from the device but it not exist?

It may be related, but I did a force shutdown before this issue occurred.

Any help would be appreciated, worst comes to worst I'll buy a new SSD and copy the data over.
 
Old 03-30-2024, 07:14 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,315

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Hello, wynprice & welcome to LQ.

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.
 
Old 03-30-2024, 09:42 AM   #3
wynprice
LQ Newbie
 
Registered: Mar 2024
Posts: 2

Original Poster
Rep: Reputation: 0
Hi buisiness_kid,

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
 
Old 04-03-2024, 03:49 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
We might need to know if this is a uefi system.
 
Old 04-04-2024, 08:17 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,315

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
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.
 
Old 04-04-2024, 03:22 PM   #6
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by wynprice View 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
My board manual states M.2 socket shares bandwidth with SATA ports (5/6), so both can't be used at the same time...

Just a guess, of course!
 
  


Reply



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
T460 not booting into OS, SSD or USB. naarter Linux - Laptop and Netbook 2 04-21-2022 12:07 PM
T460 not booting into OS, SSD or USB. naarter Slackware 2 04-21-2022 08:40 AM
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
Booting into Single User on MDK 9 asks for root password instead of booting into root acadcworks Linux - General 6 01-10-2006 06:51 AM

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

All times are GMT -5. The time now is 04:53 AM.

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