Page 1 of 1
map network drive ubuntu shared folder in windows XP
Posted: 24. Feb 2011, 21:43
by chidge
Hi all
I want to map a shared folder from my Guest Ubuntu Virtual box in my host windows XP
I have followed the advice given here
https://help.ubuntu.com/9.10/internet/C ... hares.html but cannot map the shared folder in Ubuntu in windows XP.
When broswing after clicking tools>map network drive (in a folder in XP) I can see my Ubuntu VM in WORKGROUP but no shared folders.
In my Guest Ubuntu I have shared the folder in question.
I have had a really good look around on Google but no joy at all.
The aim is to be able to map the shared folder in Ubuntu to XP so I can work with the files on XP but open them from the shared folder in Ubuntu.
Any help/tutorials or ideas would be hugely appreciated.
thanks in advance
Re: map network drive ubuntu shared folder in windows XP
Posted: 25. Feb 2011, 10:31
by vbox4me2
Samba installed ? have you tried a 'net use' from xp ?
Re: map network drive ubuntu shared folder in windows XP
Posted: 25. Feb 2011, 20:15
by chidge
yup samba is installed latest version
and
net use \\servername gives me
"System error 53 has occured.
The network path was not found"
Re: map network drive ubuntu shared folder in windows XP
Posted: 25. Feb 2011, 22:47
by vbox4me2
Its usually:
net use s: \\ip_address\share_name /user:username_on_remote_machine
Re: map network drive ubuntu shared folder in windows XP
Posted: 25. Feb 2011, 23:07
by chidge
Thanks with that I get:
System error 1326 has occured
Logon failure: unknown user name or bad password
and thats using the user I am logged in with on Ubuntu
Re: map network drive ubuntu shared folder in windows XP
Posted: 25. Feb 2011, 23:39
by chidge
ok so I go into Ubuntu terminal
shares-admin
add in a new fresh folder
click close
this message appears in the terminal "(shares-admin:2254): Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed"
then I go to XP terminal type:
net use s: \\ip\folder /user:user_name
I then get the message
"The password or user name is invalid for \\ip\folder"
I enter the password and then it says
"System error 1326 has occured
Login failure: unknown user name or bad password"
I have tried my login username and password and my samba one - no joy with either
Re: map network drive ubuntu shared folder in windows XP
Posted: 26. Feb 2011, 12:18
by chidge
ok I have googled all over about this and tried various things - i have also setup anoher non admin account enabled sharing files and this doesnt work.
Rather frustrating! as this is meant to simply work?
Re: map network drive ubuntu shared folder in windows XP
Posted: 26. Feb 2011, 13:11
by oilblue
Why not share a host folder with a guest than the other way around--see Howtos and Tutorials < Linux Guests < HOWTO: Use Shared Folders
Sharing a guest folder brings other variables into play, like the network mode. Default is NAT, which isn't very helpful for host to guest comms. Bridged or Host-only should work better. Check the manual for more details on those types.
Hope that helps.
Re: map network drive ubuntu shared folder in windows XP
Posted: 26. Feb 2011, 14:40
by chidge
thanks- just tried that and get the error
" mounting failed with the error: Protocol error"
Re: map network drive ubuntu shared folder in windows XP
Posted: 26. Feb 2011, 17:47
by vbox4me2
Do you have (XP)file and print sharing installed and the shared symbol on the shared folder has appeared? NAT or Bridge mode for the Guest? for XP if you leave everything default it always works out of the box.
Ea. some videos about it
http://www.google.nl/search?hl=nl&sourc ... =&aql=&oq=
Re: map network drive ubuntu shared folder in windows XP
Posted: 26. Feb 2011, 20:55
by chidge
yes folder is shared (with the little hand)
folder location is
d:/development/www
I then go into the guest Ubuntu and type
sudo mount -t vboxsf www /webdev
as I would like it to be mounted in my folder /webdev
I then get the error:
/sbin/mount.vboxsf: mounting failed with the error: Invalid argument
Re: map network drive ubuntu shared folder in windows XP
Posted: 26. Feb 2011, 21:32
by chidge
and Im nat on the guest
Re: map network drive ubuntu shared folder in windows XP
Posted: 26. Feb 2011, 22:06
by vbox4me2
Ah, you are mixing real samba sharing with VBox sharing, they are not the same, for VBox sharing you also need the Guest additions.
Re: map network drive ubuntu shared folder in windows XP
Posted: 26. Feb 2011, 22:17
by chidge
guest additions is installed
Re: map network drive ubuntu shared folder in windows XP
Posted: 26. Feb 2011, 22:34
by chidge
ok after pressing the help button on the shared folders pop up (devices>shared folders) and searching for "shared folders"
I have found out that if I share a folder here and click auto mount then it is automatically added to /media/sf_shared_folder_name
I have had to change my user to the group vboxsf - after a reboot (not a restart) I can now interact with this folder as intended.
Hopefully the above may help someone else in the future if they are also struggling!
Thank you everyone for all your help