How do you mount an encrypted drive from the command line?

I’m using opensuse leap 42.3-64 and KDE

I really messed up my system uninstalling mozilla firefox. I used yast/software management and a ton of files were uninstalled and libraries deleted.

Somehow the desktop changed to ICE wm, and reinstalling mozilla firefox didn’t fix the problem.

I want to make a fresh backup of my files from sdb9 which is encrypted with LUKS, to sda1, which is also encrypted with LUKS.

Here’s my question: How do you mount an encrypted drive from the command line?

I’ve tried

 mount   /dev/sda1   /home/disk2-mnt  

which yielded

 mount: unknown filesystem type 'crypto_LUKS'  

What do I do?

Thank you.

Try:


cryptsetup luksOpen /dev/sda1 cr_sda1
mount /dev/mapper/cr_sda1 /home/disk2-mnt

Note: The “cr_sda1” can be changed to something else, as long as it is changed in both lines. The only requirement is that it does not conflict with other device names. You should be prompted for the encryption key on the “cryptsetup” line.

Awesome, thank you.

The CAPITAL O almost got me.