From owner-freebsd-questions Mon Feb 19 11:46:13 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA17920 for questions-outgoing; Mon, 19 Feb 1996 11:46:13 -0800 (PST) Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA17914 for ; Mon, 19 Feb 1996 11:46:01 -0800 (PST) Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id ah28321; 19 Feb 96 17:08 GMT Received: from palmer.demon.co.uk ([158.152.50.150]) by relay-3.mail.demon.net id aa08288; 19 Feb 96 16:59 GMT Received: from localhost (localhost [127.0.0.1]) by palmer.demon.co.uk (8.6.11/8.6.11) with SMTP id OAA07076 ; Mon, 19 Feb 1996 14:38:45 GMT To: Lars Koeller cc: freebsd-questions@freefall.freebsd.org From: Gary Palmer Subject: Re: Please help with amd!!!!! In-reply-to: Your message of "Fri, 16 Feb 1996 20:55:05 +0100." <199602161955.UAA22580@odie.physik2.uni-rostock.de> Date: Mon, 19 Feb 1996 14:38:43 +0000 Message-ID: <7074.824740723@palmer.demon.co.uk> Sender: owner-questions@freebsd.org Precedence: bulk -------- Lars Koeller wrote in message ID <199602161955.UAA22580@odie.physik2.uni-rostock.de>: > I've a really simple problem, but amd (automount daemon) is a mess, > surely only why I don't understand the docs. I want to mount an > ufs/msdos floppy automatically by amd when I enter a directory ~/ufs_fd0 > ~/dos_fd0 (I think and automatic detection of the file system type by > amd is impossible, so we need 2 directories) but I can't fit the correct > amd config file together. Is this possible, and when how can I get the > desired results? How can I kill amd without leaving a mount point > amd:24253 back in the mount tab when amd is lost in space (no response > to an kill -TERM 24253!)? Here is what I used to auto-mount my CDROM drive in /etc/amd.map: /defaults type:=program cdrom mount:="/sbin/mount mount -t cd9660 /dev/cd0a ${path}";unmount:="/sbin/umount umount /dev/cd0a" 2 points: 1) You can't do what you want. AMD works by having a special directory which it monitors all activity in. It could be your home directory, but I wouldn't recommend it! For various reasons, I used `/host' (mainly that's what I use at work for doing NFS AMD operations) 2) I have no idea if it auto-unmounts properly :-( To unmount, I do: umount /host kill {amd_pid} Probably not the right way, but it works. Gary P.S. Sorry, I can't remember what I command line arguments I invoked AMD with :-(