Yahoo Groups archive

Emax

Index last updated: 2026-04-28 23:23 UTC

Message

emax disk copy / linux

2002-05-17 by pacianix

Hi,

I was looking for a way to copy an emx-written
disk image to an Emax floppy on a linux box;

and, after some glances at the EMX source, here's
a simple hack for it (non-U**x people, please
don't wonder, I've no idea if a Mac OS X might
swallow this, it's also unix-like as far as I know):

--cut here--

#!/bin/sh
test -f $1 || { echo $1 not found ;
 exit 10;
 } 
dd if=$1 of=$1.trunc bs=1 skip=39
dd if=$1.trunc of=/dev/fd0u820 bs=512 count=56 seek=368
dd if=$1.trunc of=/dev/fd0u820 bs=512 count=1024 seek=440 skip=56
rm $1.trunc

--cut here--

Put this in a text file, have a 'chmod a+rx' on it
to make it executable and enjoy. The (uncompressed)
bank.em1 or whatever filename is give as command line
argument to this script.

The disk must of course be pre-formatted using an emax
and you need to have the appropriate /dev/fd0u820
device file (any decent Linux distribution will 
provide it, for gurus: that's minor number 52+drive no.)


Marcus

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.