SUMMARY: Remote mounting CD ROM drives

From: Matt Reynolds (reynolmd@aston.ac.uk)
Date: Thu May 22 1997 - 12:35:49 CDT


Thanks to all those who sent me advice on this problem.

  Current thinking:

  is that the easiest thing to do is keep vold
running, but get the rmmount utility (called by vold on insert/eject
operations) to automatically share the drive - which it will do.

  The share command syntax is documented in the man pages for
rmmount.conf (thanks Mike Salhi <mrs@cadem.mc.xerox.com> and
Ed Poorbaugh <poorbaugh@norcross.mcs.slb.com> for that one)

  With this technique in place, it just remains for someone to log in
as root and manually umount/mount the drive each time the CD is
replaced.

  A couple of people (Andrew Moffat <amof@SubaruSparcDev.subaru1.com>,
Dave Stops <stopsdj@aston.ac.uk> ) offered the idea of using automount
on the Sparc 10. I tried this:

  Unfortunately I don't seem to be able to get automount to work
correctly - it never seems to actually physically mount the file
system when I ask for a file from it. (There is an entry in
/etc/mnttab giving 'autofs' as the file system type when this happens,
but it never makes the mount when a file is requested). (The
automountd process IS running, and no change occurs when I re-start it).

  I also thought of the following:

  Replacing the rmmount utility with a script of my own,
but this always fails to mount the CD when the vold process is
present. I don't wish to stop vold because this is the best way to
make it easy for the users to swap CDs.

  I also tried:

  Moving the filesystem mount point to a set name, eg
'/cdrom/SparcLXcd', 'share'ing this drive, and remote mounting
that. This works short term, but once again upon changing discs in the
drive, the remote mount is lost 'Stale NFS file handle' . This is
because rmmount uses the full cd title (in one case avmia_020_3 ) to
refer and mount the drive. When the full title changes, the share
entry and the directory name may well be the same, but the actual
local mnttab entry is changed - thereby the stale NFS file handle.

  Also suggested:

  Many people suggested stopping vold, and manually mounting the
drive. That would work, but it still means I'd have to manually
remount each time the disc was swapped.

  All people who sent info:

nikos@jimmy.harvard.edu
scott@msi-uk.com
amof@SubaruSparcDev.subaru1.com
root@wisdom.maf.nasa.gov
mrs@cadem.mc.xerox.com
ranks@avnasis.jccbi.gov
stopsdj@aston.ac.uk
poorbaugh@norcross.mcs.slb.com

  Current situation:

  Basically, I've still got to manually mount the cd on the Sparc 10
from the LX. Any one got any more ideas?

   Thanks to all who have already, and whoever may send advice soon.

       Matt.

  Original problem:

> We have a CD rom drive attached to a Sparc LX which works
>fine. We want to be able to access this drive from our Sparc 10,
>because of the heavy data processing that has to be done to the data
>that comes off CD - much too heavy for the LX to carry out (not enough
>RAM). We can't attach the CD rom to the Sparc 10 directly because
>we're out of SCSI id's on that chain.
>
> I've tried remote mounting the /cdrom/cdrom0 drive, but since
>this a link, what is actually mounted is /cdrom/<drive_name>, which of
>course stops working (stale NFS file handle) when you change disks in
>the drive.

-- 
#  Matthew Reynolds,  ****  Aston Space Geodesy  ****       #
#           Aston University, Birmingham, England           #
# reynolmd@aston.ac.uk     http://www.aston.ac.uk/~reynolmd #
# Phone: (+44) 121-359-3611 x4552   Fax: (+44) 121-333-3389 #



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:55 CDT