home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.3b1
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!n8emr!colnet!res
- From: res@colnet.cmhnet.org (Rob Stampfli)
- Subject: Re: Copying Dist. Disks
- Message-ID: <1992Aug14.024115.28977@colnet.cmhnet.org>
- Organization: Little to None
- References: <Bsu64E.9JI@acsu.buffalo.edu> <1992Aug13.020534.1507@ceilidh.beartrack.com>
- Date: Fri, 14 Aug 1992 02:41:15 GMT
- Lines: 68
-
- >>Is it possible to make copies of the distribution disks, diagnostics
- >>disk, etc. for backup purposes? Is so, can someone tell me how?
- >
- > It can be done, even with the limited tools available from the
- >floppy disk section of the ua interface. However, you need to know that
- >there are two different styles of floppy mixed together in the foundation
- >set, and in the development set.
-
- Just FYI: all recent versions of copyIIpc replicate Unix-PC floppies
- just fine on 360K drives in IBM clones. I find this easier than doing
- the job on a 3B1. If you need to do it (replicate any 3B1 disk) on
- a 3B1, I think the following script will work. I believe I wrote this
- myself -- my appologies if it originated elsewhere. Note: even though you
- format the disk with no loader, the script reads and writes the entire disk,
- including the VTOC, so if the loader is on the original, it should wind up
- on the copy.
- --
- Rob Stampfli rob@colnet.cmhnet.org The neat thing about standards:
- 614-864-9377 HAM RADIO: kd8wk@n8jyv.oh There are so many to choose from.
- ===============================================================================
- PATH=/bin:/etc
- TFILE=/tmp/SS$$
- trap "rm -f $TFILE; exit 1" 1 2 3 15
-
- echo "Floppy Copy/Format Script. Insert source disk and hit RETURN....\c"
- read DUMMY
- echo "Copying floppy to temporary file...."
- set `dd if=/dev/rfp020 of=$TFILE bs=10k 2>&1`
-
- if [ $? != 0 -o "$1" != "$4" ]
- then
- echo "Bad copy from floppy: $*"
- rm -f $TFILE
- exit 1
- fi
-
- case "$1" in
- 40+0) echo "400 KB disk required..." ;;
- 32+0) echo "320 KB disk required..." ;;
- *) echo "Strange size floppy ($1), aborting...."
- rm -f $TFILE
- exit 1 ;;
- esac
-
- echo "Insert target disk and hit return to copy, 'f' to format: \c"
- read ANSWER
- if [ "$ANSWER" = "f" ]
- then
- case "$1" in
- 40+0) echo "Formatting for 10 sectors/track"
- iv -i /dev/rfp020 /usr/lib/iv/FD10nl ;;
- 32+0) echo "Formatting for 8 sectors/track"
- iv -i /dev/rfp020 /usr/lib/iv/FDnl ;;
- esac
- fi
-
- echo "Writing target floppy...."
- set `dd of=/dev/rfp020 if=$TFILE bs=10k 2>&1`
-
- if [ $? != 0 -o "$1" != "$4" ]
- then
- echo "Bad copy to floppy: $*"
- rm -f $TFILE
- exit 1
- fi
-
- rm -f $TFILE
- exit 0
-