Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #455246

Re: byte-to-pixel data display program?

From Don Y <blockedofcourse@foo.invalid>
Newsgroups sci.electronics.design, alt.computer
Subject Re: byte-to-pixel data display program?
Date 2017-04-06 09:55 -0700
Organization A noiseless patient Spider
Message-ID <oc5roo$7dr$1@dont-email.me> (permalink)
References (3 earlier) <obvin7$1rs6$1@gioia.aioe.org> <obvluf$5d1$1@dont-email.me> <FN2FA.212708$On5.113097@fx43.iad> <oc4rt4$bhh$2@dont-email.me> <oc4trd$1iqi$1@gioia.aioe.org>

Cross-posted to 2 groups.

Show all headers | View raw


On 4/6/2017 1:22 AM, Martin Brown wrote:
> On 06/04/2017 08:51, Don Y wrote:
>> On 4/5/2017 2:29 AM, Robert Baer wrote:
>>> Don Y wrote:
>
>>>> The problem with consumer OS's is they deliberately try to hide all
>>>> of the detail from the user. So, when you try to do something
>>>> out-of-the-ordinary, you don't know how much of the systems'
>>>> effort is working *against* you (e.g., caching results).
>
> Hiding most of the detail for a physical device makes a lot of sense.
>
> You really don't want to have to manually compute track number, sector
> boundaries, head movements and timings yourself for every file.

Of course!  OTOH, because you don't NEED that knowledge in order to use the
OS, you have to make a deliberate effort to ACQUIRE it when/if you need/want
it!

IMO, if you really want to be able to cut corners, you'll learn the
capabilities of the devices beneath the OS and how to leverage them.
E.g., "manually" issuing commands to examine the GDT, mode pages
(for examining things like POH), etc.  Things that are often not exposed
by a higher level API (because they aren't universally available).

>>>> <shrug>
>>>>
>>>   Nice idea,EXCEPT no raw disk read...
>>
>> Sure there is.  You just haven't figured it out, yet!
>
> In the interests of letting him dig himself into an even deeper hole here is
> what MSKB has to say about direct drive access.
>
> https://support.microsoft.com/en-us/help/100027/info-direct-drive-access-under-win32

Note that it still doesn't make clear how direct device access is reflected
back up into data/structures cached internally in the OS's buffers.  When
working entirely within the GUI, there are obviously upcalls that *try* to
force refreshes of views into structures that the GUI *knows* are shared
(so if you delete a file in one window into a folder, other windows into
the same folder get refreshed -- in theory)

Doing this correctly from arbitrary raw device accesses wold require a bit
more effort.  Unlikely as its not expected to be used often.

But, this is moot.  It *appears* that the OP is booting a Linux CD that
contains a dd(1) port.  Hard to imagine any cached information persisting
after that OS is halted and Windows restarted.  Also, moving the medium
to another machine would confound any caching internal to (any) OS
(unless its caching algorithm was *horridly* opportunistic -- and, broken!)

IMO, the OP has just done something wrong and, rather than reexamine
his actions (or, contact the software vendor/support group!), he wants to
invent a set of tools that suit how *he* wants to approach the debugging
effort instead of learning what tools are available (probably on the
same Linux CD that he's been booting!).

Sort of like wanting to have an engine hoist so you can remove the
engine from your vehicle and change the oil with it sitting on a BENCH...
instead of driving the car up onto ramps and sliding under it on a crawler.

"Gee, I wonder why folks haven't thought of removing the engine to
perform oil changes BEFORE now?  Sure seems like the obvious way of
doing it..."

> Use at your peril since ISTR that MS couldn't get their own ancient DOS DEBUG
> right when running in later versions of Windows.
>
> WinDbg with Python scripting might actually allow him to do what he wants but
> the learning curve is pretty steep.
>
> http://www.windbg.org/

I repeat:  he wants to assure himself that the drive is "blanked" (zeroed).
Open the raw device with anything that can display hex/octal/ASCII values
"on demand".  Let *it* show you the contents of the drive ANYWHERE YOU MAY
HAVE AN INTEREST.  *If* you find a non-zero byte ANYWHERE, then that's
proof that the tool didn't work AS YOU EXPECTED.  Look at "where" the
"error" was encountered and use that to reason why the tool might have
deliberately NOT altered that value WHILE OPERATING CORRECTLY.

Is it a "special" part of the medium that suggests the tool might want to
prevent you from accidentally overwriting it (possibly requiring a different
command line option to force the "riskier" behavior)?

Are the "errors" so numerous and distributed that you question whether
the tool actually operated on *this* drive (or, some other)?

etc.

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-02 16:54 -0800
  Re: byte-to-pixel data display program? krw@notreal.com - 2017-04-02 21:03 -0400
    Re: byte-to-pixel data display program? "Tim Williams" <tiwill@seventransistorlabs.com> - 2017-04-02 20:21 -0500
      Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-02 18:42 -0700
      Re: byte-to-pixel data display program? krw@notreal.com - 2017-04-02 21:47 -0400
      Re: byte-to-pixel data display program? Clifford Heath <no.spam@please.net> - 2017-04-03 13:59 +1000
        Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 10:02 -0800
        Re: byte-to-pixel data display program? "Tim Williams" <tiwill@seventransistorlabs.com> - 2017-04-03 14:51 -0500
      Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 09:55 -0800
    Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 09:50 -0800
      Re: byte-to-pixel data display program? Jasen Betts <jasen@xnet.co.nz> - 2017-04-04 11:37 +0000
        Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-05 02:22 -0800
  Re: byte-to-pixel data display program? Paul <nospam@needed.invalid> - 2017-04-02 21:48 -0400
    Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 10:04 -0800
      Re: byte-to-pixel data display program? Paul <nospam@needed.invalid> - 2017-04-03 14:26 -0400
        Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-03 11:46 -0700
          Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 00:55 -0800
            Re: byte-to-pixel data display program? krw@notreal.com - 2017-04-04 13:21 -0400
        Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 00:48 -0800
        Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-05 09:56 -0800
  Re: byte-to-pixel data display program? bitrex <bitrex@de.lete.earthlink.net> - 2017-04-02 22:54 -0400
    Re: byte-to-pixel data display program? Clifford Heath <no.spam@please.net> - 2017-04-03 14:00 +1000
      Re: byte-to-pixel data display program? bitrex <bitrex@de.lete.earthlink.net> - 2017-04-03 00:09 -0400
        Re: byte-to-pixel data display program? Clifford Heath <no.spam@please.net> - 2017-04-03 14:14 +1000
          Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 10:19 -0800
          Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:24 -0800
        Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 10:15 -0800
          Re: byte-to-pixel data display program? bitrex <bitrex@de.lete.earthlink.net> - 2017-04-03 15:09 -0400
            Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:35 -0800
              Re: byte-to-pixel data display program? Jasen Betts <jasen@xnet.co.nz> - 2017-04-04 11:48 +0000
            Re: byte-to-pixel data display program? Jasen Betts <jasen@xnet.co.nz> - 2017-04-04 11:45 +0000
              Re: byte-to-pixel data display program? bitrex <bitrex@de.lete.earthlink.net> - 2017-04-05 11:37 -0400
          Re: byte-to-pixel data display program? Jasen Betts <jasen@xnet.co.nz> - 2017-04-04 11:42 +0000
            Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-05 02:25 -0800
              Re: byte-to-pixel data display program? Jasen Betts <jasen@xnet.co.nz> - 2017-04-05 19:04 +0000
        Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:22 -0800
      Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 10:07 -0800
      Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:17 -0800
    Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 10:06 -0800
      Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-03 11:20 -0700
        Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:36 -0800
          Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-04 07:05 -0700
            Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-05 02:02 -0800
              Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-06 00:51 -0700
                Re: byte-to-pixel data display program? krw@notreal.com - 2017-04-06 14:47 -0400
      Re: byte-to-pixel data display program? bitrex <bitrex@de.lete.earthlink.net> - 2017-04-03 15:28 -0400
        Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:45 -0800
          Re: byte-to-pixel data display program? bitrex <bitrex@de.lete.earthlink.net> - 2017-04-04 09:19 -0400
            Re: byte-to-pixel data display program? bitrex <bitrex@de.lete.earthlink.net> - 2017-04-04 12:38 -0400
              Re: byte-to-pixel data display program? bitrex <bitrex@de.lete.earthlink.net> - 2017-04-04 12:39 -0400
    Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:13 -0800
      Re: byte-to-pixel data display program? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-04-04 10:38 +0100
        Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-04 07:07 -0700
          Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-05 01:44 -0800
            Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-05 11:57 -0700
        Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-05 01:42 -0800
  Re: byte-to-pixel data display program? Jasen Betts <jasen@xnet.co.nz> - 2017-04-03 07:49 +0000
    Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 10:21 -0800
      Re: byte-to-pixel data display program? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-04-05 08:44 +0100
        Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-05 02:29 -0800
          Re: byte-to-pixel data display program? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-04-05 14:22 +0100
    Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:51 -0800
  Re: byte-to-pixel data display program? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-04-03 10:10 +0100
    Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 10:25 -0800
    Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-03 11:31 -0700
      Re: byte-to-pixel data display program? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-04-04 08:41 +0100
        Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-04 01:39 -0700
          Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-05 01:29 -0800
            Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-06 00:51 -0700
              Re: byte-to-pixel data display program? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-04-06 09:22 +0100
                Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-06 09:55 -0700
        Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 02:07 -0800
      Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 02:01 -0800
        Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-04 06:55 -0700
          Re: byte-to-pixel data display program? Jasen Betts <jasen@xnet.co.nz> - 2017-04-04 18:42 +0000
            Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-04 13:13 -0700
            Re: byte-to-pixel data display program? Paul <nospam@needed.invalid> - 2017-04-04 16:16 -0400
            Re: byte-to-pixel data display program? David Brown <david.brown@hesbynett.no> - 2017-04-05 08:52 +0200
    Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:57 -0800
  Re: byte-to-pixel data display program? skybuck2000@hotmail.com - 2017-04-05 19:45 -0700

csiph-web