Can not mount an encrypted hard drive after Linux Mint crashed down

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
better_solution
Level 1
Level 1
Posts: 3
Joined: Thu May 13, 2021 11:29 am

Can not mount an encrypted hard drive after Linux Mint crashed down

Post by better_solution »

Hi Guys,

I have problems booting in my system. After I pass the decryption of the hard drive successfully, I go only a black screen with BusyBox..... (initramfs).

If I boot my Mint 20.1 from USB drive, I can decrypt the sda3 but I can not mount it.

The only extra Installation on notebook was a Resilio Sync for online file synchroniying between two Linux Mint notebooks. I also adjusted a Timshift`with RSYNC. The recovery with Timeshift did not work out. I tried following without any success:

mint@mint:~$ sudo mount /dev/sda3 /luks-4d6dec4f-c7e4-4a6b-bdd3-16990202c42e
mount: /luks-4d6dec4f-c7e4-4a6b-bdd3-16990202c42e: mount point does not exist.

mint@mint:~$ sudo mount /dev/mapper/luks-4d6dec4f-c7e4-4a6b-bdd3-16990202c42e /luks-4d6dec4f-c7e4-4a6b-bdd3-16990202c42e
mount: /luks-4d6dec4f-c7e4-4a6b-bdd3-16990202c42e: mount point does not exist.

Now I would like to ask you kindly for your help. I only need to get access to my home folder where the container of the Resilio Sync is with all my personal data.

Here are some Information about my system:

Code: Select all

mint@mint:~$ lsblk
NAME                                       MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
loop0                                        7:0    0   1.8G  1 loop  /rofs
sda                                          8:0    0 931.5G  0 disk  
├─sda1                                       8:1    0   512M  0 part  
├─sda2                                       8:2    0   732M  0 part  
└─sda3                                       8:3    0 930.3G  0 part  
  └─luks-4d6dec4f-c7e4-4a6b-bdd3-16990202c42e
                                           253:0    0 930.3G  0 crypt 
    ├─vgmint-root                          253:1    0 929.3G  0 lvm   
    └─vgmint-swap_1                        253:2    0   976M  0 lvm   
sdb                                          8:16   1  14.9G  0 disk  
├─sdb1                                       8:17   1   1.9G  0 part  /cdrom
├─sdb2                                       8:18   1   3.9M  0 part  
└─sdb3                                       8:19   1    13G  0 part  /var/log

Code: Select all

mint@mint:~$ sudo fdisk -l /dev/sda
Disk /dev/sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000LM035-1RK1
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: gpt
Disk identifier: 466F1D36-B543-412D-88CA-38BEC0097985

Device       Start        End    Sectors   Size Type
/dev/sda1     2048    1050623    1048576   512M EFI System
/dev/sda2  1050624    2549759    1499136   732M Linux filesystem
/dev/sda3  2549760 1953523711 1950973952 930.3G Linux filesystem

Code: Select all

mint@mint:~$ sudo pvs
  PV                                                    VG     Fmt  Attr PSize    PFree
  /dev/mapper/luks-4d6dec4f-c7e4-4a6b-bdd3-16990202c42e vgmint lvm2 a--  <930.28g    0
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.
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: Can not mount an encrypted hard drive after Linux Mint crashed down

Post by xenopeek »

I think the directory where you want to mount the partition needs to exist. So create a directory for sda3 somewhere and for the mapped crypt partition. Then mount those there. Like this:

Code: Select all

sudo mkdir /mnt/{sda3,crypt}
sudo mount /dev/sda3 /mnt/sda3
sudo mount /dev/mapper/luks-4d6dec4f-c7e4-4a6b-bdd3-16990202c42e /mnt/crypt
Image
better_solution
Level 1
Level 1
Posts: 3
Joined: Thu May 13, 2021 11:29 am

Re: Can not mount an encrypted hard drive after Linux Mint crashed down

Post by better_solution »

xenopeek wrote: Thu May 13, 2021 1:48 pm I think the directory where you want to mount the partition needs to exist. So create a directory for sda3 somewhere and for the mapped crypt partition. Then mount those there. Like this:

Code: Select all

sudo mkdir /mnt/{sda3,crypt}
sudo mount /dev/sda3 /mnt/sda3
sudo mount /dev/mapper/luks-4d6dec4f-c7e4-4a6b-bdd3-16990202c42e /mnt/crypt
Thank you for your suggestion. Unfortunately it didn't worked out:

mint@mint:~$ sudo mkdir /mnt/{sda3,crypt}
mint@mint:~$ sudo mount /dev/sda3 /mnt/sda3
mount: /mnt/sda3: unknown filesystem type 'crypto_LUKS'.
mint@mint:~$ sudo mount /dev/mapper/luks-4d6dec4f-c7e4-4a6b-bdd3-16990202c42e /mnt/crypt
mount: /mnt/crypt: unknown filesystem type 'LVM2_member'.
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: Can not mount an encrypted hard drive after Linux Mint crashed down

Post by xenopeek »

Ah. I added code tags to terminal output of your first post to make it more readable. I thought sda3 was a regular partition that you were trying to mount but it's a LUKS+LVM partition. Don't bother trying to mount sda3. You want to mount the LVM volume vgmint-root.

Assuming you've already done cryptsetup open to unlock sda3 I guess you can just do:
sudo mount /dev/mapper/vgmint-root /mnt/crypt
Image
better_solution
Level 1
Level 1
Posts: 3
Joined: Thu May 13, 2021 11:29 am

Re: Can not mount an encrypted hard drive after Linux Mint crashed down

Post by better_solution »

xenopeek wrote: Fri May 14, 2021 1:51 pm Ah. I added code tags to terminal output of your first post to make it more readable. I thought sda3 was a regular partition that you were trying to mount but it's a LUKS+LVM partition. Don't bother trying to mount sda3. You want to mount the LVM volume vgmint-root.

Assuming you've already done cryptsetup open to unlock sda3 I guess you can just do:
sudo mount /dev/mapper/vgmint-root /mnt/crypt
It looks like my hard drive suffers under deep depression. He don't want to wake up:

mint@mint:~$ sudo mkdir /mnt/{sda3,crypt}
mint@mint:~$ sudo mount /dev/mapper/vgmint-root /mnt/crypt
Segmentation fault
Locked

Return to “Installation & Boot”