You can configure your system to share its media drives to make any media in those drives available to other systems. One exception is musical CDs. Once your media drives are shared, other systems can access the media they contain simply by mounting them. For instructions, see How to Access Removable Media on Remote Systems.
Become superuser.
Confirm that the media is loaded.
Add the following entry to the /etc/dfs/dfstab file.
For example:
share -F nfs -o ro /media/sol_10_1008_SPARC |
Determine whether the NFS server service is running.
# svcs *nfs* |
The following output is returned from the svcs command if NFS server service is running:
online 14:28:43 svc:/network/nfs/server:default |
Identify the NFS server status, and select one of the following:
If the NFS server service is running, go to Step 7.
If the NFS server service is not running, go to the next step.
# svcadm enable network/nfs/server |
Verify that the NFS daemons are running.
For example:
# svcs -p svc:/network/nfs/server:default STATE STIME FMRI online Aug_30 svc:/network/nfs/server:default Aug_30 319 mountd Aug_30 323 nfsd |
Verify that the media is indeed available to other systems.
If the media is available, its share configuration is displayed.
# share - /media/sol_10_1008_sparc sec=sys,ro "" |
The following example shows how to make any local DVD or CD available to other systems on the network.
# vi /etc/dfs/dfstab (Add the following line:) # share -F nfs -o ro /media # svcs *nfs* # svcadm enable network/nfs/server # svcs -p svc:/network/nfs/server:default # share - /media/sol_10_1008_sparc ro "" |
The following example shows how to make any local diskette available to other systems on the network.
# vi /etc/dfs/dfstab (Add the following line, for example) share -F nfs -o ro /media/myfiles # svcs *nfs* # svcadm enable network/nfs/server # svcs -p svc:/network/nfs/server:default # share - /media/myfiles rw "" |