This procedure is for mounting a Windows XP share on linux
I created a share on my XP laptop. The username is James Cunningham, there is no password for the share.
Create a directory for the mount point in the command line.
Next command line,
Note: the username is the username of the windows share. In my case it is the default username
$mount.cifs //192.168.1.101/spcshare /media/spcshare -o username=James Cunningham
In this example, I copy the share to an external hard drive connected to the linux computer.
I used rsync to copy the share to the external hard drive
$ sudo rsync -r --delete /media/spcshare/spd1 /media/"My Book_"/
To unmount
sudo umount.cifs /media/spcshare
This script is for mounting my XP Windows computer share and using the rsync command to copy the share to my Linux unit
#!/bin/sh
#this is a bash to mount a windows xpshare and rsync to linux box
sudo mount.cifs //192.168.1.100/JCshare /media/spcshare -o username=guest
sudo rsync -r --delete /media/spcshare/cherryone /home/jcxpdesk/
sudo umount.cifs /media/spcshare
exit
This file has to be executable to work. webmin is a great unix admin software for editing shell script files. See webmin.com