All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Jurgens <autofs@edcint.co.nz>
To: Ian Kent <raven@themaw.net>
Cc: autofs@linux.kernel.org, Scott Belnap <sbelnap@gmail.com>
Subject: Re: unable to automount windows C$
Date: Mon, 11 May 2009 10:43:09 +1000	[thread overview]
Message-ID: <4A07749D.4000406@edcint.co.nz> (raw)
In-Reply-To: <1230012791.3043.6.camel@zeus.themaw.net>


[-- Attachment #1.1: Type: text/plain, Size: 6009 bytes --]

I've had this same problem from time to time and since upgrading to 
Fedora 10 it has come back:
Fedora 10 - kernel 2.6.27.21-170.2.56.fc10.i686.PAE
autofs-5.0.3-41.i386

The correctly mounted manual entry:
//xp0/C$ on /mnt type cifs (rw,mand)

The autofs entry:
//xp0/C/$ on /smb/xp0/C$ type cifs (rw,mand)

If you need anymore debug info let me know

Ian Kent wrote:
> On Wed, 2008-12-10 at 12:49 -0700, Scott Belnap wrote:
>   
>> I'm trying to automount a windows machine.  I am able to automount any
>> directory that doesn't have a $ in the mount name.  Looks like the
>> parse_mount method is stripping out the $ from the mount name.  Any
>> ideas on how to fix this?
>>     
>
> I think you might need to escape the $ that gets clobbered. It is most
> likely getting interpreted as a dollar macro expansion.
>
>   
>> Dec  9 23:49:03 dc2 automount[19084]: handle_packet_missing_direct:
>> token 122, name /cifs/laptop/C$, request pid 17857
>> Dec  9 23:49:03 dc2 automount[19084]: attempting to mount
>> entry /cifs/laptop/C$
>> Dec  9 23:49:03 dc2 automount[19084]: lookup_mount:
>> lookup(program): /cifs/laptop/C$ ->
>> -fstype=cifs,file_mode=0644,dir_mode=0755,credentials=/etc/auto.smb.laptop ://laptop/C$
>> Dec  9 23:49:03 dc2 automount[19084]: parse_mount: parse(sun):
>> expanded entry:
>> -fstype=cifs,file_mode=0644,dir_mode=0755,credentials=/etc/auto.smb.laptop ://laptop/C
>> Dec  9 23:49:03 dc2 automount[19084]: parse_mount: parse(sun):
>> gathered options:
>> fstype=cifs,file_mode=0644,dir_mode=0755,credentials=/etc/auto.smb.laptop
>> Dec  9 23:49:03 dc2 automount[19084]: parse_mount: parse(sun): core of
>> entry:
>> options=fstype=cifs,file_mode=0644,dir_mode=0755,credentials=/etc/auto.smb.laptop, loc=://laptop/C
>> Dec  9 23:49:03 dc2 automount[19084]: sun_mount: parse(sun): mounting
>> root /cifs, mountpoint /cifs/laptop/C$, what //laptop/C, fstype cifs,
>> options file_mode=0644,dir_mode=0755,credentials=/etc/auto.smb.laptop
>> Dec  9 23:49:03 dc2 automount[19084]:
>> do_mount: //laptop/C /cifs//cifs/laptop/C$ type cifs options
>> file_mode=0644,dir_mode=0755,credentials=/etc/auto.smb.laptop using
>> module generic
>> Dec  9 23:49:03 dc2 automount[19084]: mount_mount: mount(generic):
>> calling mkdir_path /cifs/laptop/C$
>> Dec  9 23:49:03 dc2 automount[19084]: mount_mount: mount(generic):
>> calling mount -t cifs -s -o
>> file_mode=0644,dir_mode=0755,credentials=/etc/auto.smb.laptop //laptop/C /cifs/laptop/C$
>> Dec  9 23:49:03 dc2 kernel:  CIFS VFS: cifs_mount failed w/return code
>> = -6
>> Dec  9 23:49:03 dc2 automount[19084]: >> retrying with upper case
>> share name
>> Dec  9 23:49:03 dc2 kernel:  CIFS VFS: cifs_mount failed w/return code
>> = -6
>> Dec  9 23:49:03 dc2 automount[19084]: >> mount error 6 = No such
>> device or address
>> Dec  9 23:49:03 dc2 automount[19084]: >> Refer to the mount.cifs(8)
>> manual page (e.g.man mount.cifs)
>> Dec  9 23:49:03 dc2 automount[19084]: spawn_mount: mount failed with
>> error code 16, retrying with the -f option
>> Dec  9 23:49:06 dc2 automount[19084]: >> unknown mount option f
>> Dec  9 23:49:06 dc2 automount[19084]: >> Usage:  /sbin/mount.cifs
>> <remotetarget> <dir> -o <options>
>> Dec  9 23:49:06 dc2 automount[19084]: >> Mount the remote target,
>> specified as a UNC name, to a local directory.
>> Dec  9 23:49:06 dc2 automount[19084]: >> Options:
>> Dec  9 23:49:06 dc2 automount[19084]: >> #011user=<arg>
>> Dec  9 23:49:06 dc2 automount[19084]: >> #011pass=<arg>
>> Dec  9 23:49:06 dc2 automount[19084]: >> #011dom=<arg>
>> Dec  9 23:49:06 dc2 automount[19084]: >> Less commonly used options:
>> Dec  9 23:49:06 dc2 automount[19084]: >>
>> #011credentials=<filename>,guest,perm,noperm,setuids,nosetuids,rw,ro,
>> Dec  9 23:49:06 dc2 automount[19084]: >>
>> #011sep=<char>,iocharset=<codepage>,suid,nosuid,exec,noexec,serverino,
>> Dec  9 23:49:06 dc2 automount[19084]: >>
>> #011directio,mapchars,nomapchars,nolock,servernetbiosname=<SRV_RFC1001NAME>
>> Dec  9 23:49:06 dc2 automount[19084]: >> Options not needed for
>> servers supporting CIFS Unix extensions
>> Dec  9 23:49:06 dc2 automount[19084]: >> #011(e.g. unneeded for mounts
>> to most Samba versions):
>> Dec  9 23:49:06 dc2 automount[19084]: >>
>> #011uid=<uid>,gid=<gid>,dir_mode=<mode>,file_mode=<mode>,sfu
>> Dec  9 23:49:06 dc2 automount[19084]: >> Rarely used options:
>> Dec  9 23:49:06 dc2 automount[19084]: >>
>> #011port=<tcpport>,rsize=<size>,wsize=<size>,unc=<unc_name>,ip=<ip_address>,
>> Dec  9 23:49:06 dc2 automount[19084]: >>
>> #011dev,nodev,nouser_xattr,netbiosname=<OUR_RFC1001NAME>,hard,soft,intr,
>> Dec  9 23:49:06 dc2 automount[19084]: >>
>> #011nointr,ignorecase,noposixpaths,noacl
>> Dec  9 23:49:06 dc2 automount[19084]: >> Options are described in more
>> detail in the manual page
>> Dec  9 23:49:06 dc2 automount[19084]: >> #011man 8 mount.cifs
>> Dec  9 23:49:06 dc2 automount[19084]: >> To display the version number
>> of the mount helper:
>> Dec  9 23:49:06 dc2 automount[19084]: >> #011/sbin/mount.cifs -V
>> Dec  9 23:49:06 dc2 automount[19084]: mount(generic): failed to
>> mount //laptop/C (type cifs) on /cifs/laptop/C$
>> Dec  9 23:49:06 dc2 automount[19084]: send_fail: token = 122
>> Dec  9 23:49:06 dc2 automount[19084]: handle_packet: type = 5
>> Dec  9 23:49:06 dc2 automount[19084]: handle_packet_missing_direct:
>> token 123, name /cifs/laptop/C$, request pid 17857
>> Dec  9 23:49:06 dc2 automount[19084]: attempting to mount
>> entry /cifs/laptop/C$
>> Dec  9 23:49:06 dc2 automount[19084]: failed to mount /cifs/laptop/C$
>> Dec  9 23:49:06 dc2 automount[19084]: send_fail: token = 123
>> Dec  9 23:49:06 dc2 automount[19084]: failed to mount /cifs/laptop/C$
>>
>> _______________________________________________
>> autofs mailing list
>> autofs@linux.kernel.org
>> http://linux.kernel.org/mailman/listinfo/autofs
>>     
>
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs
>
>   

[-- Attachment #1.2: Type: text/html, Size: 6889 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

  reply	other threads:[~2009-05-11  0:43 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-10 19:49 unable to automount windows C$ Scott Belnap
2008-12-23  6:13 ` Ian Kent
2009-05-11  0:43   ` Matthew Jurgens [this message]
2009-05-12  4:45     ` Ian Kent
2009-05-13  4:57       ` Matthew Jurgens
2009-05-13  5:05         ` Ian Kent
2009-05-13  5:30           ` Ian Kent
2009-05-13 11:54             ` Jeff Layton
2009-05-13 14:08               ` Ian Kent
     [not found]           ` <4A0A59F5.1090308@edcint.co.nz>
2009-05-13  5:32             ` Ian Kent
2009-05-13  5:47               ` Matthew Jurgens
2009-05-13  5:58                 ` Matthew Jurgens
2009-05-13  8:09                   ` Ian Kent
2009-05-13  8:16                     ` Ian Kent
2009-05-13  8:03                 ` Ian Kent
2009-05-13 23:55                   ` Matthew Jurgens
2009-05-14  2:23                     ` Ian Kent
     [not found]                       ` <4A0CC262.7020105@edcint.co.nz>
2009-05-15  7:13                         ` Ian Kent
2009-05-17  7:48                           ` Matthew Jurgens
2009-05-18  1:39                             ` Ian Kent
2009-06-02  5:45                               ` Matthew Jurgens
2009-06-02 11:17                                 ` Ian Kent
2009-06-04  0:15                                   ` Matthew Jurgens
2009-06-04  4:24                                     ` Ian Kent
     [not found]                                       ` <4A2DADEA.3010406@edcint.co.nz>
2009-06-09  3:05                                         ` Ian Kent
2009-06-09  3:21                                         ` Ian Kent
2009-06-09  8:03                                           ` Matthew Jurgens
2009-06-09  9:35                       ` Matthew Jurgens
2009-06-11  6:23                         ` Ian Kent
2009-06-11 12:13                           ` Matthew Jurgens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A07749D.4000406@edcint.co.nz \
    --to=autofs@edcint.co.nz \
    --cc=autofs@linux.kernel.org \
    --cc=raven@themaw.net \
    --cc=sbelnap@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.