0

I am trying to create a shared folder between Ubuntu 12.04 server running on vmware and my Windows 7 desktop which is hosting it but I keep getting errors telling me that the directories do not exist and when I go to create them, they still tell me they don't exist. What I am hoping to do with these folders is to send system statistics such as vmstat to the shared folder so I can output them into excel, but the shared folders gives me lots of trouble. I have followed several tutorials on youtube and how to geek to no avail.

I have installed samba and changed my user path and settings as recommended on how to geek but it keeps mentioning mounting, whereas no other tutorials mention this at all-is it really necessary? it hasn't worked for me either.

the folder I am trying to share is called "sharedUbuntu" on my windows 7 desktop location and the workspace is called WORKSPACE and the computer name is \HP-LT. My ubuntu username is roryhbmc and the directory where I want to have my shared folder on ubuntu is /home/roryhbmc.

I even tried creating a shortcut using the ip address of my virtual machine but when I open it, it asks for my linux credentials(which are correct) but appears to want a windows password(my laptop has no password.)

All I want to do is to open a shared folder between Ubuntu and Windows which should not be so frustrating. I have already done the Windows part so would like help with the Linux. Does anyone know the syntax for setting it up in the command line on ubuntu? Keep in mind that I have already done samba and have set the settings to without root.

I was sent here from stack overflow as apparently it is "not programming related."

1 Answer 1

1

What always worked for me is to mount the shared folder of the Windows host to the vmware guest linux machine via CIFS. Let's suppose that your hosted machine is connected to a virtual network (network type is not relevant) with an ip address range 192.168.5.0/24, your host machine (windows) address should be 192.168.5.1:

  • First set password to your Windows user or create a new Windows user with a password and give it write permissions to your shared folder, I always get with issues when mounting shares without passwords.
  • Install cifs-utils package in your guest machine sudo apt-get install cifs-utils.
  • Create a mount point directory, for example: mkdir ~/host-shared-folder
  • Mount your shared folder with mount.cifs -o "username=WindowsUser,password=WindowsUserPassword,domain=DomainOrWORkgroupName,uid=roryhbmc,gid=roryhbmc" //192.168.5.1/sharedUbuntu ~/host-shared-folder
  • if you want to mount this folder every time the machine is booted, add this line to your /etc/fstab file //192.168.5.1/sharedUbuntu /home/roryhbmc/host-shared-folder cifs rw,uid=roryhbmc,gid=roryhbmc,username=WindowsUser,password=WindowsUserPassword,domain=DomainOrWorkgroupName 0 0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.