Can't Login, Can't Access Encryption

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
rockaholic3
Level 1
Level 1
Posts: 4
Joined: Sun Jun 20, 2021 12:34 am

Can't Login, Can't Access Encryption

Post by rockaholic3 »

I have a Linux Mint 20.1 installation with LVM and LUKS disk encryption, and I also selected home folder encryption too. For a week it worked great, then it froze when waking it up from sleep. Then I rebooted, it allowed me to login, but once I get past the login it goes to the Busybox initramfs screen.

I tried using the fsck -p on /dev/sda1(plus2,5,6), tried different kernels, tried booting into recovery mode, tried complete shutdown/reboot, but after login it always goes to the Busybox Initramfs screen. I also wanted to add that the fsck didn't seem show any corruption being repaired when I ran it, it would just check a few things and end.

I loaded the Mint Live USB, opened the disks utility, clicked on the partition, clicked the unlock button and I was able to decrypt the LUKS partition, then did this viewtopic.php?t=315207 to decrypt my Home folder and I was able to successfully recover my files.

Next day I try to repair the partition/error/boot issue/whatever, but now upon booting my PC it now doesn't even give the option to login, plus it is telling me that "/dev/mapper/vgmint-root does not exist" when I boot. And then I hit the Busybox initramfs screen again though it is red this time.

I then loaded the Mint Live USB again, open the disks utility, but the unlock button to decrypt LUKS partition is no longer there. Plus when I do "sudo cryptsetup luksOpen /dev/sda5 crypt" (also tried sda1,2,6) it says "not a valid LUKS device" for all of them. Why is the encryption not being recognized? Any help is appreciated!

Current LSBLK Output
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 1.8G 1 loop /rofs
sda 8:0 0 1.8T 0 disk
├─sda1 8:1 0 512M 0 part /media
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 731M 0 part
└─sda6 8:6 0 1.8T 0 part
sdb 8:16 1 7.6G 0 disk
├─sdb1 8:17 1 1.9G 0 part /cdrom
├─sdb2 8:18 1 3.9M 0 part
└─sdb3 8:19 1 5.7G 0 part /var/log
sr0 11:0 1 1024M 0 rom

Current FDisk Output
Disk /dev/sda: 1.84 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: WDC WD20EZAZ-22L
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x21e582d5

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1050623 1048576 512M b W95 FAT32
/dev/sda2 1052670 3907028991 3905976322 1.8T 5 Extended
/dev/sda5 1052672 2549759 1497088 731M 83 Linux
/dev/sda6 2551808 3907028991 3904477184 1.8T 83 Linux

Current DF Output
Filesystem Size Used Avail Use% Mounted on
udev 12G 0 12G 0% /dev
tmpfs 2.4G 9.7M 2.4G 1% /run
/dev/sdb1 1.9G 1.9G 0 100% /cdrom
/dev/loop0 1.8G 1.8G 0 100% /rofs
/cow 12G 26M 12G 1% /
/dev/disk/by-label/writable 5.6G 31M 5.3G 1% /var/log
tmpfs 12G 0 12G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 12G 0 12G 0% /sys/fs/cgroup
tmpfs 12G 4.0K 12G 1% /tmp
tmpfs 2.4G 40K 2.4G 1% /run/user/999
/dev/sda1 511M 4.0K 511M 1% /media/mint/0C79-6609
/dev/sda5 704M 208M 445M 32% /media/mint/3ade05e4-0e00-4d49-97de-047b92a855a0
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
deepakdeshp
Level 20
Level 20
Posts: 12333
Joined: Sun Aug 09, 2015 10:00 am

Re: Can't Login, Can't Access Encryption

Post by deepakdeshp »

See if this helps.
viewtopic.php?f=42&t=315207
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 20
Level 20
Posts: 12333
Joined: Sun Aug 09, 2015 10:00 am

Re: Can't Login, Can't Access Encryption

Post by deepakdeshp »

See if this helps.
I would advise not to encrypt. Use veracrypt instead.
Recovery is messy for encrypted partition.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Locked

Return to “Installation & Boot”