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.
or you can use:
if the following line is in your /etc/vfstab file:
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:
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:
On x86, to mount the first logical drive in the Extended DOS partition from the hard disk, use:
To mount a DOS diskette in the first floppy drive, use:
To mount a PCMCIA pseudo-floppy memory card, use:
One can use either the DOS FORMAT command, or the command:
in the SunOS system to format a diskette or a PCMCIA pseudo-floppy memory card in DOS format.
If you copy a file:
from a UNIX file system to a PCFS file system, it will show up as:
on the DOS disk.
The following file names:
are considered illegal in DOS , and therefore cannot be created through PCFS .
It is not recommended to physically eject an DOS floppy while the device is still mounted as a PCFS file system.
x86: When mounting a pcfs file system on a hard disk, the first block on that device must contain a valid fdisk partition table.
Since PCFS truncates any extra characters in file names and extensions just as DOS , does, be careful when copying files from a UNIX file system to a PCFS file system. For instance, the following two files:
in a UNIX file system will get copied to the same file:
in PCFS .
PCFS has no provision for handling owner-ID ’s or group-ID ’s on files. You may experience various errors coming from chown(1) or chgrp(1) . This is not a problem. It is a limitation of PCFS.
The following are all the legal characters that are allowed in file names or extensions in PCFS :
Since SunOS and DOS operating systems use different character sets, and have different requirements for the text file format, one can use
or
command to convert files between them.
PCFS offers a convenient transportation vehicle for files between Sun Workstations and PC ’s. Since the DOS disk format was designed for use under DOS , it is quite inefficient to operate under the SunOS system. Therefore, it should not be used as the format for a regular local storage. You should use ufs for local storage within the SunOS system.
PCFS should handle the disk change condition in the same way that DOS , does, so that the user does not need to unmount the file system to change floppies. PCFS is currently not NFS mountable. Trying to mount a PCFS file system through NFS will fail with an EACCES error.