Use the following procedure to mount a PCFS (DOS) file system from a hard disk.
Become superuser.
Also, there must be a mount point on the local system to mount a file system. A mount point is a directory to which the mounted file system is attached.
Mount the PCFS file system by using the mount command.
# mount -F pcfs [-o rw | ro] /dev/dsk/device-name:logical-drive mount-point |
-o rw | ro |
Specifies that you can mount a PCFS file system read/write or read-only. If you do not specify this option, the default is read/write. |
/dev/dsk/device-name |
Specifies the device name of the whole disk (for example, /dev/dsk/c0t0d0p0). |
logical-drive |
Specifies either the DOS logical drive letter (c through z) or a drive number 1 through 24. Drive c is equivalent to drive 1 and represents the Primary DOS slice on the drive; all other letters or numbers represent DOS logical drives within the Extended DOS slice. |
mount-point |
Specifies the directory on which to mount the file system. |
Note that the device-name and logical-drive must be separated by a colon.
The following example mounts the logical drive in the Primary DOS slice on the /pcfs/c directory.
# mount -F pcfs /dev/dsk/c0t0d0p0:c /pcfs/c |
The following example mounts the first logical drive in the Extended DOS slice read-only on /mnt.
# mount -F pcfs -o ro /dev/dsk/c0t0d0p0:2 /mnt |