hl.rogers@ofc.Columbia.NCR.COM (hl.rogers) (02/16/90)
In article <5531@nucleus.mi.org> dar@nucleus.mi.org (Dario Alcocer) writes: >Does anyone know how to transfer files between an NCR Tower machine >running Unix and IBM PC-DOS file? I noticed that the Tower has >a 5-1/4" floppy drive, but the only way I can write to it is via >cpio redirected to /dev/fd0. After I do this, though, I can't read the disk >on MS-DOS. > >Any suggestions? In the on-line software description contained in /etc/RELDEF/your.release. number.rd, there is a section that describes how to read and write to a floppy disk having an IBM-PC format. Just pull that file into your favorite editor, do a search for IBM-PC, and read the section. Of course, if you have a hard copy of the Release Definition, it's just as easy to look it up. Note that the TOWER cannot format the diskette. It has to have been previously formatted. There is a script called /usr/bin/pcnodes that will built device nodes for the drive to operate as a PC-compatible drive with 256 byte sectors. 'pcnodes' builds device nodes for devices having 40 or 80 tracks, single or double-sided, and 8 or 9 sectors per track (2**3, or 8, nodes in all). By the way, I believe this works only for the "MSC" controller, not for SCSI...I could be wrong. > >Thanks in advance... Hope this helps...good luck! >Dario. >-- >Dario Alcocer | Internet: dar@nucleus.mi.org >Associate Software Engineer | voice: 619-270-1994, x5119 >Emerald Systems | Standard disclaimers apply. -- -- HL Rogers (hl.rogers@ncrcae.Columbia.NCR.COM) Me? Speak for my company?? HA! "Call 202/653-1800 for a good time!" - John Matrow, 1989
vernon@ssi400.uucp (02/20/90)
In H.L.Rodgers reply to Dario Alcocer
friday>In article <5531@nucleus.mi.org> dar@nucleus.mi.org (Dario Alcocer) writes:
friday>>Does anyone know how to transfer files between an NCR Tower machine
friday>>running Unix and IBM PC-DOS file? I noticed that the Tower has
friday>>a 5-1/4" floppy drive, but the only way I can write to it is via
friday>>cpio redirected to /dev/fd0. After I do this, though, I can't read the disk
friday>>on MS-DOS.
friday>>
friday>>Any suggestions?
friday>
friday>There is a script called /usr/bin/pcnodes that will built device nodes
friday>for the drive to operate as a PC-compatible drive with 256 byte sectors.
friday>'pcnodes' builds device nodes for devices having 40 or 80 tracks,
friday>single or double-sided, and 8 or 9 sectors per track (2**3, or 8, nodes
friday>in all).
friday>
friday>By the way, I believe this works only for the "MSC" controller, not
friday>for SCSI...I could be wrong.
friday>--
friday>--
friday>HL Rogers (hl.rogers@ncrcae.Columbia.NCR.COM)
friday>Me? Speak for my company?? HA!
friday>"Call 202/653-1800 for a good time!" - John Matrow, 1989
H.L. Rogers is correct about the pcnodes script only working for "MSC"
controllers. The major and minor numbers are different for the "SCSI"
controllers. If you have the "SCSI" controller however, you can use
the following script or modify your existing script substituting the
correct major and minor device numbers.
:# Seay Systems, Inc. - Vernon E. Hurdle
:# Shellscript to make device nodes for pcdsk on systems with SCCI controllers
:#
:
:echo "Making device nodes for pcdsk"
:if [ ! -d /dev/pcdsk ]
:then
: echo "Creating directory '/dev/pcdsk' to contain device nodes"
: mkdir /dev/pcdsk
: chmod 755 /dev/pcdsk
:fi
:
:echo "Raw PC -- 40 tracks, 1 side, 8 sectors per track ... /dev/pcdsk/h1s8"
:/etc/mknod /dev/pcdsk/h1s8 b 12 232
:chmod 666 /dev/pcdsk/h1s8
:
:echo "Raw PC -- 40 tracks, 1 side, 9 sectors per track ... /dev/pcdsk/h1s9"
:/etc/mknod /dev/pcdsk/h1s9 b 12 236
:chmod 666 /dev/pcdsk/h1s9
:
:echo "Raw PC -- 40 tracks, 2 sides, 8 sectors per track ... /dev/pcdsk/h2s8"
:/etc/mknod /dev/pcdsk/h2s8 b 12 200
:chmod 666 /dev/pcdsk/h2s8
:
:echo "Raw PC -- 40 tracks, 2 sides, 9 sectors per track ... /dev/pcdsk/h2s9"
:/etc/mknod /dev/pcdsk/h2s9 b 12 204
:chmod 666 /dev/pcdsk/h2s9
:
:
:echo "Raw PC -- 80 tracks, 1 side, 8 sectors per track ... /dev/pcdsk/t80h1s8"
:/etc/mknod /dev/pcdsk/t80h1s8 b 12 224
:chmod 666 /dev/pcdsk/t80h1s8
:
:echo "Raw PC -- 80 tracks, 1 side, 9 sectors per track ... /dev/pcdsk/t80h1s9"
:/etc/mknod /dev/pcdsk/t80h1s9 b 12 228
:chmod 666 /dev/pcdsk/t80h1s9
:
:echo "Raw PC -- 80 tracks, 2 sides, 8 sectors per track ... /dev/pcdsk/t80h2s8"
:/etc/mknod /dev/pcdsk/t80h2s8 b 12 192
:chmod 666 /dev/pcdsk/t80h2s8
:
:echo "Raw PC -- 80 tracks, 2 sides, 9 sectors per track ... /dev/pcdsk/t80h2s9"
:/etc/mknod /dev/pcdsk/t80h2s9 b 12 196
:chmod 666 /dev/pcdsk/t80h2s9
:
:ls -ls /dev/pcdsk/*
############################################################
# Vernon E. Hurdle (vernon@ssi400.lonestar.org) #
############################################################