|
|
In addition to manipulating DOS files with the DOS utilities provided with the operating system, you can mount a DOS filesystem and access its files freely while still operating from your UNIX system.
When you mount a DOS filesystem, you can edit, examine, or copy DOS data and text files, without first copying them into the UNIX filesystem. However, you cannot execute DOS files and applications from a mounted DOS filesystem. To do this, you must run NeTraverse Merge or boot DOS from a DOS partition.
If you use the DOS utilities on a mounted DOS filesystem, you see this error:
dosdir: FAT not recognized on /dev/dsk/0sCIn addition, you cannot create DOS filesystems using the mkfs(ADM) command. The DOS mounting feature is intended for existing DOS filesystems (on a floppy disk or on an existing DOS partition).
The UNIX operating system handles mounted DOS filesystems, without actually changing the files, by superimposing certain qualities of UNIX system filesystems on the DOS filesystem. UNIX filesystems are highly structured and operate in a multiuser environment. Thus, many UNIX filesystem concepts do not apply to DOS, including:
Because no changes are made to the DOS files, the carriage return character (^M) is visible when you edit a DOS file on a UNIX system. (UNIX systems use only a newline character; DOS uses both a carriage return and a newline.) To switch the end-of-line from DOS format to UNIX system format, use dtox(C). To switch back to UNIX system format, use xtod(C). See ``Displaying a DOS file'' and ``Converting DOS files to and from UNIX system file format''.
See also:
Only root and users with filesystem authorization can mount filesystems, including DOS filesystems.
A user's access to a mounted DOS filesystem is determined by the permissions and ownership that root places on the filesystem.
When DOS files are mounted on a UNIX system:
For example, if root creates a mount point /x with permissions of 0777, all users can read or write the contents of the filesystem. If the mount point is owned by root, all files in the DOS filesystem and any created by other users are owned by root.
For example, if a user's umask is 0022, all files created by that user have permissions of 0644.
The following limitations apply when accessing files on a mounted DOS filesystem:
When mounted from the UNIX system partition, the UNIX DOS filesystem driver records the creation, modification, and access times of files in GMT (Greenwich Mean Time) and then converts them to the appropriate local time. DOS timestamps are recorded in the local time.
Thus, in time zones other than GMT, when you access a file created in the DOS filesystem while mounted on the UNIX system, the timestamp will be wrong because DOS assumes that the timestamp was recorded in the local time. If you mount the DOS filesystem under the UNIX system and access a file created under DOS, the timestamp will also be wrong because the UNIX system assumes the timestamp was recorded in GMT and converts it to the local time.
See also: