home .. forth .. nosc mail list archive ..

[colorforth] Obtaining binary block images from boot disk


Thinking again -- better use `bget' and `bput' instead.

For MS-DOS users something similar should be possible with `debug' and
redirected input from a command file.


------------------------------------------------------------------------
#! /bin/bash
# bget: copy blocks from bootable colorForth floppy to file
#
if [ $# != 3 ]; then
  echo "Usage: ${0##*/} block count filename"
  exit 1
fi

dd if=/dev/fd0 bs=1024 skip=$1 count=$2 of=$3
------------------------------------------------------------------------


------------------------------------------------------------------------
#! /bin/bash
# bput: copy blocks from file to bootable colorForth floppy
#
if [ $# != 2 ]; then
  echo "Usage: ${0##*/} block filename"
  exit 1
fi

dd of=/dev/fd0 bs=1024 seek=$1 if=$2 
------------------------------------------------------------------------

-- 
Bernd
------------------------

To Unsubscribe from this list, send mail to Mdaemon@xxxxxxxxxxxxxxxxxx with:
unsubscribe ColorForth
as the first and only line within the message body
Problems   -   List-Admin@xxxxxxxxxxxxxxxxxx
Main ColorForth site   -   http://www.colorforth.com