LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Truecrypt hidden volume (https://www.linuxquestions.org/questions/slackware-14/truecrypt-hidden-volume-880798/)

mocca 05-15-2011 03:38 AM

Truecrypt hidden volume
 
Hi, I mount truecrypt ntfs hidden volume in Slackware, i can read but i can't write to it. It shows "Operation not permitted".
Anyone know what I'm doing wrong?
I can read and write from other distro without any problem.

hyperhead 05-15-2011 07:04 AM

Who is the owner of the truecrypt file?

What is the output of:

ls -all <truecryptfile>

mocca 05-15-2011 07:21 AM

Quote:

Originally Posted by hyperhead (Post 4356800)
Who is the owner of the truecrypt file?

What is the output of:

ls -all <truecryptfile>

The truecrypt partition created from windows. Outer volume format in Fat and hidden volume format in ntfs.

Code:

ls:
 ls -all /dev/sdb3
brw-rw---- 1 root disk 8, 19 May 15 18:38 /dev/sdb3


bash-4.1$ ls -all /media/truecrypt1
total 8
drwx------  1 mocca users 4096 May 16  2011 .
drwxr-xr-x 19 root  root  4096 May 15 20:14 ..
drwx------  1 mocca users    0 May 16  2011 test
bash-4.1$


hyperhead 05-15-2011 07:49 AM

Do the volume properties state that it is read only?

truecrypt --volume-properties /mount/point

Alternatively have you got ntfs-3g package from /a/ installed?

mocca 05-15-2011 08:23 AM

Quote:

Do the volume properties state that it is read only?
truecrypt --volume-properties /mount/point
Volume properties state:
Read Only: No

Quote:

Alternatively have you got ntfs-3g package from /a/ installed?
Yes ntfs-3g was installed.

hyperhead 05-15-2011 09:15 AM

I have tried to re-create the conditions by creating a hidden container, but unfortunately did not have the option to format it as ntfs.

Perhaps this indicates that the truecrypt package on slackware cannot handle ntfs?

I found this:

If you wish to mount an NTFS formatted volume in read/write mode, you need to have the ntfs-3g driver installed, and when mounting specify it by saying --filesystem ntfs-3g because the autodetect mode will result in the usage of the read-only ntfs driver. Also the user mount option doesn't seem to work for me, so instead you can use the --mount-options gid=100,uid=1000,umask=000 parameter to make it accessible to all the user. You can find out the number you need to type for gid (GroupID) and uid (UserID) by doing a cat /etc/group|grep user and cat /etc/passwd|grep [your user name] respectively.

mocca 05-15-2011 05:29 PM

Quote:

Originally Posted by hyperhead (Post 4356876)
I have tried to re-create the conditions by creating a hidden container, but unfortunately did not have the option to format it as ntfs.

Perhaps this indicates that the truecrypt package on slackware cannot handle ntfs?

I found this:

If you wish to mount an NTFS formatted volume in read/write mode, you need to have the ntfs-3g driver installed, and when mounting specify it by saying --filesystem ntfs-3g because the autodetect mode will result in the usage of the read-only ntfs driver. Also the user mount option doesn't seem to work for me, so instead you can use the --mount-options gid=100,uid=1000,umask=000 parameter to make it accessible to all the user. You can find out the number you need to type for gid (GroupID) and uid (UserID) by doing a cat /etc/group|grep user and cat /etc/passwd|grep [your user name] respectively.

Hi hyperhead, I created and format the truecrypt hidden volume from windows.
I will try your suggestion when I back from work today.

mocca 05-16-2011 02:17 PM

Quote:

Originally Posted by hyperhead (Post 4356876)
I found this:

If you wish to mount an NTFS formatted volume in read/write mode, you need to have the ntfs-3g driver installed, and when mounting specify it by saying --filesystem ntfs-3g because the autodetect mode will result in the usage of the read-only ntfs driver. Also the user mount option doesn't seem to work for me, so instead you can use the --mount-options gid=100,uid=1000,umask=000 parameter to make it accessible to all the user. You can find out the number you need to type for gid (GroupID) and uid (UserID) by doing a cat /etc/group|grep user and cat /etc/passwd|grep [your user name] respectively.

I tried this method, It shows error:
mount: wrong fs type, bad option, bad superblock on /dev/mapper/truecrypt1

hyperhead 05-17-2011 12:22 PM

Ok, I have one last thing you could try

in sbin/ link mount.ntfs to mount.ntfs-3g

Code:

ln -s mount.ntfs-3g mount.ntfs
This worked for me when I couldn't write to a couple of external USB devices I had that were ntfs filesystems.

Hope this works, I am out of ideas!

mocca 05-19-2011 06:10 AM

Quote:

Originally Posted by hyperhead (Post 4359074)
Ok, I have one last thing you could try

in sbin/ link mount.ntfs to mount.ntfs-3g

Code:

ln -s mount.ntfs-3g mount.ntfs
This worked for me when I couldn't write to a couple of external USB devices I had that were ntfs filesystems.

Hope this works, I am out of ideas!

Hi hyperhead,
This method worked. Now i can read and write to the ntfs hidden volume.
Thank you very much.

hyperhead 05-19-2011 07:37 AM

Happy to hear it worked.

firekage 05-26-2011 10:44 AM

Quote:

Originally Posted by hyperhead (Post 4359074)
Ok, I have one last thing you could try

in sbin/ link mount.ntfs to mount.ntfs-3g

Code:

ln -s mount.ntfs-3g mount.ntfs
This worked for me when I couldn't write to a couple of external USB devices I had that were ntfs filesystems.

Hope this works, I am out of ideas!


I also have problems with truecrypt containter that was created under windows in ntfs.

I used command in code above, i can enter the ntfs container, i can delete files, i can copy files to a container, i can create new folders (without the command in code i could only acces and read but i couldn't delete files or create folders in it) but i've problems with editing things that are in this windows ntfs container.

When i open, for an example, .txt document, or open office document i can read it but i can't change anything in it, i can't save changes that i made in it - i don't have file permission and i don't understand why - i don't have file save permission.

There is something also with file permission - when i start the terminal, i change filepermission on a specific file - for an example on slacware.txt, than i...can't read the file, i cannot open it. It looks like the file after changing file permission is damaged.

hyperhead 05-26-2011 12:56 PM

Hi

What are the permissions on the directory that is mounted? Do they differ at all between files / directories?

That's all I can think of that would cause the problem, other than what is stated in the suggestions above.


All times are GMT -5. The time now is 02:25 AM.