Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: John F <john@SeeSigForAddress.invalid.com>
Subject: Re: "Invalid Media Format" error
Date: Thu, 17 Jun 2004 13:10:56 +0000 (UTC)	[thread overview]
Message-ID: <cas590$1f2$1@reader2.panix.com> (raw)
In-Reply-To: gvg0d092j22424rduieefpd13m5bj1g6bq@4ax.com

John Laird <nospam@laird-towers.org.uk> wrote:
: John F <john@SeeSigForAddress.invalid.com> wrote:
: >Thanks very much for explanation, John.  At least now I know what's
: >wrong ( a netbsd guy describes the same problem and similar fix at
: >http://mail-index.netbsd.org/netbsd-bugs/2001/08/29/0003.html ), and
: >even how to fix it.  But I do wish Everhart had taken Dachtera's
: >follow-up suggestion and automated the procedure.  If your notes
: >documenting typos are in machine-readable form, could I trouble you
: >once again to post them?  I think I can pretty much follow Glenn's
: >outlined procedure, but I won't know what I'm doing.  Thanks again,

: You're not going to catch me being overly-critical of Glenn as he has been
: very generous with his time in dealing with this and other issues I have
: raised, where he has been far better informed than me ;-)

Oops, apologies if I sounded critical.  Didn't mean to be biting
one of the hands that was feeding me.

: For some reason, I wrote up what I did.  Amazing.  This is an addendum to
: Glenn's original article, then.  You will need a binary editor or suitable
: patch utility.  These may vary in appearance, use left-right or right-left,
: but the principles should be the same.  Note that I patched version 2 of
: sys$dkdriver - version 1, as shipped with VMS6.2, had the same data
: structures but apparently lacked code elsewhere in the TCQ area, and version
: 2 was part of a SCSI ECO kit.
:
: Sadly, Alpha VMS lacks PATCH...  If you really know your stuff, you could
: use a text editor.  EDT will preserve file characteristics if used
: carefully, but you'll need to "shorten" the file record length (to 128
: bytes, say) and restore it afterwards with SET FILE/ATTR (although I think
: the VMS image activator doesn't care, but it'll be easier to check your
: patches with DIFF if you do).

Thanks so much for additional instructions.  All together, looks like
enough information for me to muddle through and get the job done.
I also have some VAXstations running VAX/VMS 7.3 (it's the Alpha that's
actually the oddball), so your patch advice will come in handy indeed.
Hopefully, now, those ST15150N's won't have to end up as paperweights.

: Note this may be a futile exercise if you intend to use the disk as a
: bootable system disk.  There may well be a level of boot driver that won't
: play ball.

Well, that would have been nice, but it's not critical.
I'll backup/image a bootable disk to one, give it a try,
and see what happens.

: ---------------------------------------------------------------------------
: Glenn's description quotes the wrong hex longword value preceding the "GENE"
: entry.  It is not 9203000 but 36070000 (offset 220).  However, his "patch"
: command does modify the right byte.  In fact, the correct value of 36070000
: has clearly already been patched !
:
: Note that his vfe dump format is reversed from VMS DUMP format, in that it
: puts low-byte first and dumps longwords left-to-right.
:
: Although I wished to patch an Alpha driver, I also have a Vaxstation and
: found it easier to use VMS PATCH.  Here is the journal file from my
: editing session.  (I had previously used SEARCH/NUM/FORM=NONULL to identify
: the correct block, and the DUMP to find the "GENERIC" entry as a byte offset
: within that block, seemingly byte 00CC within block 81).
:
: Comments have been added, and for authenticity the journal file even shows
: an erroneous command...
: -----------------------------------------------------------------------------
:
: PATCH  Version 6.2    5-MAY-1994
:
: IMAGE FILE BEING PATCHED:       "SYS$SYSDEVICE:[JOHN]SYS$DKDRIVER.EXE;2"
: JOURNAL FILE:                   "SYS$SYSDEVICE:[JOHN]SYS$DKDRIVER.JNL;1"
: DATE/TIME OF PATCH:             12-JAN-2001 15:46:24.47
:
: %PATCH-I-NOGBL, some or all global symbols not accessible
: %PATCH-I-NOLCL, image does not contain local symbols
: PATCH>set rad dec               !  DEBUG command not recognised :-)
: %PATCH-W-SYNTAX, command syntax error at or near ' rad dec'
: PATCH>eval 80*200
: 00010000
: PATCH>exa 0100cc
: 000100CC:  00000336             !  Note VFE shows this as 36030000
: PATCH>exa
: 000100D0:  454E4547
: PATCH>ex/asc .
: 000100D0:  'GENE'               !  Here's the GENERIC disk entry
: PATCH>exa 0100cc
: 000100CC:  00000336             !  Flags in preceding longword
: PATCH>ex/byte 100cc
: 000100CC:  36
: PATCH>ex/byte                   !  And this is the byte we are interested in
: 000100CD:  03
: PATCH>rep/byte
: LOC>  .
: OLD>  03
: OLD>  EXIT
: NEW>  07
: NEW>  EXIT
: old:    000100CD:  03
: new:    000100CD:  07
: PATCH>update
: %PATCH-I-WRTFIL, updating image file SYS$SYSDEVICE:[JOHN]SYS$DKDRIVER.EXE;3
: PATCH>exit
:
:
: Mail john rather than nospam...
:
-- 
John Forkosh  ( mailto:  j@f.com  where j=john and f=forkosh )


  reply	other threads:[~2004-06-17 13:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-15 20:18 "Invalid Media Format" error John F
2004-06-15 22:00 ` John Laird
2004-06-16 11:58   ` John F
2004-06-16 13:12     ` John Laird
2004-06-17 13:10       ` John F [this message]
2004-06-18 20:40       ` Hoff Hoffman
2004-06-17 21:23 ` Hans Vlems
2004-06-18  8:05   ` John F
2004-06-18 10:20   ` John Laird
2004-06-18 18:36     ` Hans Vlems
2004-06-29 23:43 ` Joe H. Gallagher
2004-06-30  9:57   ` John F
2004-06-30 13:05     ` Roy Omond
2004-07-05 14:24     ` P. Thompson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox