[Bug 338375] New: autofs cannot mount cifs shares
https://bugzilla.novell.com/show_bug.cgi?id=338375 Summary: autofs cannot mount cifs shares Product: openSUSE 10.3 Version: Final Platform: i686 OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: e.kunig@home.nl QAContact: qa@suse.de Found By: Customer I am trying to mount a cifs share through the map auto.smb. I can see the exported shares when I execute ls -l /smb/hostname But if I try to look into a share with a command like ls -l /smb/hostname/Harddisk I get the error message ls: cannot open directory /smb/dreambox/Harddisk: No such file or directory In /var/log/messages I find the following message: Nov 1 13:53:42 loureed automount[26151]: open_mount: (mount):cannot open mount module cifs (/usr/lib/autofs/mount_cifs.so: cannot open shared object file: No such file or directory) which is completely true. There is no shared object /usr/lib/autofs/mount_cifs.so. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=338375#c1 --- Comment #1 from Egbert König <e.kunig@home.nl> 2007-11-01 06:58:18 MST --- Created an attachment (id=181658) --> (https://bugzilla.novell.com/attachment.cgi?id=181658) the auto.master file This is my auto.master configuration file. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=338375 Mark Gordon <mtgordon@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtgordon@novell.com, samba-maintainers@SuSE.de AssignedTo|bnc-team-screening@forge.provo.novell.com |mkoenig@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=338375#c2 Matthias Koenig <mkoenig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |e.kunig@home.nl --- Comment #2 from Matthias Koenig <mkoenig@novell.com> 2007-11-06 08:00:19 MST --- Can you please enable debugging output by setting DEFAULT_LOGGING="debug" in /etc/sysconfig/autofs and then restart autofs. Then please reproduce the failure and provide the complete messages part as attachment. The failure above probably does not mean anything. autofs searches first for an special mount module, if it cannot find it it uses the generic mount. For cifs there simply does not exist such a module. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=338375#c3 Egbert König <e.kunig@home.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|e.kunig@home.nl | --- Comment #3 from Egbert König <e.kunig@home.nl> 2007-11-08 13:21:44 MST --- Created an attachment (id=182708) --> (https://bugzilla.novell.com/attachment.cgi?id=182708) messages from /var/log/messages The attachment contains the debug message from my /var/log/messages file, after I have reproduced the failure. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=338375#c4 Matthias Koenig <mkoenig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |e.kunig@home.nl --- Comment #4 from Matthias Koenig <mkoenig@novell.com> 2007-11-09 03:56:55 MST --- The problem is: Nov 8 21:11:53 loureed automount[20672]: mount_mount: mount(generic): calling mount -t cifs //dreambox/Harddisk /smb/dreambox/Harddisk Nov 8 21:11:53 loureed automount[20672]: >> mount error: improperly formatted UNC name. /dreambox/Harddisk does not begin with \\ or // Nov 8 21:11:53 loureed automount[20672]: >> No ip address specified and hostname not found I gave the auto.smb program map a try and it works for me here with our local smb shares. Are you able to mount the samba share manually with mount -t cifs //dreambox/Harddisk /mnt If this does not work please try the command in verbose mode and provide the ouput of: mount -vvv -t cifs //dreambox/Harddisk /mnt -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=338375#c5 --- Comment #5 from Egbert König <e.kunig@home.nl> 2007-11-09 13:24:24 MST --- Created an attachment (id=182863) --> (https://bugzilla.novell.com/attachment.cgi?id=182863) output of mount command This is the output of mount -vvv -t cifs //dreambox/Harddisk /mnt It is looking, as if the mount command strips leading slahes before it passes the arguments to the mount helper. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=338375#c6 Egbert König <e.kunig@home.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|e.kunig@home.nl | --- Comment #6 from Egbert König <e.kunig@home.nl> 2007-11-09 13:29:18 MST --- The last attachment contains the needed information. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=338375#c7 Matthias Koenig <mkoenig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #7 from Matthias Koenig <mkoenig@novell.com> 2007-11-12 03:00:05 MST --- Does the directory /dreambox exist when executing the mount? It seems mount strips the leading slash in case the directory resulting from the first path component does exist (in your case /dreambox). Of course, this will have to be fixed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=338375#c8 --- Comment #8 from Egbert König <e.kunig@home.nl> 2007-11-17 04:57:30 MST --- Created an attachment (id=183786) --> (https://bugzilla.novell.com/attachment.cgi?id=183786) patch for /etc/auto.smb /dreambox is existing on my pc. mount is in this situation "normalizing" an exsiting path, which is not really wrong. This can be avoided, if the syntax \\hostname\servicename is used for the cifs mount source. Please get the attached patch for /etc/auto.smb which does this. With this change autofs can mount the cifs shares on my computer. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=338375#c9 Matthias Koenig <mkoenig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #9 from Matthias Koenig <mkoenig@novell.com> 2007-11-21 07:56:26 MST --- Your fix is a workaround for autofs. But indeed it is a problem in mount, it has been fixed recently upstream. Fixed in stable. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com