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:
Disabling Volume Management
Formatting a PCMCIA Memory Card
Mounting a PCMCIA Memory Card
Copying files
Enabling Volume Management
Choose Programs » Command Tools from your Workspace menu.
Become superuser by typing:
example% su Password: root_password example# |
Disable Volume Management by typing:
# /etc/init.d/volmgt stop |
If you have already formatted your PCMCIA memory card, skip this section.
Insert the PCMCIA memory card in the PCMCIA socket.
Enter a command to format the memory card with the desired file system (UNIX or MS-DOS).
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 |
Removing a PCMCIA memory card while mounted results in a system panic.
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 |
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.
Type:
example# cp /pcfs/filename /pathname/filename |
If you accidentally remove the PCMCIA memory card while mounted, unmount the mount directory.
Insert the memory card to the PCMCIA socket to unmount the mount directory by typing:
# umount mount_directory |
For example:
example# umount /pcfs |