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:
Blocking intrusion attempts using authentication module pam_tally2It is possible to block these intrusions using the authentication module called "pam_tally2". This module maintains a count of attempted accesses, can… Read More
How to Disable Directory Listings in IIS/ApacheThe easiest way to disable directory listing is to create an index file. The name of the index file depends on the web server configuration. On Apache… Read More
Network Time Protocol(NTP) Based DDoS Attacks.Accurate, reliable time is necessary for financial and legal transactions, transportation and distribution systemsand many other applications involvin… Read More
DoS-ing & Countering Apache Web Link SaturationTesting your webserver - DoS-ing DoS, or Denial of Service attacks, are nothing new. The main idea behind a DoS attack is to exhaust a devices … 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
0 comments:
Post a Comment