How to connect to a Windows share?
I have a Win2000 box at 10.0.0.12 with a share at \\10.0.0.10\c\. How, from my slackware 10.0 box, can I map/mount this share? Ideally, I'd like to see it at /mnt/winbloze/fat-c .
|
First, make sure you've got Samba installed, and your kernel sees the smb filesystem. If you're using an install kernel, you don't have to worry about the latter part, and Samba is in the N set of packages for Slackware.
That done, make sure that you have the directory /mnt/winbloze/fat-c existing and empty. Then, as root, type: smbmount //10.0.0.12/c /mnt/winbloze/fat-c -o guest When that works, edit your /etc/fstab to include the line: Code:
//10.0.0.12/c /mnt/winbloze/fat-c smbfs noauto,users,rw 1 0 |
smbmount \\10.0.0.10\c /mnt/winbloze/fat-c
Edit: Late.. :) |
hmm
ok Ive done that, and I get a response in the terminal of anonymous login success
then the mount point disappears my line in fstab is as follows \\192.168.1.107\mp3 /mnt/xp1 smbfs noauto,users,rw 1 0 what did I do wrong ? |
This was my final command line that did exactly what I wanted:
mount -t smbfs -o guest //10.0.0.12/c /mnt/zootal/fat-c I stuck this in my rc.local instead of smb.conf Thanks :) |
Probably not a good idea to have it in your rc.local. It'll work, but meh.
Bejiita, your problem is the backslashes, and the lack of the "guest" option. I misspoke earlier, when I posted mine. I was reconstructing it from memory.... For you, it looks like it should be: //192.168.1.107/mp3 /mnt/xp1 smbfs noauto,users,rw,guest 1 0 With the noauto, it will not mount at bootup. You need to type "mount /mnt/xp1" as a user. I've found that's necessary if I'm going to be able to upload as well as download, but YMMV. |
a command that might work a little better for you and be a little more secure would be:
mount -t smbfs -o username=name,password=password,workgroup=workgroup //machine/share /mnt/mntpoint Add this to a script that is only executable by you and then add that to /usr/local/bin and when you want to connect to the drive just type in the name of the script at the # and then voilla! |
Quote:
|
it would seem that its all working. my only concern is after it is mounted /mnt/xp1 disappears from the /mnt directory
maybe its a permissions issue on the directory ?? |
Quote:
|
All times are GMT -5. The time now is 01:25 AM. |