When using an encrypted Linux drive, it is important to know how to decrypt files before copying them to an external USB drive. This article will guide you through the process using Pop!_OS, a popular Linux distribution.
Step 1: Mount the Encrypted Drive
First, you need to mount the encrypted Linux drive on your system. Open the file manager and locate the encrypted drive. It will be represented by a locked icon. Double-click on it to mount the drive.
Step 2: Install Required Packages
In order to decrypt the files, you need to install the necessary packages. Open a terminal by clicking on the terminal icon in the dock or by pressing Ctrl+Alt+T. Type the following command and press Enter:
sudo apt install ecryptfs-utils
Enter your password when prompted and wait for the installation to complete.
Step 3: Create a Mount Point
Next, you need to create a mount point for the decrypted files. A mount point is simply a directory where the decrypted files will be accessible. In the terminal, type the following command:
mkdir ~/decrypted
This will create a directory named "decrypted" in your home folder.
Step 4: Decrypt the Files
Now it's time to decrypt the files. In the terminal, type the following command:
sudo mount -t ecryptfs /path/to/encrypted/folder ~/decrypted
Replace /path/to/encrypted/folder with the actual path to the encrypted folder on your Linux drive. For example, if the encrypted folder is located at /media/username/encrypted, the command would be:
sudo mount -t ecryptfs /media/username/encrypted ~/decrypted
Follow the on-screen prompts and enter the encryption passphrase when asked. If you don't remember the passphrase, unfortunately, there is no way to recover the files.
Step 5: Copy Files to External USB Drive
Once the files are decrypted and mounted, you can easily copy them to an external USB drive. Open the file manager and navigate to the decrypted folder (~/decrypted). Plug in your USB drive and it should appear in the file manager. Simply drag and drop the files from the decrypted folder to the USB drive.
After the copying process is complete, safely eject the USB drive from your system.
Step 6: Unmount the Decrypted Drive
Finally, you need to unmount the decrypted drive to ensure the security of your files. In the terminal, type the following command:
sudo umount ~/decrypted
The decrypted drive is now unmounted and your files are once again protected.
By following these steps, you can easily decrypt files from an encrypted Linux drive and copy them to an external USB drive using Pop!_OS. Remember to always keep your encryption passphrase safe and secure.
References:
| Reference | Description |
|---|---|
| Pop!_OS Documentation - ecryptfs | Official documentation for ecryptfs in Pop!_OS |
| mount.ecryptfs man page | Manual page for the mount.ecryptfs command |