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 -roThe "-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 -eYou should see:/mntpntA (everyone)- Mount the CD-ROM device to the directory.
# mount /dev/cd0 /mntpntA2. 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)