*NOTE* Make sure that samba is installed on your box before you begin. Maybe something like yum install samba or aptitude install samba will do it for you.
First make sure that your Linux box can see your Windows box:
smbclient -L 192.168.1.12 -U winuser
Where 192.168.1.12 is your windows box and winuser is the user on your windows box.
Next create the directory that you want to use to mount the windows share:
mkdir /mnt/windows
You could just as easily have mounted it as /usr/local/mywindowsbox. I just like to keep things nice and tidy under /mnt/
Next you will want to actually mount the windows share:
mount -t smbfs -0 username=winuser,password=mypassword //192.169.1.12/:share: /mnt/windows
The previous should all be on one line and :share: is the name of the share on your windows box.
Now your all set… what?… you want it to work automatically after you reboot?
Ok… here goes:
Open up /etc/fstab and put this in:
//192.168.1.12/:share: /mnt/windows smbfs \
user,rw,iocharset=utf8,uid=500,gid=500,fmask=775,dmask=775, \
password=mypassword,username=winuser 0 0
The previous should all be on one line so omit the \ at the end of line 1 and line 2