If you have an encrypted external disk (or an internal disk that is not in fstab), you will see an entry for it in Nautilus. You can click on this volume, and am prompted for a password to decrypt and mount the device. However if you want mount and unmount the same over command line.
I follow the below steps to mount and unmount encrypted partitions.
You may require to install cryptsetup first.
sudo apt-get install cryptsetup
To decrypt the volume:
sudo cryptsetup luksOpen /dev/sda1 my_encrypted_volume
Now you can mount it as usual:
sudo mkdir /media/my_device
sudo mount /dev/mapper/my_encrypted_volume /media/my_device
To lock the container again, it needs to be unmounted first:
sudo umount /media/my_device
sudo cryptsetup luksClose my_encrypted_volume
To automatically put it in the /media location, use the udisks tool
sudo udisks --mount /dev/mapper/my_encrypted_volume
Mounting / Unmounting encrypted external drive over command line in Ubuntu 18.04
June 21, 2019 / by Kushan Sharma / with No comments /
Related Posts:
Verify Package Integrity Using RPM RPM is a great utility used to install, upgrade and verify software packages on your Red Hat system. It's the verify feature that we are most interest… Read More
Securing Ubuntu 16.04 LTS: Disable Guest Account Disable Guest Account in Ubuntu 16.04 LTS LightDM configuration files are located in /usr/share/lightdm and /etc/lightdm. Disabling Guest account can… Read More
Install Oracle VirtualBox 5.0.18 on Ubuntu 16.04 ("Xenial") Desktop AMD64 I was trying to install Oracle VirtualBox 5.0.18 on my newly installed Ubuntu 16.04 ("Xenial") Desktop AMD64. VirtualBox 5.0.18 for Ubuntu 16.04 Des… Read More
Creating Encrypted Private/Separate Partition on Ubuntu 16.04 LTSI wanted to convert an already configured partition to an encrypted partition. As the encryption utility, "cryptsetup" was used. Since mine was a fre… Read More
Disable Weak Cipher Suites in ServersMost of the servers support the use of SSL ciphers that offer medium strengthencryption, which we currently regard as those with key lengths at least … Read More
0 comments:
Post a Comment