DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Working with DOS

Accessing DOS partitions on a second disk

To access DOS partitions on a second disk you may have to create the correct special device files in the /dev directory. Special devices are created with the mknod(C) command. To create the DOS devices for the second disk, log in as root and run the following commands:

cd /dev/dsk
mknod 1sC b 1 112
mknod 1sD b 1 113
mknod 1sE b 1 114
mknod 1sF b 1 115
mknod 1sG b 1 116
mknod 1sH b 1 117
mknod 1sI b 1 118
mknod 1sJ b 1 119
mknod 1sd b 1 112

To change the permissions and ownerships of the files, make sure you are still logged in as root and run the following script (you must be using the Bourne shell, the default shell for root):

cd /
for letter in C D E F G H I J d
do 
   chmod 640 1s$letter
   chgrp sysinfo 1s$letter
   chown dos 1s$letter
done

You will then be able to access the multiple DOS partitions on the second hard disk.

If you are not mounting the DOS filesystem and plan to use doscmd(C) commands to access the files, you should add appropriate entries to the /etc/default/msdos file. For example, if the third multiple DOS partition on the second hard disk were called H: you could include the line:

   H=/dev/dsk/1sE
in the /etc/default/msdos file. From then on any access to H: would refer to /dev/dsk/1sE, the third multiple DOS partition on the second hard disk.

Next topic: Points to note when using files on a mounted DOS filesystem
Previous topic: DOS device names

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003