From owner-freebsd-questions Tue Nov 12 11:35:13 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA16957 for questions-outgoing; Tue, 12 Nov 1996 11:35:13 -0800 (PST) Received: from plethora.cs.wustl.edu (plethora.cs.wustl.edu [128.252.165.113]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA16876 for ; Tue, 12 Nov 1996 11:34:55 -0800 (PST) Received: (from jxh@localhost) by plethora.cs.wustl.edu (8.7.6/8.7.3) id NAA00534; Tue, 12 Nov 1996 13:35:46 -0600 (CST) Date: Tue, 12 Nov 1996 13:35:46 -0600 (CST) Message-Id: <199611121935.NAA00534@plethora.cs.wustl.edu> From: James Hu To: questions@freebsd.org Subject: amd and CDROM Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hello! I am trying to get my CDROM drive to auto-mount and auto-unmount via amd. What I would like is to be able to ``cd /cdrom'', and have it automatically mounted for me. Then when I cd out of it via ``cd /'' the CDROM automatically unmounts, so that I can press eject. However, my attempts have produced utter failures. Clearly, I do not understand the format of the amd map file and the amd command line options, or how they interact. What I have tried is to create an entry in fstab for the CDROM: /dev/cd0a /cdrom cd9660 noauto,ro 0 0 Then, I wanted to create an entry an amd.map entry which corresponds to /cdrom. I tried something like: cdrom type:=program;mount:="/sbin/mount mount /cdrom";unmount:="/sbin/umount umount /cdrom" and attempted with calls to amd which looked like: amd / amd.cdrom.map but this seems to lock up the machine. Has anyone tried something similar and with better results than what I have been able to produce? Thanks, -- James