System Administration Guide, Volume 1

How to Copy or Move Information From a PCMCIA Memory Card

Once you have inserted a PCMCIA memory card, you can access its files and directories just as you would those of any other file system. The only significant restrictions are ownership and permissions. For instance, if you are not the owner of a file on a PCMCIA memory card, you won't be able to overwrite that file on the PCMCIA memory card. Or, if you copy a file into your file system, you'll be the owner, but that file won't have write permissions (because it never had them on the PCMCIA memory card); you'll have to change the permissions yourself.

  1. Make sure the PCMCIA memory card is formatted and mounted.


    $ ls /pcmem
    pcmem0  PCMCIAmemorycard-name
    

    If the PCMCIA memory card is properly formatted and mounted, its name and the symbolic link will appear under /pcmem.

    If nothing appears under the /pcmem directory, the PCMCIA memory card is not mounted. See "How to Load a PCMCIA Memory Card". The PCMCIA memory card might also need to be formatted. See "How to Format a UFS PCMCIA Memory Card" or "How to Format a DOS PCMCIA Memory Card".

  2. Copy the files or directories.

    To Copy ... 

    Use ... 

    A file 

    cp

    A directory 

    cp -r

  3. Verify the copy or move operation by using the ls command.

Examples--Copying or Moving Information From a PCMCIA Memory Card

The first example, below, moves a file (readme.doc) from the PCMCIA memory card to the current directory (indicated by the "." symbol). The second example copies a file (readme2.doc) from the PCMCIA memory card to the current directory. The third example copies a directory (morefiles) and everything below it from the PCMCIA memory card to the current directory.


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