SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699
Rep:
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:
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!
Originally posted by bejiita 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 ??
yep. check your permissions on the Windows share. If you add whatever user you are on Slackware to the users on Windows it should resolve the issue. However, you should also check the permissions on /mnt/xp1 directory and make sure that the owner and group are correct.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.