On Tue, Jul 14, 2020 at 02:00:53PM +0200, Albretch Mueller wrote: > On 7/9/20, Reco <recovery...@enotuniq.net> wrote: > > More or less. The correct sequence is: > > 1) cryptsetup luksOpen > > 2) pvscan && vgchange -ay > > 3) mount "/dev/lbrtchx-vg/home" "/media/abc123" > > > > And the unmounting should go in reverse: > > 1) umount /media/... > > 2) vghcange -an ... > > 3) cryptsetup luksClose > > thank you, but for some reason I can't quite understand, I haven't > found a thorough, self-describing step-by-step guideline about such > matters and I don't have the time right now, Internet access to make > another mistake. > > # _DEV_MPPR="/dev/mapper/${_CR_CRYPTO}" > # echo "// __ \$_DEV_MPPR: |${_DEV_MPPR}|" > // __ $_DEV_MPPR: |/dev/mapper/sdc3_xcrypto| > > # time mkfs --type ext4 "${_DEV_MPPR}" > mke2fs 1.43.4 (31-Jan-2017) > /dev/mapper/sdc3_xcrypto contains a LVM2_member file system > Proceed anyway? (y,N) N
That does seem wrong. Is /dev/mapper/sdc3_xcrypto shown by lvdisplay/lvs? Because it is not, you probably should not try to mount it. Reco