From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Scott Belnap" Subject: unable to automount windows C$ Date: Wed, 10 Dec 2008 12:49:02 -0700 Message-ID: <9728fb580812101149s300c524dn5f6785c16bac969c@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2182816452235018358==" Return-path: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: autofs@linux.kernel.org --===============2182816452235018358== Content-Type: multipart/alternative; boundary="----=_Part_53572_8363429.1228938542143" ------=_Part_53572_8363429.1228938542143 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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? 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 -o 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= Dec 9 23:49:06 dc2 automount[19084]: >> #011pass= Dec 9 23:49:06 dc2 automount[19084]: >> #011dom= Dec 9 23:49:06 dc2 automount[19084]: >> Less commonly used options: Dec 9 23:49:06 dc2 automount[19084]: >> #011credentials=,guest,perm,noperm,setuids,nosetuids,rw,ro, Dec 9 23:49:06 dc2 automount[19084]: >> #011sep=,iocharset=,suid,nosuid,exec,noexec,serverino, Dec 9 23:49:06 dc2 automount[19084]: >> #011directio,mapchars,nomapchars,nolock,servernetbiosname= 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=,gid=,dir_mode=,file_mode=,sfu Dec 9 23:49:06 dc2 automount[19084]: >> Rarely used options: Dec 9 23:49:06 dc2 automount[19084]: >> #011port=,rsize=,wsize=,unc=,ip=, Dec 9 23:49:06 dc2 automount[19084]: >> #011dev,nodev,nouser_xattr,netbiosname=,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$ ------=_Part_53572_8363429.1228938542143 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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?

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$

------=_Part_53572_8363429.1228938542143-- --===============2182816452235018358== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs --===============2182816452235018358==--