LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Truecrypt/NTFS/Odd mount error (https://www.linuxquestions.org/questions/linux-software-2/truecrypt-ntfs-odd-mount-error-802302/)

Lincthra 04-15-2010 09:28 PM

Truecrypt/NTFS/Odd mount error
 
I have an external 750 gig USB Drive which is device encrypted with Truecrypt (Originally encrypted in Windows, but I have since made the transition to Ubuntu).

I am now on Ubuntu 9.10. Truecrypt 5.1a is installed. NTFS-3g is installed.

If I mount the device using the GUI, everything goes just fine and the device is read/write. If I mount using the commandline without the --filesystem=ntfs-3g tag, it mounts, but in read only. If I attempt to mount WITH the --filesystem=ntfs-3g tag. I get an error claiming that there is no NTFS signiture.

Now, I want this to mount at boot and do not mind the password being 'unsecure' at the moment. I have tried using a bash script, but that of course results in the ntfs signiture error. I have considered running some sort of macro on startup, but Gnee/Knee/Xnee doesn't seem to work as I keep getting recorder errors.

Does anyone have any suggestions?

everest40 04-16-2010 09:51 AM

You might try upgrading to the latest version of TrueCrypt, which I believe is 6.3a now. Aside from that I've got no ideas.

mostlyharmless 04-16-2010 04:17 PM

Just a few thoughts:
Could you list the exact command line (what you actually typed)) you are using? It might help diagnose the problem.
Have you run any ntfs diagnostics on the filesystem after it is mounted by the GUI? Ntfs-3g seems pickier than the kernel's default ntfs driver...

Lincthra 04-16-2010 07:40 PM

truecrypt -t --protect-hidden=no --filesystem='ntfs-3g' --mount /dev/sdb1 -k ~/keyfilefile.txt --slot=13 -p 'mypasswdhere' /media/truecrypt13

I have tried with/out -t, with/out protect-hidden with/out filesystem, with/out slot, with/out mount location. As user and as root after a sudo bash.

Truecrypt 6.3a won't open for me.

I haven't run any NTFS diags with it running. I've never actually done that in 'nix and will have to research it.

A thought, what file system does the GUI use? If it were the default kernel one, I'd think it would mount as read only like the command line does....

Lincthra 04-16-2010 11:43 PM

Self-solve.

For some reason, being under 'sudo bash' isn't good enough. I have to su my username and THEN run my truecrypt mount command line. That way it seems to work.

Thanks for your help guys!

EDIT: Upon finding this being the problem, I discovered the sudoers file and now can run my mount script at boot without having to do any keystroke entry. All I wanted was to mount my drive for my Home Theater XBMC box!


All times are GMT -5. The time now is 07:28 PM.