System Administration Guide: Basic Administration

How 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.

  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_8_u3_sparc_2/Solaris_8/EA/products/Live*/README*
    $ ls -l
    -r--r--r--   1 pmorph   users       3002 May  9 08:09 README_Live_Upgrade

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


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