Apologies for pestering the list, but was hoping someone might have ideas
for getting AMD to work with SMB shares.
Thanks,
Michael
Michael Hipp wrote:
> Thanks to some excellent suggestions from Bill Campbell, I decided to try
> getting AMD to automount SMB shares on a nearby Win machine.
>
> I am hoping someone can now tell me what to do get it to work without
> hosing my machine.
>
> Here's what I did:
>
> Created an empty directory at root of /autowin.
> Created the actual mountpoint at /mnt/michael.
>
> Added this short section to /etc/am.d/conf:
> [/autowin]
> browsable_dirs = no
> map_name = /etc/am.d/smb
>
> I believe that works as amd loads it and seems to like it.
>
> Created a new file /etc/am.d/smb modelled after localdev:
> # /etc/am.d/smb : automounter map for remote smb shares
> /defaults type:=program;\
> mount:="/bin/mount mount /mnt/michael";\
> unmount:="/bin/umount umount /mnt/michael";\
> opts:=rw;fs:=/mnt/${key};
>
> michael fs:=/mnt/michael
>
> This is a very simplistic map for mounting via amd.
>
> Added this to /etc/fstab:
> //michael/shared /mnt/michael smbfs
> username=michael,password=abcdef,user,noauto 0 0
>
> That seems to work because I can do (as root) 'mount /mnt/michael' and
> 'umount /mnt/michael' and it works great.
>
> So now I do 'ls /autowin/michael' which tells the kernel to tell amd to
> mount the thing that's supposed to show up at that location. But the 'ls'
> command hangs. And after that any attempt to even do 'ls /' hangs. And
> 'ps aux' has this in it permanently:
> root 1168 0.1 0.2 1340 512 ? S 16:53 0:00 mount
> /mnt/michael
> root 1169 0.1 0.6 3616 1620 ? S 16:53 0:00
> /sbin/mount.smbfs //michael/shared /mnt/michael -o rw noexec nosuid nodev
> noauto user username michael password XXX
> root 1170 0.0 0.6 3616 1652 ? S 16:53 0:00
> /sbin/mount.smbfs //michael/shared /mnt/michael -o rw noexec nosuid nodev
> noauto user username michael password XXX
>
> There shouldn't be 2 of them and they should go away very quickly.
>
> These won't die via 'kill' I have to do 'kill -9'. Even then 'ls /' hangs
> and if I poke around enough KDE eventually just hangs completely. And
> even with those processes gone, my machine won't come back to normal
> except via a shutdown (which doesn't complete) and a long fsck
> afterwards.
>
> Wierd thing is that the 'mount' actually succeeds. Because 'ls
> /mnt/michael' shows the share on the win box. The log (/var/log/messages)
> shows after the automount attempt:
> Feb 23 16:53:55 linux kernel: smbfs: Unrecognized mount option noexec
> Feb 23 16:53:55 linux mount.smbfs[1170]: [2002/02/23 16:53:55, 0]
> client/smbmount.c:send_fs_socket(387)
> Feb 23 16:53:55 linux mount.smbfs[1170]: mount.smbfs: entering daemon
> mode for service \\michael\shared, pid=1170
>
> That last message is the same one if the mount is done manually from the
> command line.
>
> I spent a 2-3 hours on Google and www.samba.org and www.am-utils.org and
> neither one seems to acknowledge the existence of the other. I did find
> this one guy that wrote a book, the last chapter of which is "Using the
> Automount Daemon (AMD) with the SMB Filesystem". But I'm resisting
> sending him $30 to explain something that shouldn't be that hard.
> http://www.ssc.com/ssc/samba/toc.html
>
> That's not to mention all those articles saying how amd is legacy and we
> should be using autofs.
>
> So can someone tell me how to make this work? I'd be grateful.
>
> Thanks,
>
> Michael R. Hipp
> Microsoft Windows XP: Just say no.
> _______________________________________________
> Linux-users mailing list -
> http://linux-sxs.org/mailman/listinfo/linux-users Subscribe/Unsubscribe
> info, Archives,and Digests are located at the above URL.
--
Michael R. Hipp
Microsoft Windows XP: Just say no.
_______________________________________________
Linux-users mailing list - http://linux-sxs.org/mailman/listinfo/linux-users
Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.