Hi, I am stuck with a desktop that I am unable to boot. I upgraded from 22.04 (I believe) to latest version of Ubuntu (I believe at the time it was 24.04), and I'm stuck with none of the kernel versions able to boot into regular mode or recovery mode.
I ran into this issue before, and I'm just trying to decrypt my drive (something like cryptsetup luksOpen /dev/sda5 sda5_crypt) so I can try to run initramfs commands to get back to a good state.
I have the output from Boot Repair, which looks very similar to the last one too. All of the sda* drives I expect to see are there.
The problem I'm running into is I don't see the drives I expected at "/dev/sda", so I'm not sure how to decrypt and mount the drive. I have been able to use this playbook to decrypt the drive and make a similar repair last time, there shouldn't have been any major changes since I posted the last thread. Indeed, the contents of most of the commands are identical as the previous thread.
Code:
DEV="/dev/sda"
root@lubuntu:/# export DM="${DEV##*/}"
root@lubuntu:/# export DEVP="${DEV}$( if [[ "$DEV" =~ "nvme" ]]; then echo "p"; fi )"
root@lubuntu:/# export DM="${DM}$( if [[ "$DM" =~ "nvme" ]]; then echo "p"; fi )"
root@lubuntu:/# sgdisk --print $DEV
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************
Disk /dev/sda: 1000215216 sectors, 476.9 GiB
Model: INTEL SSDSC2KW51
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 552FB207-68E3-43C7-8EE4-5D44971AFB27
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1000215182
Partitions will be aligned on 2048-sector boundaries
Total free space is 4717 sectors (2.3 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1499135 731.0 MiB 8300 Linux filesystem
5 1501184 1000214527 476.2 GiB 8300 Linux filesystem
and
Code:
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 786.3M 1 loop /rofs
sda 8:0 0 477G 0 disk
├─sda1 8:1 0 731M 0 part
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 476.2G 0 part
sdb 8:16 0 3.7T 0 disk
└─sdb1 8:17 0 3.7T 0 part
sdc 8:32 0 477G 0 disk
sdd 8:48 0 3.7T 0 disk
└─sdd1 8:49 0 3.7T 0 part
sde 8:64 1 114.6G 0 disk /cdrom
├─sde1 8:65 1 880M 0 part
└─sde2 8:66 1 2.4M 0 part
zram0 252:0 0 3.9G 0 disk [SWAP]
zram1 252:1 0 3.9G 0 disk [SWAP]
zram2 252:2 0 3.9G 0 disk [SWAP]
zram3 252:3 0 3.9G 0 disk [SWAP]
zram4 252:4 0 3.9G 0 disk [SWAP]
zram5 252:5 0 3.9G 0 disk [SWAP]
zram6 252:6 0 3.9G 0 disk [SWAP]
zram7 252:7 0 3.9G 0 disk [SWAP]
in particular.
Am I missing something? Can anyone point me in the right direction as to where they might be located, why they are missing, or a way I can decrypt the drives and continue to mount as I did before with cryptsetup luksOpen /dev/sda5 sda5_crypt?
Bookmarks