System Administration Guide: Devices and File Systems

ProcedureHow to Access Removable Media on Remote Systems

You can access media on a remote system by mounting it manually into your file system, provided the other system has shared its media according to the instructions in How to Make Local Media Available to Other Systems.

Steps
  1. Select an existing directory to serve as the mount point or create one.


    $ mkdir directory
    

    directory is the name of the directory that you create to serve as a mount point for the other system's CD.

  2. Find the name of the media you want to mount.


    $ showmount -e system-name
    

    For example:


    export list for starbug:
    /dummy                     (everyone)
    /cdrom/sol_9_1202_sparc/s5 (everyone)
    /cdrom/sol_9_1202_sparc/s4 (everyone)
    /cdrom/sol_9_1202_sparc/s3 (everyone)
    /cdrom/sol_9_1202_sparc/s2 (everyone)
    /cdrom/sol_9_1202_sparc/s1 (everyone)
    /cdrom/sol_9_1202_sparc/s0 (everyone)

    As superuser, mount the media.


    # mount -F nfs -o ro system-name:/media/media-name local-mount-point
    
    system-name

    The name of the system whose media you will mount.

    media-name

    The name of the media you want to mount.

    local-mount-point

    The local directory onto which you will mount the remote media.

  3. Log out as superuser.

  4. Verify that the media is mounted.


    $ ls /media
    

Example 2–6 Accessing CDs on Other Systems

The following example shows how to mount the CD named sol_9_1202_sparc from the remote system starbug onto the /mnt directory of the local system.


$ showmount -e starbug
export list for starbug:
/dummy                     (everyone)
/cdrom/sol_9_1202_sparc/s5 (everyone)
/cdrom/sol_9_1202_sparc/s4 (everyone)
/cdrom/sol_9_1202_sparc/s3 (everyone)
/cdrom/sol_9_1202_sparc/s2 (everyone)
/cdrom/sol_9_1202_sparc/s1 (everyone)
/cdrom/sol_9_1202_sparc/s0 (everyone)
$ su
Password: password
# mount -F nfs -o ro starbug:/cdrom/sol_9_1202_sparc/s0 /mnt
# exit
$ ls /mnt
Copyright  Solaris_9 


Example 2–7 Accessing Diskettes on Other Systems

The following example shows how to mount the diskette named myfiles from the remote system mars onto the /floppy directory of the local system.


$ cd /net/mars
$ ls /floppy
floppy0     myfiles
$ su
Password: password
# mount -F nfs mars:/floppy/myfiles /floppy
# exit
$ ls /floppy
myfiles


Example 2–8 Accessing PCMCIA Memory Cards on Other Systems

The following example shows how to mount the PCMCIA memory card named myfiles from the remote system mars onto the /pcmem directory of the local system.


$ cd /net/mars
$ ls /pcmem
pcmem0     myfiles
$ su
Password: password
# mount -F nfs mars:/pcmem/myfiles /pcmem
# exit
$ ls /pcmem
myfiles