Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 38222  / 12 Months ago, wed, may 24, 2023, 5:32:40

I used the advice given at the end of this article
to mount a TrueCrypt volume by double-clicking it. But I can't unmount it without opening TrueCrypt (umount: /media/truecrypt1 is not in the fstab (and you are not root)) so being able to mount it without opening the program is kind of a moot achievement. Any suggestions?


More From » truecrypt

 Answers
7

Suggestion One



You can use a terminal to unmount it.



For example, I have an encrypted file named enc1 that is on /home/desgua/Dropbox/, so to mount it I should use:



truecrypt --mount /home/desgua/Dropbox/enc1 /mnt/mymountpoint/



And to unmount:



truecrypt -d /home/desgua/Dropbox/enc1



or simple:



truecrypt -d (which should unmount every truecrypted mounted files)



.



Suggestion Two



Also you can create a launcher to unmount it:



1) Paste this at terminal: gedit ~/Desktop/unmounttruecrypt.desktop,



2) Then paste this into the file and save:




[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Unmount Truecrypt
Comment=Unmount all mounted Truecrypt files
Exec=gnome-terminal -e "bash -c "truecrypt -d ; exit; exec bash""
Icon=/usr/share/icons/Humanity/actions/48/player_eject.svg
Categories=Application;Accessories;


3) Now look at your desktop and drag the file to the Launcher.



.



Suggestion Three



Make a script to unmount it for you:



1) Paste this at terminal: gedit ~/Desktop/utscript,



2) Then paste this into the file and save:




#!/bin/bash
mnt=$(mountpoint /mnt/mymountpoint/) # See suggestion One

if [[ $mnt == "/mnt/mymountpoint/ is a mountpoint" ]]; then

truecrypt -d /home/desgua/Dropbox/enc1 | zenity --progress --percentage=40 --auto-close --title="Unmounting" --text="I am umounting it now."
sleep 2 | zenity --progress --percentage=100 --auto-close --title="Done!" --text="Done unmounting!"
else

sleep 2 | zenity --progress --percentage=100 --auto-close --title="Already done!" --text="It is unmounted already!"

fi

exit 0


4) Paste this at terminal: chmod +x ~/Desktop/utscript


[#39300] Thursday, May 25, 2023, 12 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
brailloni

Total Points: 122
Total Questions: 108
Total Answers: 108

Location: North Korea
Member since Tue, Apr 4, 2023
1 Year ago
brailloni questions
Tue, Jun 21, 22, 21:51, 2 Years ago
Thu, Jul 29, 21, 05:25, 3 Years ago
Sat, Apr 2, 22, 17:32, 2 Years ago
Mon, Oct 31, 22, 21:39, 2 Years ago
;