home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / 3b1 / 3077 < prev    next >
Encoding:
Text File  |  1992-08-13  |  2.5 KB  |  79 lines

  1. Newsgroups: comp.sys.3b1
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!n8emr!colnet!res
  3. From: res@colnet.cmhnet.org (Rob Stampfli)
  4. Subject: Re: Copying Dist. Disks
  5. Message-ID: <1992Aug14.024115.28977@colnet.cmhnet.org>
  6. Organization: Little to None
  7. References: <Bsu64E.9JI@acsu.buffalo.edu> <1992Aug13.020534.1507@ceilidh.beartrack.com>
  8. Date: Fri, 14 Aug 1992 02:41:15 GMT
  9. Lines: 68
  10.  
  11. >>Is it possible to make copies of the distribution disks, diagnostics
  12. >>disk, etc. for backup purposes? Is so, can someone tell me how?
  13. >
  14. >    It can be done, even with the limited tools available from the
  15. >floppy disk section of the ua interface.  However, you need to know that
  16. >there are two different styles of floppy mixed together in the foundation
  17. >set, and in the development set.
  18.  
  19. Just FYI:  all recent versions of copyIIpc replicate Unix-PC floppies
  20. just fine on 360K drives in IBM clones.  I find this easier than doing
  21. the job on a 3B1.  If you need to do it (replicate any 3B1 disk) on
  22. a 3B1, I think the following script will work.  I believe I wrote this
  23. myself -- my appologies if it originated elsewhere.  Note: even though you
  24. format the disk with no loader, the script reads and writes the entire disk,
  25. including the VTOC, so if the loader is on the original, it should wind up
  26. on the copy.
  27. -- 
  28. Rob Stampfli  rob@colnet.cmhnet.org      The neat thing about standards:
  29. 614-864-9377  HAM RADIO: kd8wk@n8jyv.oh  There are so many to choose from.
  30. ===============================================================================
  31. PATH=/bin:/etc
  32. TFILE=/tmp/SS$$
  33. trap "rm -f $TFILE; exit 1" 1 2 3 15
  34.  
  35. echo "Floppy Copy/Format Script.  Insert source disk and hit RETURN....\c"
  36. read DUMMY
  37. echo "Copying floppy to temporary file...."
  38. set `dd if=/dev/rfp020 of=$TFILE bs=10k 2>&1`
  39.  
  40. if [ $? != 0 -o "$1" != "$4" ]
  41. then
  42.     echo "Bad copy from floppy: $*"
  43.     rm -f $TFILE
  44.     exit 1
  45. fi
  46.  
  47. case "$1" in
  48. 40+0)    echo "400 KB disk required..." ;;
  49. 32+0)    echo "320 KB disk required..." ;;
  50. *)    echo "Strange size floppy ($1), aborting...."
  51.     rm -f $TFILE
  52.     exit 1 ;;
  53. esac
  54.  
  55. echo "Insert target disk and hit return to copy, 'f' to format: \c"
  56. read ANSWER
  57. if [ "$ANSWER" = "f" ]
  58. then
  59.     case "$1" in
  60.     40+0)    echo  "Formatting for 10 sectors/track"
  61.         iv -i /dev/rfp020 /usr/lib/iv/FD10nl ;;
  62.     32+0)    echo "Formatting for 8 sectors/track"
  63.         iv -i /dev/rfp020 /usr/lib/iv/FDnl ;;
  64.     esac
  65. fi
  66.  
  67. echo "Writing target floppy...."
  68. set `dd of=/dev/rfp020 if=$TFILE bs=10k 2>&1`
  69.  
  70. if [ $? != 0 -o "$1" != "$4" ]
  71. then
  72.     echo "Bad copy to floppy: $*"
  73.     rm -f $TFILE
  74.     exit 1
  75. fi
  76.  
  77. rm -f $TFILE
  78. exit 0
  79.