Path: utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: hugh@slee01.srl.ford.com (Hugh Fader) Newsgroups: comp.sys.sun Subject: CD-ROM - Best way to mount/export Keywords: No Digest Subjects in Unmoderated Mode Message-ID: <3371@brchh104.bnr.ca> Date: 4 Jun 91 18:40:00 GMT Sender: news@brchh104.bnr.ca Organization: Sunspots, Psuedo-Unmoderated Lines: 36 Approved: sun-spots@rice.edu X-Original-Date: 17 May 91 12:32:57 GMT What is the best way to handle mount and export of CD-ROMs? The problem I have is that the device must be mounted before it can be exported. In my /etc/fstab I have: /dev/sr0 /cdrom hsfs ro,noauto 0 0 The noauto prevents the cdrom from being mounted with a mount -a on boot-up. Then in /etc/exports I have: / -access=trusted /usr/export -access=trusted /cdrom -access=trusted,ro So that the CD-ROM can be remote-mounted. When the machine boots I get: exportfs: /cdrom: parent-directory (/) Because /dev/sr0 is not mounted, exportfs thinks I want to export a subdirectory of an already-exported directory. If I delete / from the export list then export stops complaining -- but I haven't done what I want. I have exported the /cdrom directory in the root partition. What I am trying to avoid having to do is export /cdrom whenever I mount a CD-ROM disk. Any help would be appreciated. -- Hugh Fader hugh@slee01.srl.ford.com