I have a Debian Squeeze guest system running on a Windows 7 Professional host, a notebook computer. As a web developer, I need to mount my Windows project root folder into the Debian system.
VirtualBox offers a shared folders function, however it does not recognize windows-style symlinks ("junctions"). So I decided to run a Samba client in my Debian system and mount the project folders from the virtual network (NAT). I do that by using this command in /etc/rc.local
:
mount -t cifs //192.168.178.62/Projekte/workspace /media/smb_workspace -o "user=Bill,password=XXXXXXX,domain=LOCALDOMAINNAME",uid=33,gid=33,ex$
This works fine, but as the name of the host machine couldn't be resolved, I had to use it's IP address. When I'm in a different WIFI, the IP address changes and I have to change the mounting command. Obviously I'd prefer to enter the name of my Windows machine, like that:
mount -t cifs //NOTEBOOKNAME/Projekte/workspace /media/smb_workspace -o "user=Bill,password=XXXXXXX,domain=LOCALDOMAINNAME",uid=33,gid=33,ex$
I tried switching off my Windows firewall and the antivirus software, to no avail.
The samba packages I installed on Debian are those, and apart from entering the workgroup information I left the configuration unchanged:
- libwbclient0 Samba winbind client library
- samba SMB/CIFS file, print, and login server for Unix
- samba-common common files used by both the Samba server and client
- samba-common-bin common files used by both the Samba server and client
So how can I get this to work? Any suggestions?