Re: "Invalid Media Format" error

From: John F (john_at_SeeSigForAddress.invalid.com)
Date: 06/17/04


Date: Thu, 17 Jun 2004 13:10:56 +0000 (UTC)

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 )


Relevant Pages

  • SUMMARY: More 4.0F PK8 patchkit installation woes
    ... Thanks to those who replied - Iain Barker, Pat O'Brien, and especially John ... It seems the problem (i.e. that of long list of complaints from dupatch ... override in baselining makes patch backout complicated. ... Lindsay ...
    (Tru64-UNIX-Managers)
  • Re: 2.6.11-rc3-mm1 (compile stats)
    ... On Fri, 2005-02-04 at 13:51 -0800, John Cherry wrote: ... Adrian Bunk has submitted a patch for this. ... Frank's patch did not fix the undefined reference to randomize_va_space. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Same user on Mutiple Stores.
    ... thanks cant install patch as it would take me back to different ... and move mailboxes without the stub appearing in the first place. ...
    (microsoft.public.exchange.admin)
  • Re: I made one just for me.
    ... my favorite 9 patch pattern. ... So we will head off to the quilt store and pick ... What's not to like, John? ...
    (rec.crafts.textiles.quilting)
  • Re: Arx Fatalis, AMD X2 and SP2.... no joy
    ... >John L.'s original post implies he might not have the games 1.17 patch ... >installed..if not this should be the 1st ting to try.. ... patch 1.17 is indeed installed. ... John Lewis ...
    (comp.sys.ibm.pc.games.rpg)

Quantcast