You are not logged in.

#1 2023-01-17 21:27:52

iamkarlson
Member
Registered: 2023-01-17
Posts: 28

[SOLVED] How to mount llvm luks encrypted volume from external drive

Hi all,
I have old laptop drive that is encrypted with luks, and managed by llvm.

$ lsblk    
NAME         MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
sdc            8:32   0 476.9G  0 disk  
├─sdc1         8:33   0   512M  0 part  
├─sdc2         8:34   0   732M  0 part  
└─sdc3         8:35   0 475.7G  0 part  

I opened it with cryptsetup:

sudo cryptsetup open /dev/sdc3 ubuntu

However, when I try to mount it, I'm getting error that it's part of llvm:

$ sudo mount /dev/mapper/ubuntu  /mnt/olddrive
mount: /mnt/olddrive: unknown filesystem type 'LVM2_member'.
       dmesg(1) may have more information after failed mount system call.

What is a proper way to mount such a disk to my running system?

Last edited by iamkarlson (2023-02-10 13:08:32)

Offline

#2 2023-01-17 22:29:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] How to mount llvm luks encrypted volume from external drive


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2023-01-18 10:15:31

iamkarlson
Member
Registered: 2023-01-17
Posts: 28

Re: [SOLVED] How to mount llvm luks encrypted volume from external drive

Thanks! I installed lvm2 and then, after opening with cryptsetup , used the following to mount it:

$ sudo vgdisplay
  --- Volume group ---
  VG Name               vgkubuntu
......................
$ sudo vgchange -a y vgkubuntu

and I was able to use regular mount:

sudo mount /dev/mapper/vgkubuntu-root /mnt/olddrive  

Offline

#4 2023-12-12 00:02:31

Zorgounet
Member
Registered: 2023-12-11
Posts: 1

Re: [SOLVED] How to mount llvm luks encrypted volume from external drive

Hello

I have been searching for this tips for hours.
I was using the old syntax for LVM and did not understand what I was doing wrong.

THANKS to this board !

Offline

#5 2023-12-12 00:09:28

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] How to mount llvm luks encrypted volume from external drive

Closing this old solved topic.

Offline

Board footer

Powered by FluxBB