[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    pcfs(7FS) manual page Table of Contents

Name

pcfs, PCFS - DOS formatted file system

Description

PCFS is a file system type that allows users direct access to files on DOS formatted disks from within the SunOS operating system. Once mounted, a PCFS file system provides standard SunOS file operations and semantics. That is, users can create, delete, read, and write files on an DOS formatted disk. They can also create and delete directories and list files in a directory.

Mounting File Systems

PCFS file systems are mounted from diskette with the command:
mount -F pcfs device-special directory-name

or you can use:

mount directory-name

if the following line is in your /etc/vfstab file:

device-special - directory-name
pcfs - no rw

x86: PCFS file systems are mounted from the hard disk with the command:

mount -F pcfs device-special:logical-drivedirectory-name

or you can use:

mount directory-name

if the following line is in your /etc/vfstab file:

device-special:logical_drive - directory-name pcfs - no rw

device-special specifies the special block device file for the diskette (/dev/disketteN) or the entire hard disk (/dev/dsk/cNtNdNp0) or the PCMCIA pseudo-floppy memory card (/dev/dsk/cNtNdNsN).

On x86 systems, logical-drive specifies either the DOS logical drive letter (c through z) or a drive number (1 through 24). Drive letter c is equivalent to drive number 1 and represents the Primary DOS partition on the disk; drive letters d through z are equivalent to drive numbers 2 through 24, and represent DOS logical drives within the Extended DOS partition. Note that device-special and logical-drive must be separated by a colon.

directory-name specifies the location where the file system is mounted.

For example, on x86, to mount the Primary DOS partition from a hard disk, use:

mount -F pcfs
/dev/dsk/cNtNdNp0:c /pcfs/c

On x86, to mount the first logical drive in the Extended DOS partition from the hard disk, use:

mount -F pcfs
/dev/dsk/cNtNdNp0:d /pcfs/d

To mount a DOS diskette in the first floppy drive, use:

mount -F pcfs
/dev/diskette /pcfs/a

To mount a PCMCIA pseudo-floppy memory card, use:

mount -F pcfs
/dev/dsk/cNtNdNsN /pcfs

Conventions

Files and directories created through PCFS have to comply with the DOS file name convention, which is of the form filename[.ext], where filename consists of from one to eight upper-case characters, while the optional ext consists of from one to three upper-case characters. PCFS converts all the lower-case characters in a file name to upper-case, and chops off any extra characters in filename or ext. When displaying file names, PCFS only shows them in lower-case.

One can use either the DOS FORMAT command, or the command:

fdformat -d

in the SunOS system to format a diskette or a PCMCIA pseudo-floppy memory card in DOS format.

Examples

If you copy a file:

financial.data

from a UNIX file system to a PCFS file system, it will show up as:

FINANCIA.DAT

on the DOS disk.

The following file names: