Click to See Complete Forum and Search --> : Help with samba and winXP
h4ng0ver
02-20-2003, 04:52 PM
i was able to get windowXP to see my share drive under redhat, but i have no idea how to get Linux to see my winXP drive .
I have drive D share in winxp and i want to be able to read/write from my Linux (from console)....
Thanks for your help
chenry3
02-20-2003, 06:22 PM
don't quote me on syntax, but it's something to the effect of:
mount -t smbfs -o username=<name>,password=<password> //commputername/share /localfolder
I'm pretty sure thats it... I haven't played with it in a while, however my automount in /etc/fstab (using debian) for a remote share looks like:
//10.0.0.2/storage /falsespace/storage smbfs username=user,password=pass 0 0
//10.0.0.2/storage3 /falsespace/storage3 smbfs username=user,password=pass 0 0
//10.0.0.2/storage2 /falsespace/storage2 smbfs username=user,password=pass 0 0
that is for 3 different shares on the computer 10.0.0.2 named storage, storage2 and storage3. They are mounting in /falsespace/storage, storage2, and storage3 respectively.
-Chris
h4ng0ver
02-20-2003, 07:38 PM
Thanks, it works perfectly....:)
joesbox
02-20-2003, 09:27 PM
you can also put this in your /etc/fstab:
<btw this is mine to see my xp>
//WINXP-BOX/WINXPSHARE /home/joe/xpdrive smbfs username=!JOE,password=<**********>,uid=joe,gid=joe,rw 0 0
<**********> is replaced by my winxp password that i am not going to put on the net. it coincides with the username <!JOE>.
this way i don't have to worry about connecting when i reboot.