Date: Fri, 29 Aug 2003 10:36:27 -0700 From: Desmond Lee <desmond.lee@shaw.ca> To: freebsd-questions@freebsd.org Subject: some problems with automount Message-ID: <001e01c36e54$164e14f0$6501a8c0@croydon> In-Reply-To: <3F4F84C8.4020303@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello I'm trying to use amd or the automount so that removable media such as floppies, zip disks and cdroms will be mounted when needed. My goal is to put 'amd_enable="YES"' in the /etc/rc.conf file so that mounting is taken care of when the OS is booted. I've read the man pages for amd, amd.conf and also some stuff on the web. I'm still have some problems and was hoping someone out there could point out some mistakes. So, my this is what my amd.conf file looks like: # GLOBAL OPTIONS SECTION [ global ] normalize_hostnames = no print_pid = no #pid_file = /var/run/amd.pid restart_mounts = yes #unmount_on_exit = yes auto_dir = / log_file = /var/log/amd log_options = all #debug_options = all plock = no selectors_in_defaults = yes # config.guess picks up "sunos5" and I don't want to edit my maps yet os = sos5 # if you print_version after setting up "os", it will show it. print_version = no map_type = file search_path = /etc/amdmaps:/usr/lib/amd:/usr/local/AMD/lib browsable_dirs = yes fully_qualified_hosts = no # DEFINE AN AMD MOUNT POINT [ /floppy ] map_name = amd.floppy [ /zip ] map_name = amd.zip [ /cdrom] map_name = amd.cdrom So, my first problem is that ' selectors_in_defaults = yes ' should be a valid global flag: http://www.am-utils.org/am-utils_11.html#SEC128. I get the following message when executing the command 'bash-2.05$ amd -F /etc/amd.conf' conf: unknown global key: "selectors_in_defaults" AMDCONF: syntax error on line 13 (section global) If I comment out the 'selectors_in defaults=yes' then I get the following output when I execute ' bash-2.05$ amd -F /etc/amd.conf': Aug 29 00:31:53 manchester amd[823]/info: using configuration file /etc/amd.conf Aug 29 00:31:53 manchester amd[823]/user: /var/log/amd: Can't open logfile: Permission denied Aug 29 00:31:53 manchester amd[823]/user: Cannot switch logfile Aug 29 00:31:53 manchester amd[823]/info: AM-UTILS VERSION INFORMATION: Aug 29 00:31:53 manchester amd[823]/info: Copyright (c) 1997-1999 Erez Zadok Aug 29 00:31:53 manchester amd[823]/info: Copyright (c) 1990 Jan-Simon Pendry Aug 29 00:31:53 manchester amd[823]/info: Copyright (c) 1990 Imperial College of Science, Technology & Medicine Aug 29 00:31:53 manchester amd[823]/info: Copyright (c) 1990 The Regents of the University of California. Aug 29 00:31:53 manchester amd[823]/info: am-utils version 6.0.3s1 (build 480102). Aug 29 00:31:53 manchester amd[823]/info: Built by root@manchester.langley.net on date Sat Aug 23 15:03:51 PDT 2003. Aug 29 00:31:53 manchester amd[823]/info: cpu=i386 (little-endian), arch=i386, karch=i386. Aug 29 00:31:53 manchester amd[823]/info: full_os=freebsd4.4-RELEASE, os=sos5, osver=4.4-RELEASE, vendor=unknown. Aug 29 00:31:53 manchester amd[823]/info: Map support for: root, passwd, union, nis, ndbm, file, error. Aug 29 00:31:53 manchester amd[823]/info: AMFS: nfs, link, nfsx, nfsl, host, linkx, program, union, inherit, ufs, Aug 29 00:31:53 manchester amd[823]/info: lofs, cdfs, pcfs, auto, direct, toplvl, error. Aug 29 00:31:53 manchester amd[823]/info: FS: cd9660, lofs, mfs, nfs, nfs3, null, msdos, ufs, umap, union. Aug 29 00:31:53 manchester amd[823]/info: Network: wire="192.168.1.0" (netnumber=192.168.1). Aug 29 00:31:53 manchester amd[823]/info: My ip addr is 192.168.1.102 Aug 29 00:31:53 manchester amd[823]/fatal: Must be root to mount filesystems (euid = 1001) Aug 29 00:31:53 manchester amd[823]/info: Finishing with status 1 Now, some of this output is weird, cause it says my OS is freeBSD 4.4 but I've upgraded to 4.8. Also, it says that only root can mount, but I've changed the setup so that any one can do mounts now. Also, am I suppose to create the following directories: /etc/amdmaps /usr/lib/amd /usr/local/AMD/lib Also, at the end of my amd.conf file I have: # DEFINE AN AMD MOUNT POINT [ /floppy ] map_name = amd.floppy [ /zip ] map_name = amd.zip [ /cdrom] map_name = amd.cdrom How do I go bout creating these amd.xxx files and where should I put them. in the /etc/amdmaps directory. Right not I don't have any amd.map files for the floppy, zip or cdrom so I'm guessing that's why nothing gets mounted when I do an 'amd -F /etc/amd.conf'. Thanks in advance Desmond
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001e01c36e54$164e14f0$6501a8c0>