How to automount hidden Windows share
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
[email protected]
[email protected]
maintainerQuoted 8 lines · Milan Knizek
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.workincludes:n -fstype=smbfs,users,uid=knizek_m,gid=users,credentials=/etc/samba
What's this^^^^^
Quoted 4 lines
/credentials_argon ://ffile01/Home$
My
/etc/autofs/auto.masterincludes:
Quoted 9 lines
/mnt/auto.work/etc/autofs/auto.work--timeout=60When 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.
Quoted 22 lines
... 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/nI 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
[email protected]_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
Re: How to automount hidden Windows share - solved
Quoted 5 lines · [email protected] wrote:
Quoted 1 line · Milan Knizek
n -fstype=smbfs,users,uid=knizek_m,gid=users,credentials=/etc/samba
What's this^^^^^
...
Quoted 1 line
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
[email protected]