copy files from Xenix on DOS disk
Glen
glen at sungate.UUCP
Wed Feb 20 03:16:42 AEST 1991
In article <4613 at peora.sdc.ccur.com> tran at peora.sdc.ccur.com (Nhan Tran) writes:
> Is there anyway to copy a Xenix file (text file) to Dos disk (floppy or
>hard disk) other than resorting to communication programs.
> doscp works only from Dos to Xenix.
Yes, there is. As distributed by SCO, doscp is configured for optimal
transfer from Dos to Xenix. Here's why..
The file /etc/default/msdos contains a listing of "dos-style" drive-letters
and their Xenix device equivalents. The "A" drive (A:) is configured
as /dev/install. Since /dev/install is a device which automatically
detects source floppy density, you can automatically copy from low or
high density DOS disks to Xenix. However, /dev/install does not auto-sense
on write, so you can't go backwards.
There are several methods of correcting this. The easiest, but least
convenient, is to just specify the full device in the copy...
doscp xenixfile /dev/fd096ds15/dossubdir/dosfile
for high density 1.2MB, or, for 360K's...
doscp xenixfile /dev/fd048ds9/dossubdir/dosfile
A more convenient way would be to modify the /etc/default/msdos file to
specify "hard" devices instead of the /dev/install device. Although this
will enable the doscp command with MS-DOS-style drive letters, it prevents
the automatic detection of density. My workaraound for this is to set up
two drive letters for each floppy drive, like this...
# /etc/default/msdos
A=/dev/fd096ds15
...
E=/dev/fd048ds9
...
So, to copy to/from high density dos floppies, you'd use A:, and, for
low-density floppies, you'd use E:.
Hope this helps!
--
** --*-- --*-- --*-- --*-- --*-- --*-- --*-- --*-- --*-- **
Glen Barney 301-330-4700 The beach is not just a place
InterNet: glen%sungate at uunet.UU.NET to be - it's a way of life!
BangPath: uunet!sungate!glen
More information about the Comp.unix.xenix.sco
mailing list