All of lore.kernel.org
 help / color / mirror / Atom feed
* How to automount hidden Windows share
@ 2005-01-27  8:16 Milan Knizek
  2005-01-27 12:22 ` raven
  0 siblings, 1 reply; 3+ messages in thread
From: Milan Knizek @ 2005-01-27  8:16 UTC (permalink / raw)
  To: autofs

Hello,

I am not sure if this relates to kernel or to autofs, so sorry if I am 
wrong. I also tried to google for the problem, but I have found only 
questions and no solution.


I use autofs-4.1.3, gentoo-dev-sources kernel 2.6.9 compiled with 
automounter v4 on Gentoo. I have problems with automounting hidden 
Windows shares - e.g. my /etc/autofs/auto.work includes:

n -fstype=smbfs,users,uid=knizek_m,gid=users,credentials=/etc/samba
/credentials_argon ://ffile01/Home$

My /etc/autofs/auto.master includes:

/mnt/auto.work /etc/autofs/auto.work --timeout=60


When try ls /mnt/auto.work/n, the file does not exist. Syslog reads:

Jan 26 12:18:40 n1005 automount[10417]: failed to mount /mnt/auto.work/n
Jan 26 12:18:40 n1005 automount[10420]: >> Usage: mount.smbfs service 
mountpoint [-o options,...]
Jan 26 12:18:40 n1005 automount[10420]: >> Version 3.0.9

... cut on purpose ...

Jan 26 12:18:40 n1005 automount[10420]: mount(generic): failed to mount 
"://ffile01/Home" (type smbfs) o
n /mnt/auto.work/n
Jan 26 12:18:40 n1005 automount[10420]: failed to mount /mnt/auto.work/n


I tried to change the line in auto.work to ://ffile01/Home\$ but it did 
not help anyway.

When I use fstab or mount manually, it works. Also, mounting normal 
Windows shares (not ending with $) and local devices like cdrom and usb 
works fine with automount.

Is there other way to go?

Thanks,
Milan
knizek@volny.cz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to automount hidden Windows share
  2005-01-27  8:16 How to automount hidden Windows share Milan Knizek
@ 2005-01-27 12:22 ` raven
  2005-01-27 16:57   ` How to automount hidden Windows share - solved Milan Knizek
  0 siblings, 1 reply; 3+ messages in thread
From: raven @ 2005-01-27 12:22 UTC (permalink / raw)
  To: Milan Knizek; +Cc: autofs

On Thu, 27 Jan 2005, Milan Knizek wrote:

> Hello,
>
> I am not sure if this relates to kernel or to autofs, so sorry if I am wrong. 
> I also tried to google for the problem, but I have found only questions and 
> no solution.
>
>
> I use autofs-4.1.3, gentoo-dev-sources kernel 2.6.9 compiled with automounter 
> v4 on Gentoo. I have problems with automounting hidden Windows shares - e.g. 
> my /etc/autofs/auto.work includes:
>
> n -fstype=smbfs,users,uid=knizek_m,gid=users,credentials=/etc/samba
        What's this^^^^^ 
> /credentials_argon ://ffile01/Home$
>
> My /etc/autofs/auto.master includes:
>
> /mnt/auto.work /etc/autofs/auto.work --timeout=60
>
>
> When try ls /mnt/auto.work/n, the file does not exist. Syslog reads:
>
> Jan 26 12:18:40 n1005 automount[10417]: failed to mount /mnt/auto.work/n
> Jan 26 12:18:40 n1005 automount[10420]: >> Usage: mount.smbfs service 
> mountpoint [-o options,...]
> Jan 26 12:18:40 n1005 automount[10420]: >> Version 3.0.9
>

I'd like to see the log entries prior to the "failed to mount" message 
with the --debug option on the entry in the master map please.

This looks like a parsing problem. But I would have expected escaping the 
$ to have worked.

> ... cut on purpose ...
>
> Jan 26 12:18:40 n1005 automount[10420]: mount(generic): failed to mount 
> "://ffile01/Home" (type smbfs) o
> n /mnt/auto.work/n
> Jan 26 12:18:40 n1005 automount[10420]: failed to mount /mnt/auto.work/n
>
>
> I tried to change the line in auto.work to ://ffile01/Home\$ but it did not 
> help anyway.
>
> When I use fstab or mount manually, it works. Also, mounting normal Windows 
> shares (not ending with $) and local devices like cdrom and usb works fine 
> with automount.
>
> Is there other way to go?
>
> Thanks,
> Milan
> knizek@volny.cz
>
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to automount hidden Windows share - solved
  2005-01-27 12:22 ` raven
@ 2005-01-27 16:57   ` Milan Knizek
  0 siblings, 0 replies; 3+ messages in thread
From: Milan Knizek @ 2005-01-27 16:57 UTC (permalink / raw)
  To: raven; +Cc: autofs

raven@themaw.net wrote:
> On Thu, 27 Jan 2005, Milan Knizek wrote:
> 
>> n -fstype=smbfs,users,uid=knizek_m,gid=users,credentials=/etc/samba
> 
>        What's this^^^^^
...
> This looks like a parsing problem. But I would have expected escaping 
> the $ to have worked.

I got rid of the non-sense option users and escaped the $, rebooted and
now it works just fine.

n
-fstype=smbfs,codepage=cp852,iocharset=iso8859-2,uid=knizek_m,gid=users,credentials=/etc/samba/crede
ntials_argon ://ffile01/Home\$

I think that the 'users' option should not have a big influence, since
automounting worked for other non-hidden Windows shares with this 
option, too. Now I am busy with other issues, but later I will try to 
reproduce the error again (probably relates to restarting the init 
service) and let you know if I succeed.

Thank you for input.

Milan
knizek@volny.cz

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-01-27 16:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-27  8:16 How to automount hidden Windows share Milan Knizek
2005-01-27 12:22 ` raven
2005-01-27 16:57   ` How to automount hidden Windows share - solved Milan Knizek

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.