Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Invalid argument error - TrueCrypt on Linux Mint

Posted on 2014-01-29
7
Medium Priority
?
1,436 Views
Last Modified: 2014-02-04
Hello,

I needed a cross platform file encryption system for Windows 7 and Linux Mint, so I tried TrueCrypt.

I created an encrypted file-type volume under Win 7, and can mount read, write and dismount the volume. All good.

Copied the encrypted file to Linux Mint.

I can't mount it using TrueCrypt in Mint, I get the following error after successfully getting past the requests for the decryption password and then admin password:

"device-mapper: resume ioctl failed: Invalid argument. Command Failed"
0
Comment
Question by:LarryZ
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 
LVL 22

Expert Comment

by:pjedmond
ID: 39819487
This is possibly because your Linux Mint Distro is trying to use a kernel module to mount the partition.

Try adding :

-m=nokernelcrypto

to your TrueCrypt command line?

Might be useful if you give the full command line that you are using, plus whether you are using a fully encrypted drive or merely an encrypted file?
0
 

Author Comment

by:LarryZ
ID: 39819553
Thank you pjedmond. I had already tried -m=nokernelcrypto, after seeing it online somewhere.

I have just determined that the error was caused by an excessive size of the TrueCrypt file/volume.  I had sized it at 10 GB in Win 7, but my entire Linux virtual machine was only 8 GB. I noticed that the TrueCrypt file size was much smaller when moved to Linux. I guess the move truncated the encrypted file without notifying me.  If I create a 4 GB TrueCrypt file in Win 7, it seems to move to Linux okay and will successfully mount in TrueCrypt.
0
 

Author Comment

by:LarryZ
ID: 39819561
I am still having some Linux permissions issues with the TrueCrypt file though. I'll post a comment here later if needed.
0
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 

Author Comment

by:LarryZ
ID: 39819672
I have two profiles in Linux Mint. Both are Administrator profiles.

Profile 1 was used to install Linux Mint and its password works for superuser.
Profile 2 (wife) was added by Profile 1 shortly thereafter.

If I create a 2 GB TrueCrypt file-based volume when logged in as Profile 1, and place it in Profile 1's document folder, I can mount it, and add or delete files.

If I try to copy or move it to Profile 2's document folder, I can't mount it. TrueCrypt accepts the encryption pw, but won't accept either Profile 1's pw or Profile 2's pw when asking for the user or admin password.

If I create another 2 GB TrueCrypt file-based volume when logged in as Profile 2, and place it in Profile 2's document folder, I can't mount it either. TrueCrypt accepts the encryption pw, but won't accept either Profile 1's pw or Profile 2's pw when asking for the user or admin password.

I'd like to get TrueCrypt working in Linux Mint Profile 2, since all the files to be encrypted reside there.

Any help would be appreciated.
0
 

Accepted Solution

by:
LarryZ earned 0 total points
ID: 39822694
For the benefit of others that may have the same problem, I have done more research and found a solution.

The fix is to first create a new user group called truecrypt, and add users Profile 1 and Profile 2 to it.

Next use "sudo visudo" in a terminal window to edit the file to give TrueCrypt the root privileges it needs to mount the container.

See  https://www.linuxquestions.org/questions/linux-software-2/truecrypt-cant-obtain-root-privileges-655139/
0
 

Author Closing Comment

by:LarryZ
ID: 39832012
I did not get a solution from experts this time, although EE has been extremely helpful on previous postings. Thanks.
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 39833551
Ooops - should have got back to you on this one. If the truecrypt file is being truncated, that implies an issue with one of the file systems involved.

FAT32 typically has a 4GB size limit, so it may be that although it worked on Windows you were not using all of the container, and the bit that you needed to read was OK. However attempting to copy it over failed at the 4GB point resulting in a corrupt file.

It coult also be a BIOS limitation as well on one or other of the systems.

Just a thought?
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Businesses who process credit card payments have to adhere to PCI Compliance standards. Here’s why that’s important.
This article covers the basics of data encryption, what it is, how it works, and why it's important. If you've ever wondered what goes on when you "encrypt" data, you can look here to build a good foundation for your personal learning.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question