Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!rpi!brutus.cs.uiuc.edu!apple!sun-barr!newstop!texsun!texbell!ssi400!vernon From: vernon@ssi400.uucp Newsgroups: comp.sys.ncr Subject: Re: NCR Tower - PC File exchange Message-ID: <203@texbell.swbt.com> Date: 20 Feb 90 15:14:00 GMT Lines: 80 Resender: towers@texbell.swbt.com (NCR Tower Mailing List) 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) # ############################################################