Technical article 102354

How to use NFS to mount a CD-ROM from a remote machine to a local machine.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4

Written · Last revised

Problem

I am trying to mount a CD-ROM from a remote machine to my local machine, but I always get an error message similar to this:

mount: access denied for remote:/cdrom

Cause

One possibility is that there were no exported file systems on the remote server when the export was first done. The NFS start up script did not bother to start nfsd and mountd, because there were no entries in the exports file. The showmount command requires a functioning mountd on the server from which to obtain the export information.

Another possibility is that the export configuration was done using
the file system function of SCOadmin.  There have been reports that
on some systems, although SCOadmin reports and shows the file
system is exported, it is still not accessible for remote mounting.

Solution

This diagram helps to illustrate this:
 _____________                   _____________
|             |_________________|             |
|  machine A  |  _______        |  machine B  |
|_____________|-| cdrom |       |_____________|
                |_______|

1. On machine A, perform the following:

- Create mount point directory or use a directory already created.

# mkdir /mntpntA

- Using your favorite text editor, edit the contents of /etc/exports and add an entry like:

/mntpntA -ro

The "-ro" option gives the exported directory read only access. While not required for the CD mount point, the CD is not writable and the "-ro" option should be used.

- Export the directory. Here we must stop and start NFS so that we can have a functioning nfsd and mountd.

# exportfs /mntpntA
# nfs stop
# nfs start

- Verify that the directory was mounted, and everyone has access to it, with the following command:

# showmount -e
You should see:
/mntpntA (everyone)

- Mount the CD-ROM device to the directory.

# mount /dev/cd0 /mntpntA

2. On 'machine B' perform the following:

- Create mount point directory or use one already created.

# mkdir /mntpntB

- You are ready to mount the CD-ROM mount point from the remote machine to the local machine with the following command:

# mount -fNFS <machine A>:/mntpntA /mntpntB

See also

mount(ADM), exportfs(NADM), showmount(NADM)

From the Xinuos technical article database, record 102354. Reproduced with permission. The original is at www.sco.com/ta/102354, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.