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
Subject: Re: unable to automount windows C$
Date: Wed, 13 May 2009 14:57:30 +1000	[thread overview]
Message-ID: <4A0A533A.3060203@edcint.co.nz> (raw)
In-Reply-To: <4A08FEE6.7000604@themaw.net>


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

Ian Kent wrote:
> Matthew Jurgens wrote:
>   
>> 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
>>     
>
> I have no idea what you are trying to say.
> The above, //xp0/C/$, doesn't correspond to what autofs-5.0.3-41 passes
> to mount(8) and I have no idea what has happened since you haven't
> provided any log information
Sorry, here is more information:

Windows machine called xp0.
cd /smb/xp0/C$ yields the following debug:

May 13 14:43:28 gw automount[15573]: handle_packet: type = 3
May 13 14:43:28 gw automount[15573]: handle_packet_missing_indirect: 
token 57, name xp0, request pid 15215
May 13 14:43:28 gw automount[15573]: attempting to mount entry /smb/xp0
May 13 14:43:28 gw automount[15573]: lookup_mount: lookup(program): 
looking up xp0
May 13 14:43:28 gw automount[15573]: lookup_mount: lookup(program): xp0 
-> -fstype=cifs,username=USERNAME,password=PASSWORD  #011 /C "://xp0/C"  
#011 /ADMIN\$ "://xp0/ADMIN\$"  #011 /C\$ "://xp0/C\$"
May 13 14:43:28 gw automount[15573]: parse_mount: parse(sun): expanded 
entry: -fstype=cifs,username=USERNAME,password=PASSWORD  #011 /C 
"://xp0/C"  #011 /ADMIN\$ "://xp0/ADMIN\$"  #011 /C\$ "://xp0/C\$"
May 13 14:43:28 gw automount[15573]: parse_mount: parse(sun): gathered 
options: fstype=cifs,username=USERNAME,password=PASSWORD
May 13 14:43:28 gw automount[15573]: parse_mount: parse(sun): 
dequote("/C") -> /C
May 13 14:43:28 gw automount[15573]: parse_mapent: parse(sun): gathered 
options: fstype=cifs,username=USERNAME,password=PASSWORD
May 13 14:43:28 gw automount[15573]: parse_mapent: parse(sun): 
dequote(""://xp0/C"") -> ://xp0/C
May 13 14:43:28 gw automount[15573]: add_offset_entry: parse(sun): added 
multi-mount offset /C -> 
-fstype=cifs,username=USERNAME,password=PASSWORD ://xp0/C
May 13 14:43:28 gw automount[15573]: parse_mount: parse(sun): 
dequote("/ADMIN\$") -> /ADMIN$
May 13 14:43:28 gw automount[15573]: parse_mapent: parse(sun): gathered 
options: fstype=cifs,username=USERNAME,password=PASSWORD
May 13 14:43:28 gw automount[15573]: parse_mapent: parse(sun): 
dequote(""://xp0/ADMIN\$"") -> ://xp0/ADMIN\$
May 13 14:43:28 gw automount[15573]: add_offset_entry: parse(sun): added 
multi-mount offset /ADMIN$ -> 
-fstype=cifs,username=USERNAME,password=PASSWORD ://xp0/ADMIN\$
May 13 14:43:28 gw automount[15573]: parse_mount: parse(sun): 
dequote("/C\$") -> /C$
May 13 14:43:28 gw automount[15573]: parse_mapent: parse(sun): gathered 
options: fstype=cifs,username=USERNAME,password=PASSWORD
May 13 14:43:28 gw automount[15573]: parse_mapent: parse(sun): 
dequote(""://xp0/C\$"") -> ://xp0/C\$
May 13 14:43:28 gw automount[15573]: add_offset_entry: parse(sun): added 
multi-mount offset /C$ -> 
-fstype=cifs,username=USERNAME,password=PASSWORD ://xp0/C\$
May 13 14:43:28 gw automount[15573]: mount_multi_triggers: mount offset 
/smb/xp0/ADMIN$ at /smb/xp0
May 13 14:43:28 gw automount[15573]: mount_autofs_offset: calling mount 
-t autofs -s  -o fd=18,pgrp=15573,minproto=5,maxproto=5,offset automount 
/smb/xp0/ADMIN$
May 13 14:43:28 gw automount[15573]: mount_autofs_offset: mounted 
trigger /smb/xp0/ADMIN$ at /smb/xp0/ADMIN$
May 13 14:43:28 gw automount[15573]: mount_multi_triggers: mount offset 
/smb/xp0/C at /smb/xp0
May 13 14:43:28 gw automount[15573]: mount_autofs_offset: calling mount 
-t autofs -s  -o fd=18,pgrp=15573,minproto=5,maxproto=5,offset automount 
/smb/xp0/C
May 13 14:43:28 gw automount[15573]: mount_autofs_offset: mounted 
trigger /smb/xp0/C at /smb/xp0/C
May 13 14:43:28 gw automount[15573]: mount_multi_triggers: mount offset 
/smb/xp0/C$ at /smb/xp0
May 13 14:43:28 gw automount[15573]: mount_autofs_offset: calling mount 
-t autofs -s  -o fd=18,pgrp=15573,minproto=5,maxproto=5,offset automount 
/smb/xp0/C$
May 13 14:43:28 gw automount[15573]: mount_autofs_offset: mounted 
trigger /smb/xp0/C$ at /smb/xp0/C$
May 13 14:43:28 gw automount[15573]: send_ready: token = 57
May 13 14:43:28 gw automount[15573]: mounted /smb/xp0
May 13 14:43:28 gw automount[15573]: handle_packet: type = 5
May 13 14:43:28 gw automount[15573]: handle_packet_missing_direct: token 
58, name /smb/xp0/C$, request pid 15215
May 13 14:43:28 gw automount[15573]: attempting to mount entry /smb/xp0/C$
May 13 14:43:28 gw automount[15573]: lookup_mount: lookup(program): 
/smb/xp0/C$ -> -fstype=cifs,username=USERNAME,password=PASSWORD ://xp0/C\$
May 13 14:43:28 gw automount[15573]: parse_mount: parse(sun): expanded 
entry: -fstype=cifs,username=USERNAME,password=PASSWORD ://xp0/C\$
May 13 14:43:28 gw automount[15573]: parse_mount: parse(sun): gathered 
options: fstype=cifs,username=USERNAME,password=PASSWORD
May 13 14:43:28 gw automount[15573]: parse_mount: parse(sun): core of 
entry: options=fstype=cifs,username=USERNAME,password=PASSWORD, 
loc=://xp0/C\$
May 13 14:43:28 gw automount[15573]: sun_mount: parse(sun): mounting 
root /tmp/auto6t8L4W, mountpoint /smb/xp0/C$, what //xp0/C\$, fstype 
cifs, options username=USERNAME,password=PASSWORD
May 13 14:43:28 gw automount[15573]: do_mount: //xp0/C\$ 
/tmp/auto6t8L4W//smb/xp0/C$ type cifs options 
username=USERNAME,password=PASSWORD using module generic
May 13 14:43:28 gw automount[15573]: mount_mount: mount(generic): 
calling mkdir_path /tmp/auto6t8L4W
May 13 14:43:28 gw automount[15573]: mount_mount: mount(generic): 
calling mount -t cifs -s -o username=USERNAME,password=PASSWORD 
//xp0/C\$ /tmp/auto6t8L4W
May 13 14:43:28 gw automount[15573]: mount(generic): mounted //xp0/C\$ 
type cifs on /tmp/auto6t8L4W
May 13 14:43:28 gw automount[15573]: move_mount: moved mount tree from 
/tmp/auto6t8L4W to /smb/xp0/C$
May 13 14:43:28 gw automount[15573]: send_ready: token = 58
May 13 14:43:28 gw automount[15573]: mounted /smb/xp0/C$

The output of a mount command is:
//xp0/C/$ on /smb/xp0/C$ type cifs (rw,mand)

The incorrect target of //xp0/C/$ does not appear to be reflected in the 
debug output

The correct output of the mount command should be:
//xp0/C$ on /smb/xp0/C$ type cifs (rw,mand)

-------------------------------------------------------------------------------------------------------------------
http://www.smartmon.com.au

[-- Attachment #1.2: Type: text/html, Size: 7134 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-13  4:57 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
2009-05-12  4:45     ` Ian Kent
2009-05-13  4:57       ` Matthew Jurgens [this message]
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=4A0A533A.3060203@edcint.co.nz \
    --to=autofs@edcint.co.nz \
    --cc=autofs@linux.kernel.org \
    --cc=raven@themaw.net \
    /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.