-
mounting samba shares
I've tried smbmount, smbmnt and mount -t smbfs commands to mount some samba shares, but I get back either command not found for the first two and unknown filesystem for the last one. I though smbmount or smbmnt were part of the samba client which I do have installed. What am I doing wrong?
-
-
afaik smbfs is being deprecated, you might want to switch to the superior cifs, ie mount -t cifs or mount.cifs whatever
-
actually, now I have a related question. I want to mount my shares, but 2 of the 3 I want to mount are directories containing spaces. I've tried adding them to fstab, taking the spaces into consideration but nothing works. What would the proper line in fstab to do essentially this:
Code:
//laptop/My Pictures /mnt/pictures cifs user,noauto,ro 0 0
or if there is nothing like that, how can I achieve a similar set up?
Last edited by karasu; 09-24-2006 at 02:01 PM.
-
//servername/My\40Pictures
BTW, don't use spaces in shared names.
Soule
Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others. - Edward Abbey
IRC #linuxn00b
Support your Distro.
Slackware Store
Archlinux Schwag
-
I'm guessing you meant for that to be //server/My\ Pictures? Or maybe //server/My%20Pictures (not sure whether that would work anyway)?
-
Don't forget to add the credentails to the fstab for the mount
Code:
cd
echo username=mywindowsusername > .smbpasswd
echo password=mywindowspassword >> .smbpasswd
chmod 600 .smbpasswd
//servername/sharename /mountdirectory smbfs credentials=/home/myhomedirectory/.smbpasswd 0 0
That's the 'proper' way of setting it up since you don't really want to keep user names and password in a world readable file
But if you really do...
Code:
//servername/sharename /mountdirectory smbfs credentials=/home/myhomedirectory/. smbpasswd,uid=mylinuxusername,gid=mylinuxgroupname 0 0
-
Originally Posted by soulestream
//servername/My\40Pictures
BTW, don't use spaces in shared names.
Soule
If I had made the folders I wish to share, I wouldn't have used spaces. I just went with what windows gave me. I'll try that next time I get a chance. Thanks
Originally Posted by cybertron
I'm guessing you meant for that to be //server/My\ Pictures? Or maybe //server/My%20Pictures (not sure whether that would work anyway)?
laptop happens to be the name of the server...also, My\ Pictures and My%20Pictures are both things I've tried before I made the post. Both return as bad lines in fstab.
-
Hmm, can you quote it?
"//server/My Pictures"
-
you can change the sharename in linux, in the properties tab, i suggest you do so even windows doesnt like those spaces in a share name
-
This works for me...
//servername/"Name of share"
Debian/Ubuntu tested and verified...
-
Originally Posted by MastaShake57
This works for me...
//servername/"Name of share"
Debian/Ubuntu tested and verified...
this is in your fstab? I get a bad line in fstab error with thats in my fstab
also, the \40 replacing the space did not work
-
Originally Posted by dkeav
you can change the sharename in linux, in the properties tab, i suggest you do so even windows doesnt like those spaces in a share name
I would do just that if that didn't then require that I update my music library and playlists to reflect the change of the directory name.
-
Originally Posted by cybertron
Hmm, can you quote it?
"//server/My Pictures"
in fstab? no, that was my 3rd try and it returned a bad line in fstab when I tried to mount it
-
the foldername doesnt change in windows, just share name ie c:\blah\my music shared as music == //server/music mounted to wherever the hell you want so no changing anything on the client side
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|