hugh@slee01.srl.ford.com (Hugh Fader) (06/05/91)
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