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:
Configure Wireless Network: Edit /etc/network/interfeces of Ubuntu 14.04To discover the available wireless interfaces $sudo lspci |grep Wireless$sudo lspci |grep Network To discover the available wireless networks $sudo i… Read More
Forcing Password Complexity in Red Hat LinuxMy requirement was to enforce the password complexity for all the users of my RHEL 5 server (This will works for RHEL 4/5 also). This would be helpful… Read More
Install and Use Nmap/Zenmap 6 in Ubuntu 14.04For the installation, you follow the steps listed below. If you don't have the alien command, install it with a command such as $sudo apt-get install… Read More
Firewalking with nmapFirewalking is a technique developed by Mike Schiffman and David Goldsmith that utilizes traceroute techniques and TTL values to analyze IP packet res… Read More
Configure wvdial.conf in Ubuntu 14.04I wanted to configure my Etisalat broadband connection with Ubuntu 14.04. Network Manager has already been uninstalled. In order to connect to the br… Read More
0 comments:
Post a Comment