Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble mounting samba shares: no such device [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6428
Location: /usr/lib64/lv2

PostPosted: Thu Oct 06, 2011 1:48 am    Post subject: Trouble mounting samba shares: no such device [SOLVED] Reply with quote

I've spent all day on this. Now I'm giving up and appealing for help, even though I know I'm going to kick myself when someone points out the obvious, whatever that turns out to be.

I'm having trouble mounting shares. I've emerged samba on my server. I've done smbpasswd -a username. This is my /etc/samba/smb.conf:

Code:

[global]

   workgroup = DEFDRAGON
   server string = Samba Server
   security = user
   hosts allow = 192.168.1. 127.
   log file = /var/log/samba/log.%m
   max log size = 50
   dns proxy = no

[homes]
   comment = Home Directories
   browseable = no
   writable = yes

[/var/www]
   comment = Web Root
   path = /var/www
   read only = no
   public = yes
   writable = yes
   valid users = audiodef,root



This is as simple as I need it to be. I just want to share /var/www so I can mount it and access my web files on another machine and edit them in Bluefish (my server is headless and I don't want to have to edit everything via ssh in nano, especially when I need to flip around between many files while working).

Samba starts without complaint. I have a /home/audiodef/Bach dir ready to mount on. I try to mount with

Code:

mount -t cifs -o username=audiodef,password=(password) //192.168.1.7/var/www home/audiodef/Bach


And I get

Code:

retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


There is in fact such a device and there is in fact such an address. I can ping 192.168.1.7, ssh in, open sites hosted on that machine in my browser. Samba is the one thing that isn't doing what I expect.

So... what did I miss?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.


Last edited by audiodef on Thu Oct 06, 2011 1:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7799
Location: Saint Amant, Acadiana

PostPosted: Thu Oct 06, 2011 1:55 am    Post subject: Reply with quote

You have a server running Linux (or anything POSIX). You have a desktop running Linux, I assume? You could use CIFS, no doubt. But natural solution would be NFS. I have similar setup and using SAMBA never crossed my mind.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Thu Oct 06, 2011 2:10 am    Post subject: Reply with quote

what does smbclient -L remote-server reveal?
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Thu Oct 06, 2011 7:42 am    Post subject: Reply with quote

Is audiodef in both passwd files? I _think_ that's a requirement, but I'm not sure. I've never
seen the upper-case sharename messagel, but there are several upper/lower case settings in
smb.conf which would be worth checking.

I find smb/cifs pretty useful, since pretty much everything can handle it, but there was a recent
outburst of flakeyness (files not transferring correctly, and so on) between new and old
versions of Samba, so you might want to make sure all the version numbers are the same.

Will
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6428
Location: /usr/lib64/lv2

PostPosted: Thu Oct 06, 2011 1:11 pm    Post subject: Reply with quote

Still don't know what's going on with samba, but...

Username/password was on both machines. Same error still thrown.

smbclient -L shows expected info on remote system.

I found several hits for the error I've been having, but no solution that seemed to apply to me. Most of those involved Windows, and in my house Windows has it's place - a lowly serf for playing games, not allowed to connect to the net. :twisted:

So I checked out NFS and within 60 seconds, I had it working. :D

Buh-bye Slamba. :twisted:
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum