truecrypt problem (shared folder) PROB SOLVED

Discussions about using Windows guests in VirtualBox.
Post Reply
dot2dot
Posts: 12
Joined: 9. Apr 2009, 13:39
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: wink2k / ubu 904

truecrypt problem (shared folder) PROB SOLVED

Post by dot2dot »

hello,

config ubuntu > wintel guest
i have an external drive which is entirely encrypted.
on host i have to mount it using tc.
on vbox i map a shared dir which is sitting on the truecrypt volume.
boot up the guest.
map the drive.

i can see the dir - and write to it...
then after a moment i can't see a ton of dirs on the shared drive (panic sets in..)
(shutdown the guest..)

back in ubuntu i cant see anything in the truecrypt volume at all.

i go into the (truecrypt) gui - umount the volume.

then re mount it - restart my (now downed) guest

the file i created is gone.

-- so my question is - can i reliably use vbox with wintel guest - and truecrypted shared folder and write to it. ?
Last edited by dot2dot on 23. May 2009, 14:22, edited 1 time in total.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: truecrypt problem (shared folder)

Post by vbox4me2 »

Only if the TC folder is shared via a real share.
dot2dot
Posts: 12
Joined: 9. Apr 2009, 13:39
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: wink2k / ubu 904

Re: truecrypt problem (shared folder)

Post by dot2dot »

vbox4me2 wrote:Only if the TC folder is shared via a real share.
excuse me what do you mean ?
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: truecrypt problem (shared folder)

Post by vbox4me2 »

When mounted on the Host, add a share to the folder you want to share and 'net use' it from the Guest.
dot2dot
Posts: 12
Joined: 9. Apr 2009, 13:39
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: wink2k / ubu 904

Re: truecrypt problem (shared folder)

Post by dot2dot »

hi,
I've finally attempted your suggested solution.
It failed.
I cannot view all contents nor edit / update files.
I then go back to the main os and the tc volume is confused - i have to umount then remount it.

I can only surmise from this that the process i'm attempting is not possible at this time either due to TC or VBOX.

Anyone have any other suggestions ..

tia
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: truecrypt problem (shared folder)

Post by vbox4me2 »

Then your doing something weird, TC on a server, access TC container with passphrase, it gets assigned a drive letter, then share this drive letter with a sharename, from remote net use this sharename to a remote drive letter and of you go.

Don't use TC on a remote machine to access a TC container elsewhere unless the remote site is the only one using it.

Server,
TC -> decrypt container, drive letter assigned,
Open properties of drive letter and create share.

Remote,
Net use into share.
dot2dot
Posts: 12
Joined: 9. Apr 2009, 13:39
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: wink2k / ubu 904

Re: truecrypt problem (shared folder)

Post by dot2dot »

hey perhaps i am doing something weird. (if i am excuse me).
  • i have an ubuntu server.
    external hd with one partition totally tc encrypted.
    start tc
    mount volume (which is the entire external hdd).
    go into vbox
    share out path - ie /tcvolume/x/y
    start vbox guest
    confirm shared drive using net use x: \\vboxsvr\x\y
    drive mounts fine.
    i view content - it contains not all of what I'd expect
    ok i then shutdown guest
    back into server view content of external drive - doesn't look at all correct
    umount tc vol / mount tv vol - all looks ok again.
now - on reviewing the above what appears to be incorrect ?
note tc version 6.1a / ubu 8.04 / vbox 2.2.2
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: truecrypt problem (shared folder)

Post by vbox4me2 »

go into vbox
share out path - ie /tcvolume/x/y
Wrong, use a real samba share, not a vbox shared folder.
dot2dot
Posts: 12
Joined: 9. Apr 2009, 13:39
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: wink2k / ubu 904

Re: truecrypt problem (shared folder)

Post by dot2dot »

vbox4me2 wrote:
go into vbox
share out path - ie /tcvolume/x/y
Wrong, use a real samba share, not a vbox shared folder.
will do & let you know.

cheers

.2.
dot2dot
Posts: 12
Joined: 9. Apr 2009, 13:39
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: wink2k / ubu 904

Re: truecrypt problem (shared folder)

Post by dot2dot »

ok set up two shares

1/ local is on my server hd - music
2/ server external hd (tc) - data

on the client i can see both shares

i map share #1 i can view everything (and create / delete).
i map share #2 - i can see nothing at all.

thoughts ?
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: truecrypt problem (shared folder)

Post by vbox4me2 »

2) is this shared from visible data on the server?

ea. z:\server\TCvolume.tc -> data inside TC volume accessed on server as y:\
share set on Y:\

The share might disappear after reboot since TC needs to create Y: first.
dot2dot
Posts: 12
Joined: 9. Apr 2009, 13:39
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: wink2k / ubu 904

Re: truecrypt problem (shared folder)

Post by dot2dot »

hi the data on the external drive is the entire drive.
it is mounted via "mount device" - rather than "mount file".

once mounted as for eg /media/truecryptxx
i share out a dir therein

output of
smbclient -L //box -U me
-->

Domain=[box] OS=[Unix] Server=[Samba 3.2.3]

Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
IPC$ IPC IPC Service (box server (Samba, Ubuntu))
data Disk careful now
music Disk testing
Domain=[6K] OS=[Unix] Server=[Samba 3.2.3]

Server Comment
--------- -------

Workgroup Master
--------- -------
WORKGROUP box

- note as before
data is a tc DISK/PARTITION
music is local directory.

- oh and btw once i attempt this all access to 'data' becomes difficult i have to umount the tc and remount to gain access to 'data' again.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: truecrypt problem (shared folder)

Post by vbox4me2 »

I have no idea how this works on a linux Host, on a windows Host this works as I've described, device or file.
On the Host you must be able to access the share locally, which works on windows, so when shared you share the same thing across the LAN. I think there is a chapter about this in TC's manual or online.
dot2dot
Posts: 12
Joined: 9. Apr 2009, 13:39
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: wink2k / ubu 904

Re: truecrypt problem (shared folder) - PROB SOLVED

Post by dot2dot »

ok sussed it.

how it does work and how it should work are often two different things.

to enable this to work - the following process must be used - anything else and it will fail.

1/ the tc volume is on the whole partition - so do not do anything to it ubuntu - ie no mount.
2/ config pass through usb for the device in vbox
3/ boot vbox client
4/ the vbox will pick up the device
5/ start tc on the vbox client
6/ mount device
7/ all data avaliable - no problems.

-- see - easy. no shares / no shared folder no nothing - only a device ;)

thanks for your help btw - i just thought about it and .. then well it became clear we'd missed a trick.
Post Reply