OpenWindows Advanced User's Guide

G.5 Copying Files with Volume Management Disabled

This is the third of three sections that describe different methods for formatting a PCMCIA memory card and for copying files between it and a hard disk. This section describes the way to do such tasks when Volume Management is disabled on your system.

This section describes the following tasks:

G.5.1 Disabling Volume Management

  1. Choose Programs » Command Tools from your Workspace menu.

  2. Become superuser by typing:

    example% su
    Password: root_password
    example#

  3. Disable Volume Management by typing:

    # /etc/init.d/volmgt stop
    

G.5.2 Formatting a PCMCIA Memory Card

If you have already formatted your PCMCIA memory card, skip this section.

  1. Insert the PCMCIA memory card in the PCMCIA socket.

  2. Enter a command to format the memory card with the desired file system (UNIX or MS-DOS).


    Note -

    The format utility cannot be used with PCMCIA memory cards. Only the fdformat utility will work.


    To format a memory card with a UNIX file system, type the following commands:

    % fdformat device_name
    % newfs device_name

    For example, to format a PCMCIA memory card in a disk drive with an assigned device name of /dev/dsk/c1t6d0s2, type:

    % fdformat /dev/dsk/c1t6d0s2
    % newfs /dev/dsk/c1t6d0s2
    

    To format a memory card with an MS-DOS file system, type one of the following commands:

    % fdformat -d device_name

    or

    % fdformat -t dos device_name

    For example, to format a PCMCIA memory card in a disk drive with an assigned device name of /dev/dsk/c1t6d0s2, type:

    % fdformat -d /dev/dsk/c1t6d0s2
    

    or

    % fdformat -t dos /dev/dsk/c1t6d0s2
    


    Caution - Caution -

    Removing a PCMCIA memory card while mounted results in a system panic.


G.5.3 Mounting a PCMCIA Memory Card

    Mount a PCMCIA memory card with a UNIX file system by typing:

    # mount mount_directory device_name
    

    If there is no /mnt directory, type:

    example# mkdir /mnt
    

    For example, to mount a UNIX file system in the /mnt directory on a disk drive with an assigned address of c1t6d0s2, type:

    example# mount /dev/dsk/c1t6d0s2  /mnt
    

    Mount a PCMCIA memory card with a MS-DOS file system by typing:

    # mount -F pcfs mount_directory device_name
    

    If there is no /pcfs directory, type:

    example# mkdir /pcfs
    

    For example, to mount an MS-DOS file system in the /pcfs directory on a disk drive with an assigned address of c1t6d0s2, type:

    example# mount -F pcfs  /dev/dsk/c1t6d0s2  /pcfs
    

G.5.4 Copying Files

You can use commands such as cp, rm, diff, and ls, to copy, remove, compare, and list the directory names of files on a PCMCIA memory card.

G.5.4.1 Copying Files from a Hard Disk to a PCMCIA Memory Card

    Type:

    example# cp filename    /pcfs/filename
    

G.5.4.2 From a PCMCIA Memory Card to a Hard Disk

  1. Type:

    example# cp /pcfs/filename    /pathname/filename
    

    If you accidentally remove the PCMCIA memory card while mounted, unmount the mount directory.

  2. Insert the memory card to the PCMCIA socket to unmount the mount directory by typing:

    # umount mount_directory
    

    For example:

    example# umount /pcfs
    

G.5.4.3 Enabling Volume Management

    Enable Volume Management by typing:

    # /etc/init.d/volmgt start