From owner-freebsd-questions Mon Jun 17 00:41:53 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA19999 for questions-outgoing; Mon, 17 Jun 1996 00:41:53 -0700 (PDT) Received: from odie.physik2.uni-rostock.de (odie.physik2.uni-rostock.de [139.30.40.28]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id AAA19986 for ; Mon, 17 Jun 1996 00:41:49 -0700 (PDT) Received: (from lkoeller@localhost) by odie.physik2.uni-rostock.de (8.6.12/8.6.9) id JAA00457; Mon, 17 Jun 1996 09:40:36 +0200 Date: Mon, 17 Jun 1996 09:40:36 +0200 From: Lars Koeller Message-Id: <199606170740.JAA00457@odie.physik2.uni-rostock.de> X-Face: nLQGe[[K51[{{[C\,BiQm[7]u1m{N>_\%nLBo4t@)CoZ}hK[W7DwX&V=}Wf#Qb,j:Jpj[(12r=b~:dYmh]fDf\, ]_frt6eM' dated: Sat, 15 Jun 1996 08:02:34 +0100 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi! > Bill Trost wrote in message ID > : > > I have been trying to get amd to automount my CD-ROM for me, with zero > > success. The command I have been using is "amd /cdrom ./cdrom", > > where the file ./cdrom contains > > > > /defaults type:=ufs > > > > cd type:=program;\ > > mount:="/sbin/mount_cd9660 mount_cd9660 /dev/cd0a ${fs}";\ > > umount:="/sbin/umount umount /dev/cd0a"; > > No idea. I got this to work for me with the following map: > > /defaults type:=program > cdrom mount:="/sbin/mount mount -t cd9660 /dev/cd0a ${path}";unmount:="/sbin/umount umount /dev/cd0a" > > Gary > -- > Gary Palmer FreeBSD Core Team Member > FreeBSD: Turning PC's into workstations. See http://www.FreeBSD.ORG/ for info I've also some problems with amd configuration. My map has the following apparence: /defaults opts:=rw,soft,intr,grpid,nosuid,timeo=10 floppy host==odie;type:=ufs;dev:=/dev/fd0 cdrom host==odie;type:=program;\ mount:="/sbin/mount mount -t cd9660 /dev/cd0a ${path}";\ unmount:="/sbin/umount umount /dev/cd0a" I start amd with "amd /amd /root/amd.conf" and all works well for the floppy. When I type "ll /amd/floppy/" amd mounts the floppy and the directory is shown. But not in the case of cdrom. It tries to mount the cdrom into /amd/cdrom but there is no directory amd/cdrom and the mount fails. This only works if I make a dir /cdrom and change the line above into mount:="/sbin/mount mount -t cd9660 /dev/cd0a /cdrom";\ but that's a little bit confusing. Any ideas? How do you start your amd, what dirs are present? Thanks Lars -- ___________________________________________________________________________ Lars Köller Phone: +49 381/498-1665, Fax: -1667 Universität Rostock E-Mail: Fachbereich Physik Lars_Koeller@odie.physik2.Uni-Rostock.DE Universitätsplatz 3 Anonymous ftp: 18051 Rostock (Germany) ftp://odie.physik2.uni-rostock.de/pub