System Administration Guide: Devices and File Systems

ProcedureHow to Copy Information From Removable Media

You can access files and directories on removable media just like any other file system. The only significant restrictions are ownership and permissions.

For instance, if you copy a file from a CD into your file system, you'll be the owner, but you won't have write permissions (because the file never had them on the CD). You'll have to change the permissions yourself.

Steps
  1. Make sure the media is mounted.


    $ ls /media
    

    The ls command displays the contents of a mounted media. If no contents are displayed, see How to Access Information on Removable Media.

  2. (Optional) Copy the files or directories.

    For example, for a CD, you would do the following:


    $ cp /cdrom/sol_9_1202_sparc/s0/Solaris_9/Tools/add_install_client .
    $ ls -l
    -rwxr-xr-x   1 pmorph	gelfs    59586 Jan 16  2004 add_install_client*

    For example, for a PCMCIA memory card, you would do the following:


    $ cp /pcmem/pcmem0/readme2.doc .
    $ cp -r /pcmem/pcmem0/morefiles .