Xref: utzoo comp.sys.att:7622 unix-pc.general:3764 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!usc!polyslo!rducky!jrp From: jrp@rducky (JIM PICKERING) Newsgroups: comp.sys.att,unix-pc.general Subject: UNIXPC ua floppy disk tools fix Message-ID: <1989Sep21.063350.327@rducky> Date: 21 Sep 89 06:33:50 GMT Sender: UUCP@polyslo.CalPoly.EDU (0000-uucp(0000)) Organization: Technical Solutions, Inc. Lines: 38 If you have more than one disk (thanks again Gil and Lenny!) on your UNIXPC and use the user agent, you will run into trouble trying to use the floppy disk tools (copy, format, etc.). The offending files are in /usr/bin and are Fcopy.sh, Fformat.sh, Fformat10.sh, and FlpyChk.sh. They all use a rather crude method to determine if the the floppy is mounted (see below), which will not work if you have more than 1 hard disk file system mounted. I hacked together a quick fix. Check each of the above files for the commented lines and replace with the uncommented lines. ## CHECK THAT THE FLOPPY IS NOT MOUNTED. #DEVNUM=`mount | wc -l | cut -c7-7` #if [ "$DEVNUM" != "1" ] #then # clear # message -cu $ERROR1 # exit #fi DEVNUM=`mount|grep /dev/fp021` if [ "$DEVNUM" ] then clear message -cu $ERROR1 exit fi jim -- Jim Pickering c/o Technical Solutions || (north) ..csustan!polyslo!rducky!jrp P.O. Box 1045 || (south) ..sdsu!polyslo!rducky!jrp Arroyo Grande, CA 93420 || (south) ..csun!polyslo!rducky!jrp (805) 473-1037 || (east) ..csufres!polyslo!rducky!jrp