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


Groups > alt.computer > #10255 > unrolled thread

byte-to-pixel data display program?

Started byRobert Baer <robertbaer@localnet.com>
First post2017-04-02 16:54 -0800
Last post2017-04-04 01:57 -0800
Articles 19 on this page of 79 — 10 participants

Back to article view | Back to alt.computer


Contents

  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

Page 4 of 4 — ← Prev page 1 2 3 [4]


#10334

FromMartin Brown <'''newspam'''@nezumi.demon.co.uk>
Date2017-04-05 14:22 +0100
Message-ID<oc2r3a$62t$1@gioia.aioe.org>
In reply to#10332
On 05/04/2017 11:29, Robert Baer wrote:
> Martin Brown wrote:
>> On 03/04/2017 19:21, Robert Baer wrote:
>>> Jasen Betts wrote:
>>>> On 2017-04-03, Robert Baer <robertbaer@localnet.com> wrote:
>>>>> Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>>> No software needed, the display was easily mapped to any area in
>>>>> memory.
>>>>> Seems there is absolutely NOTHING to do this now.
>>
>> That is because most graphics accelerators sit in their own local high
>> bandwidth memory address space. You have to send stuff across or send
>> how to draw it instructions to the graphics accelerator. Things have
>> moved on a long way since the grotty IBM CGA and Hercules cards.
>>
>>>>> What i need is a program to read ANY arbitrary part of drive
>>>>> (Spinrte
>>>>> does this on an incremental basis) and do a one-to-one pixel display
>>>>> (byte value determines color - back to the CoCo).
>>>>> Program has means of user-control scrolling thru HD memory.
>>>>
>>>> In many cases the video memory is on a different bus to the main
>>>> memory. libSDL can give access to byte-per pixel display mechanisms,
>>>> but you
>>>> can't map the boot rom in and display it, you have to use the CPU or
>>>> DMA to do that..
>>>>
>>> Isn't that what programs are for? Take care of "mundane" details?
>>> There are many programs that will display a color BMP file, no fuss.
>>
>> That is probably your simplest solution. Make a 256 indexed BMP header
>> with dimensions that match your physical screen and then tack onto the
>> end of it the right number of bytes from your hard disk. Paint the BMP
>> to the screen or write it to a .BMP file and open in a viewer and bingo!
>>
>> There is an example program in the free MSVC examples Vista? that could
>> be subverted to do this or you could use .Net from scratch.
>>
>> https://msdn.microsoft.com/en-us/library/8tda2c3c(v=vs.110).aspx
>>
>   They make it sooo complicated, when there is NO need...

I think the problem is that you are just too thick to understand either 
how to use the program you claim has failed to erase the disk properly 
or how to diagnose the problem and very probably both.

I have a feeling that Windows these days blocks direct physical access 
to the disk layout for all user mode programs. You are best off trying 
to read the physical disk from a Unix shell of some sort.

-- 
Regards,
Martin Brown

[toc] | [prev] | [next] | [standalone]


#10300

FromRobert Baer <robertbaer@localnet.com>
Date2017-04-04 01:51 -0800
Message-ID<C0KEA.309315$Ip6.164280@fx38.iad>
In reply to#10266
Jasen Betts wrote:
> On 2017-04-03, Robert Baer<robertbaer@localnet.com>  wrote:
>>     Remember back in the daze of the CoCo (Radio Shack color computer)?
>>     No software needed, the display was easily mapped to any area in memory.
>>     Seems there is absolutely NOTHING to do this now.
>>     What i need is a program to read ANY arbitrary part of drive (Spinrte
>> does this on an incremental basis) and do a one-to-one pixel display
>> (byte value determines color - back to the CoCo).
>>     Program has means of user-control scrolling thru HD memory.
>
> In many cases the video memory is on a different bus to the main
> memory.  libSDL can give access to byte-per pixel display mechanisms, but you
> can't map the boot rom in and display it, you have to use the CPU or
> DMA to do that..
>
   Been that way in all x86 type machines,even the Tandy 1000 which had 
  a strange video architecture.
   Not relevant. if need, program X reads from HD to RAM, program Y 
makes the picture.

[toc] | [prev] | [next] | [standalone]


#10267

FromMartin Brown <'''newspam'''@nezumi.demon.co.uk>
Date2017-04-03 10:10 +0100
Message-ID<obt3h9$1l6l$1@gioia.aioe.org>
In reply to#10255
On 03/04/2017 01:54, Robert Baer wrote:
>   Remember back in the daze of the CoCo (Radio Shack color computer)?
>   No software needed, the display was easily mapped to any area in memory.
>   Seems there is absolutely NOTHING to do this now.

That is because modern kit uses graphics accelerators.

>   What i need is a program to read ANY arbitrary part of drive (Spinrte
> does this on an incremental basis) and do a one-to-one pixel display
> (byte value determines color - back to the CoCo).

There is a way to set or read individual pixels but it isn't often used.

>   Program has means of user-control scrolling thru HD memory.
>
>   Thanks.

Why on earth do you want to do this? Disk contents today are almost 
invariably compressed to some extent and will have high entropy. JPG and 
MPEG streams only the headers are distinguishable from noise.

Only the simplest of flat text files or prehistoric BMP files will have 
any discernable structure to the naked eye.

Or are you trying to build an IPCRESS machine?

-- 
Regards,
Martin Brown

[toc] | [prev] | [next] | [standalone]


#10279

FromRobert Baer <robertbaer@localnet.com>
Date2017-04-03 10:25 -0800
Message-ID<1swEA.170777$mb5.108752@fx19.iad>
In reply to#10267
Martin Brown wrote:
> On 03/04/2017 01:54, Robert Baer wrote:
>>   Remember back in the daze of the CoCo (Radio Shack color computer)?
>>   No software needed, the display was easily mapped to any area in
>> memory.
>>   Seems there is absolutely NOTHING to do this now.
>
> That is because modern kit uses graphics accelerators.
>
>>   What i need is a program to read ANY arbitrary part of drive (Spinrte
>> does this on an incremental basis) and do a one-to-one pixel display
>> (byte value determines color - back to the CoCo).
>
> There is a way to set or read individual pixels but it isn't often used.
>
>>   Program has means of user-control scrolling thru HD memory.
>>
>>   Thanks.
>
> Why on earth do you want to do this? Disk contents today are almost
> invariably compressed to some extent and will have high entropy. JPG and
> MPEG streams only the headers are distinguishable from noise.
>
> Only the simplest of flat text files or prehistoric BMP files will have
> any discernable structure to the naked eye.
>
> Or are you trying to build an IPCRESS machine?
>
   ...and what does that to do with the price of rice in China?
   There are many programs that will display a BP file on a color 
screen; details taken care of by the program and screen drivers ALREADY 
IN PLACE.

[toc] | [prev] | [next] | [standalone]


#10281

FromDon Y <blockedofcourse@foo.invalid>
Date2017-04-03 11:31 -0700
Message-ID<obu47m$qgj$1@dont-email.me>
In reply to#10267
On 4/3/2017 2:10 AM, Martin Brown wrote:
> On 03/04/2017 01:54, Robert Baer wrote:
>>   Remember back in the daze of the CoCo (Radio Shack color computer)?
>>   No software needed, the display was easily mapped to any area in memory.
>>   Seems there is absolutely NOTHING to do this now.
>
> That is because modern kit uses graphics accelerators.
>
>>   What i need is a program to read ANY arbitrary part of drive (Spinrte
>> does this on an incremental basis) and do a one-to-one pixel display
>> (byte value determines color - back to the CoCo).
>
> There is a way to set or read individual pixels but it isn't often used.
>
>>   Program has means of user-control scrolling thru HD memory.
>>
>>   Thanks.
>
> Why on earth do you want to do this?

He wants to "understand" why the disk isn't "full of zeroes" after he
THINKS he has filled it with zeroes.  So, like the folks who insist on
spreadsheets instead of databases (because they can SEE everything
at the same time), he wants to "see" the entire contents of the disk
at the same time (or, in HUGE swaths).  And, *hope*he can resolve a
single pixel (indicative of ONE BYTE) as being other than what
he expects (i.e., assuming the CLUT maps all values OTHER THAN 0x00
to "white" while 0x00 maps to "black" -- or another pair of HIGH CONTRAST
colors, etc.).

Of course, the same mechanisms that are telling him the disk's
contents aren't what he thinks they are will come into play
"under" this new program.  He will then cite this as further
"proof" that the program doesn't work.

Instead of independently verifying the drive's contents;
e.g., by booting the machine from a FLOPPY or a CD and
examining it there (or, just rebooting after cycling power)

> Disk contents today are almost invariably
> compressed to some extent and will have high entropy. JPG and MPEG streams only
> the headers are distinguishable from noise.
>
> Only the simplest of flat text files or prehistoric BMP files will have any
> discernable structure to the naked eye.
>
> Or are you trying to build an IPCRESS machine?

[toc] | [prev] | [next] | [standalone]


#10287

FromMartin Brown <'''newspam'''@nezumi.demon.co.uk>
Date2017-04-04 08:41 +0100
Message-ID<obvin7$1rs6$1@gioia.aioe.org>
In reply to#10281
On 03/04/2017 19:31, Don Y wrote:
> On 4/3/2017 2:10 AM, Martin Brown wrote:
>> On 03/04/2017 01:54, Robert Baer wrote:
>>>   Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>   No software needed, the display was easily mapped to any area in
>>> memory.
>>>   Seems there is absolutely NOTHING to do this now.
>>
>> That is because modern kit uses graphics accelerators.
>>
>>>   What i need is a program to read ANY arbitrary part of drive (Spinrte
>>> does this on an incremental basis) and do a one-to-one pixel display
>>> (byte value determines color - back to the CoCo).
>>
>> There is a way to set or read individual pixels but it isn't often used.
>>
>>>   Program has means of user-control scrolling thru HD memory.
>>>
>>>   Thanks.
>>
>> Why on earth do you want to do this?
>
> He wants to "understand" why the disk isn't "full of zeroes" after he
> THINKS he has filled it with zeroes.  So, like the folks who insist on
> spreadsheets instead of databases (because they can SEE everything
> at the same time), he wants to "see" the entire contents of the disk
> at the same time (or, in HUGE swaths).  And, *hope*he can resolve a
> single pixel (indicative of ONE BYTE) as being other than what
> he expects (i.e., assuming the CLUT maps all values OTHER THAN 0x00
> to "white" while 0x00 maps to "black" -- or another pair of HIGH CONTRAST
> colors, etc.).

Something like sfile which works out the byte entropy of a file or block 
of disk would be more suitable if the expectation is mostly zeros 
(mostly any other value or for that matter or completely random). It 
basically reports the byte entropy and the percentage of each of the 10 
most frequently occurring tokens and the tokens which never appear.

But I thought most modern disk trashers used a linear congruential 
random number anyway and a few cycles over the disk these days so that 
forensic methods using edge of domain thin head tricks can't recover it.

Unless it is a very old and insecure disk trasher then the expectation 
is that you will not see zeroes everywhere but uniform random numbers.

> Of course, the same mechanisms that are telling him the disk's
> contents aren't what he thinks they are will come into play
> "under" this new program.  He will then cite this as further
> "proof" that the program doesn't work.

Proof by failure to understand or RTFM.
Is the tool he is using/complaining about open source?

> Instead of independently verifying the drive's contents;
> e.g., by booting the machine from a FLOPPY or a CD and
> examining it there (or, just rebooting after cycling power)

Sigh :(

-- 
Regards,
Martin Brown

[toc] | [prev] | [next] | [standalone]


#10289

FromDon Y <blockedofcourse@foo.invalid>
Date2017-04-04 01:39 -0700
Message-ID<obvluf$5d1$1@dont-email.me>
In reply to#10287
On 4/4/2017 12:41 AM, Martin Brown wrote:
> On 03/04/2017 19:31, Don Y wrote:
>> On 4/3/2017 2:10 AM, Martin Brown wrote:
>>> On 03/04/2017 01:54, Robert Baer wrote:
>>>>   Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>>   No software needed, the display was easily mapped to any area in
>>>> memory.
>>>>   Seems there is absolutely NOTHING to do this now.
>>>
>>> That is because modern kit uses graphics accelerators.
>>>
>>>>   What i need is a program to read ANY arbitrary part of drive (Spinrte
>>>> does this on an incremental basis) and do a one-to-one pixel display
>>>> (byte value determines color - back to the CoCo).
>>>
>>> There is a way to set or read individual pixels but it isn't often used.
>>>
>>>>   Program has means of user-control scrolling thru HD memory.
>>>>
>>>>   Thanks.
>>>
>>> Why on earth do you want to do this?
>>
>> He wants to "understand" why the disk isn't "full of zeroes" after he
>> THINKS he has filled it with zeroes.  So, like the folks who insist on
>> spreadsheets instead of databases (because they can SEE everything
>> at the same time), he wants to "see" the entire contents of the disk
>> at the same time (or, in HUGE swaths).  And, *hope*he can resolve a
>> single pixel (indicative of ONE BYTE) as being other than what
>> he expects (i.e., assuming the CLUT maps all values OTHER THAN 0x00
>> to "white" while 0x00 maps to "black" -- or another pair of HIGH CONTRAST
>> colors, etc.).
>
> Something like sfile which works out the byte entropy of a file or block of
> disk would be more suitable if the expectation is mostly zeros (mostly any
> other value or for that matter or completely random). It basically reports the
> byte entropy and the percentage of each of the 10 most frequently occurring
> tokens and the tokens which never appear.

Simpler solution:  examine the raw device with a hex editor and see if
it is "full of zeroes"  :>   E.g., the solution I suggested was to
examine the raw device "file" with od(1) -- knowing that it would show
a "blanked" drive as:

000000   00 00 00 00 00 00 00 00
*  (i.e., some number of identical lines)
<last address>

> But I thought most modern disk trashers used a linear congruential random
> number anyway and a few cycles over the disk these days so that forensic
> methods using edge of domain thin head tricks can't recover it.

I don't think he's actually trying to obfuscate the drive's contents.
Rather, I think he is just trying to get it to a "clean" state before
installing a new filesystem.

E.g., when I move a drive to a new OS and don't want to "fight" with
any expectations the new system might place on the drive label, I
will "zero" the first few tracks just to keep the system from trying to
impose some rules on the medium (based on assumptions it makes)

> Unless it is a very old and insecure disk trasher then the expectation is that
> you will not see zeroes everywhere but uniform random numbers.
>
>> Of course, the same mechanisms that are telling him the disk's
>> contents aren't what he thinks they are will come into play
>> "under" this new program.  He will then cite this as further
>> "proof" that the program doesn't work.
>
> Proof by failure to understand or RTFM.
> Is the tool he is using/complaining about open source?

No idea.  I've read the OP a few times and still am not SURE
of what he's done.  Instead, I'm guessing as to his goal and
method -- and pointing out other ways to avoid whatever is
"lying" to him.  Occam's Razor:  odd to expect that a tool
(whatever tool it may be) is failing to work for HIM but has
apparently worked for others!

>> Instead of independently verifying the drive's contents;
>> e.g., by booting the machine from a FLOPPY or a CD and
>> examining it there (or, just rebooting after cycling power)
>
> Sigh :(

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).

<shrug>

[toc] | [prev] | [next] | [standalone]


#10326

FromRobert Baer <robertbaer@localnet.com>
Date2017-04-05 01:29 -0800
Message-ID<FN2FA.212708$On5.113097@fx43.iad>
In reply to#10289
Don Y wrote:
> On 4/4/2017 12:41 AM, Martin Brown wrote:
>> On 03/04/2017 19:31, Don Y wrote:
>>> On 4/3/2017 2:10 AM, Martin Brown wrote:
>>>> On 03/04/2017 01:54, Robert Baer wrote:
>>>>> Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>>> No software needed, the display was easily mapped to any area in
>>>>> memory.
>>>>> Seems there is absolutely NOTHING to do this now.
>>>>
>>>> That is because modern kit uses graphics accelerators.
>>>>
>>>>> What i need is a program to read ANY arbitrary part of drive (Spinrte
>>>>> does this on an incremental basis) and do a one-to-one pixel display
>>>>> (byte value determines color - back to the CoCo).
>>>>
>>>> There is a way to set or read individual pixels but it isn't often
>>>> used.
>>>>
>>>>> Program has means of user-control scrolling thru HD memory.
>>>>>
>>>>> Thanks.
>>>>
>>>> Why on earth do you want to do this?
>>>
>>> He wants to "understand" why the disk isn't "full of zeroes" after he
>>> THINKS he has filled it with zeroes. So, like the folks who insist on
>>> spreadsheets instead of databases (because they can SEE everything
>>> at the same time), he wants to "see" the entire contents of the disk
>>> at the same time (or, in HUGE swaths). And, *hope*he can resolve a
>>> single pixel (indicative of ONE BYTE) as being other than what
>>> he expects (i.e., assuming the CLUT maps all values OTHER THAN 0x00
>>> to "white" while 0x00 maps to "black" -- or another pair of HIGH
>>> CONTRAST
>>> colors, etc.).
>>
>> Something like sfile which works out the byte entropy of a file or
>> block of
>> disk would be more suitable if the expectation is mostly zeros (mostly
>> any
>> other value or for that matter or completely random). It basically
>> reports the
>> byte entropy and the percentage of each of the 10 most frequently
>> occurring
>> tokens and the tokens which never appear.
>
> Simpler solution: examine the raw device with a hex editor and see if
> it is "full of zeroes" :> E.g., the solution I suggested was to
> examine the raw device "file" with od(1) -- knowing that it would show
> a "blanked" drive as:
>
> 000000 00 00 00 00 00 00 00 00
> * (i.e., some number of identical lines)
> <last address>
>
>> But I thought most modern disk trashers used a linear congruential random
>> number anyway and a few cycles over the disk these days so that forensic
>> methods using edge of domain thin head tricks can't recover it.
>
> I don't think he's actually trying to obfuscate the drive's contents.
> Rather, I think he is just trying to get it to a "clean" state before
> installing a new filesystem.
>
> E.g., when I move a drive to a new OS and don't want to "fight" with
> any expectations the new system might place on the drive label, I
> will "zero" the first few tracks just to keep the system from trying to
> impose some rules on the medium (based on assumptions it makes)
>
>> Unless it is a very old and insecure disk trasher then the expectation
>> is that
>> you will not see zeroes everywhere but uniform random numbers.
>>
>>> Of course, the same mechanisms that are telling him the disk's
>>> contents aren't what he thinks they are will come into play
>>> "under" this new program. He will then cite this as further
>>> "proof" that the program doesn't work.
>>
>> Proof by failure to understand or RTFM.
>> Is the tool he is using/complaining about open source?
>
> No idea. I've read the OP a few times and still am not SURE
> of what he's done. Instead, I'm guessing as to his goal and
> method -- and pointing out other ways to avoid whatever is
> "lying" to him. Occam's Razor: odd to expect that a tool
> (whatever tool it may be) is failing to work for HIM but has
> apparently worked for others!
>
>>> Instead of independently verifying the drive's contents;
>>> e.g., by booting the machine from a FLOPPY or a CD and
>>> examining it there (or, just rebooting after cycling power)
>>
>> Sigh :(
>
> 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).
>
> <shrug>
>
   Nice idea,EXCEPT no raw disk read...

[toc] | [prev] | [next] | [standalone]


#10345

FromDon Y <blockedofcourse@foo.invalid>
Date2017-04-06 00:51 -0700
Message-ID<oc4rt4$bhh$2@dont-email.me>
In reply to#10326
On 4/5/2017 2:29 AM, Robert Baer wrote:
> Don Y wrote:
>> On 4/4/2017 12:41 AM, Martin Brown wrote:
>>> On 03/04/2017 19:31, Don Y wrote:
>>>> On 4/3/2017 2:10 AM, Martin Brown wrote:
>>>>> On 03/04/2017 01:54, Robert Baer wrote:
>>>>>> Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>>>> No software needed, the display was easily mapped to any area in
>>>>>> memory.
>>>>>> Seems there is absolutely NOTHING to do this now.
>>>>>
>>>>> That is because modern kit uses graphics accelerators.
>>>>>
>>>>>> What i need is a program to read ANY arbitrary part of drive (Spinrte
>>>>>> does this on an incremental basis) and do a one-to-one pixel display
>>>>>> (byte value determines color - back to the CoCo).
>>>>>
>>>>> There is a way to set or read individual pixels but it isn't often
>>>>> used.
>>>>>
>>>>>> Program has means of user-control scrolling thru HD memory.
>>>>>>
>>>>>> Thanks.
>>>>>
>>>>> Why on earth do you want to do this?
>>>>
>>>> He wants to "understand" why the disk isn't "full of zeroes" after he
>>>> THINKS he has filled it with zeroes. So, like the folks who insist on
>>>> spreadsheets instead of databases (because they can SEE everything
>>>> at the same time), he wants to "see" the entire contents of the disk
>>>> at the same time (or, in HUGE swaths). And, *hope*he can resolve a
>>>> single pixel (indicative of ONE BYTE) as being other than what
>>>> he expects (i.e., assuming the CLUT maps all values OTHER THAN 0x00
>>>> to "white" while 0x00 maps to "black" -- or another pair of HIGH
>>>> CONTRAST
>>>> colors, etc.).
>>>
>>> Something like sfile which works out the byte entropy of a file or
>>> block of
>>> disk would be more suitable if the expectation is mostly zeros (mostly
>>> any
>>> other value or for that matter or completely random). It basically
>>> reports the
>>> byte entropy and the percentage of each of the 10 most frequently
>>> occurring
>>> tokens and the tokens which never appear.
>>
>> Simpler solution: examine the raw device with a hex editor and see if
>> it is "full of zeroes" :> E.g., the solution I suggested was to
>> examine the raw device "file" with od(1) -- knowing that it would show
>> a "blanked" drive as:
>>
>> 000000 00 00 00 00 00 00 00 00
>> * (i.e., some number of identical lines)
>> <last address>
>>
>>> But I thought most modern disk trashers used a linear congruential random
>>> number anyway and a few cycles over the disk these days so that forensic
>>> methods using edge of domain thin head tricks can't recover it.
>>
>> I don't think he's actually trying to obfuscate the drive's contents.
>> Rather, I think he is just trying to get it to a "clean" state before
>> installing a new filesystem.
>>
>> E.g., when I move a drive to a new OS and don't want to "fight" with
>> any expectations the new system might place on the drive label, I
>> will "zero" the first few tracks just to keep the system from trying to
>> impose some rules on the medium (based on assumptions it makes)
>>
>>> Unless it is a very old and insecure disk trasher then the expectation
>>> is that
>>> you will not see zeroes everywhere but uniform random numbers.
>>>
>>>> Of course, the same mechanisms that are telling him the disk's
>>>> contents aren't what he thinks they are will come into play
>>>> "under" this new program. He will then cite this as further
>>>> "proof" that the program doesn't work.
>>>
>>> Proof by failure to understand or RTFM.
>>> Is the tool he is using/complaining about open source?
>>
>> No idea. I've read the OP a few times and still am not SURE
>> of what he's done. Instead, I'm guessing as to his goal and
>> method -- and pointing out other ways to avoid whatever is
>> "lying" to him. Occam's Razor: odd to expect that a tool
>> (whatever tool it may be) is failing to work for HIM but has
>> apparently worked for others!
>>
>>>> Instead of independently verifying the drive's contents;
>>>> e.g., by booting the machine from a FLOPPY or a CD and
>>>> examining it there (or, just rebooting after cycling power)
>>>
>>> Sigh :(
>>
>> 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).
>>
>> <shrug>
>>
>   Nice idea,EXCEPT no raw disk read...

Sure there is.  You just haven't figured it out, yet!

[toc] | [prev] | [next] | [standalone]


#10346

FromMartin Brown <'''newspam'''@nezumi.demon.co.uk>
Date2017-04-06 09:22 +0100
Message-ID<oc4trd$1iqi$1@gioia.aioe.org>
In reply to#10345
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.

>>> <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

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/

-- 
Regards,
Martin Brown

[toc] | [prev] | [next] | [standalone]


#10348

FromDon Y <blockedofcourse@foo.invalid>
Date2017-04-06 09:55 -0700
Message-ID<oc5roo$7dr$1@dont-email.me>
In reply to#10346
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.

[toc] | [prev] | [next] | [standalone]


#10303

FromRobert Baer <robertbaer@localnet.com>
Date2017-04-04 02:07 -0800
Message-ID<OfKEA.101717$aX.85510@fx05.iad>
In reply to#10287
Martin Brown wrote:
> On 03/04/2017 19:31, Don Y wrote:
>> On 4/3/2017 2:10 AM, Martin Brown wrote:
>>> On 03/04/2017 01:54, Robert Baer wrote:
>>>> Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>> No software needed, the display was easily mapped to any area in
>>>> memory.
>>>> Seems there is absolutely NOTHING to do this now.
>>>
>>> That is because modern kit uses graphics accelerators.
>>>
>>>> What i need is a program to read ANY arbitrary part of drive (Spinrte
>>>> does this on an incremental basis) and do a one-to-one pixel display
>>>> (byte value determines color - back to the CoCo).
>>>
>>> There is a way to set or read individual pixels but it isn't often used.
>>>
>>>> Program has means of user-control scrolling thru HD memory.
>>>>
>>>> Thanks.
>>>
>>> Why on earth do you want to do this?
>>
>> He wants to "understand" why the disk isn't "full of zeroes" after he
>> THINKS he has filled it with zeroes. So, like the folks who insist on
>> spreadsheets instead of databases (because they can SEE everything
>> at the same time), he wants to "see" the entire contents of the disk
>> at the same time (or, in HUGE swaths). And, *hope*he can resolve a
>> single pixel (indicative of ONE BYTE) as being other than what
>> he expects (i.e., assuming the CLUT maps all values OTHER THAN 0x00
>> to "white" while 0x00 maps to "black" -- or another pair of HIGH CONTRAST
>> colors, etc.).
>
> Something like sfile which works out the byte entropy of a file or block
> of disk would be more suitable if the expectation is mostly zeros
> (mostly any other value or for that matter or completely random). It
> basically reports the byte entropy and the percentage of each of the 10
> most frequently occurring tokens and the tokens which never appear.
>
> But I thought most modern disk trashers used a linear congruential
> random number anyway and a few cycles over the disk these days so that
> forensic methods using edge of domain thin head tricks can't recover it.
>
> Unless it is a very old and insecure disk trasher then the expectation
> is that you will not see zeroes everywhere but uniform random numbers.
>
>> Of course, the same mechanisms that are telling him the disk's
>> contents aren't what he thinks they are will come into play
>> "under" this new program. He will then cite this as further
>> "proof" that the program doesn't work.
>
> Proof by failure to understand or RTFM.
> Is the tool he is using/complaining about open source?
>
>> Instead of independently verifying the drive's contents;
>> e.g., by booting the machine from a FLOPPY or a CD and
>> examining it there (or, just rebooting after cycling power)
>
> Sigh :(
>
   ALL of this is plain bullshit.
   No fancy programs,data compression, no stupid JPEG pictures, all NOT 
relevant.
   JUST data on a HD and a plain dd diskwipe that is SUPPOSED to 
work,but does not.
   If you are not willing to reproduce the problem,then STFU.

[toc] | [prev] | [next] | [standalone]


#10302

FromRobert Baer <robertbaer@localnet.com>
Date2017-04-04 02:01 -0800
Message-ID<G9KEA.239777$mB4.148965@fx25.iad>
In reply to#10281
Don Y wrote:
> On 4/3/2017 2:10 AM, Martin Brown wrote:
>> On 03/04/2017 01:54, Robert Baer wrote:
>>> Remember back in the daze of the CoCo (Radio Shack color computer)?
>>> No software needed, the display was easily mapped to any area in memory.
>>> Seems there is absolutely NOTHING to do this now.
>>
>> That is because modern kit uses graphics accelerators.
>>
>>> What i need is a program to read ANY arbitrary part of drive (Spinrte
>>> does this on an incremental basis) and do a one-to-one pixel display
>>> (byte value determines color - back to the CoCo).
>>
>> There is a way to set or read individual pixels but it isn't often used.
>>
>>> Program has means of user-control scrolling thru HD memory.
>>>
>>> Thanks.
>>
>> Why on earth do you want to do this?
>
> He wants to "understand" why the disk isn't "full of zeroes" after he
> THINKS he has filled it with zeroes.
* Oh, you KNOW that a dd diskwipe does NOT write zeros?
  Please give us a reference!

  So, like the folks who insist on
> spreadsheets instead of databases (because they can SEE everything
> at the same time), he wants to "see" the entire contents of the disk
> at the same time (or, in HUGE swaths). And, *hope*he can resolve a
> single pixel (indicative of ONE BYTE) as being other than what
> he expects (i.e., assuming the CLUT maps all values OTHER THAN 0x00
> to "white" while 0x00 maps to "black" -- or another pair of HIGH CONTRAST
> colors, etc.).
>
> Of course, the same mechanisms that are telling him the disk's
> contents aren't what he thinks they are will come into play
> "under" this new program. He will then cite this as further
> "proof" that the program doesn't work.
>
> Instead of independently verifying the drive's contents;
> e.g., by booting the machine from a FLOPPY or a CD and
> examining it there (or, just rebooting after cycling power)
>
>> Disk contents today are almost invariably
>> compressed to some extent and will have high entropy. JPG and MPEG
>> streams only
>> the headers are distinguishable from noise.
>>
>> Only the simplest of flat text files or prehistoric BMP files will
>> have any
>> discernable structure to the naked eye.
>>
>> Or are you trying to build an IPCRESS machine?
>
>

[toc] | [prev] | [next] | [standalone]


#10312

FromDon Y <blockedofcourse@foo.invalid>
Date2017-04-04 06:55 -0700
Message-ID<oc08ff$45u$1@dont-email.me>
In reply to#10302
On 4/4/2017 3:01 AM, Robert Baer wrote:
> Don Y wrote:
>> On 4/3/2017 2:10 AM, Martin Brown wrote:
>>> On 03/04/2017 01:54, Robert Baer wrote:
>>>> Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>> No software needed, the display was easily mapped to any area in memory.
>>>> Seems there is absolutely NOTHING to do this now.
>>>
>>> That is because modern kit uses graphics accelerators.
>>>
>>>> What i need is a program to read ANY arbitrary part of drive (Spinrte
>>>> does this on an incremental basis) and do a one-to-one pixel display
>>>> (byte value determines color - back to the CoCo).
>>>
>>> There is a way to set or read individual pixels but it isn't often used.
>>>
>>>> Program has means of user-control scrolling thru HD memory.
>>>>
>>>> Thanks.
>>>
>>> Why on earth do you want to do this?
>>
>> He wants to "understand" why the disk isn't "full of zeroes" after he
>> THINKS he has filled it with zeroes.
> * Oh, you KNOW that a dd diskwipe does NOT write zeros?
>  Please give us a reference!

dd(1) is simply a "file copy" utility -- in much the same vein as PIP.
When invoked as:
     dd if=/dev/zero of=/dev/rawdiskdevicename
it copies an infinitely long (pseudofile) file of "zeroes" to the
destination "disk" (represented by a file named /dev/rawdiskdevicename).

When invoked as:
     dd if=/dev/zero of=/dev/rawdiskdevicename count=10
it terminates the transfer of the infinitely long file of zeroes
after the 10th block (blocks being 512 bytes, by default)

When invoked as:
     dd if=/dev/zero of=/dev/rawdiskdevicename bs=10b count=10
it transfers blocks of 5120 bytes ("10 bLOCKLENGTHS") until it
has transfered 10 of them to the device.

When invoked as:
     dd if=/dev/random of=/dev/rawdiskdevicename
it copies an infinitely long (pseudofile) file of "random" data
to the destination disk (though the "randomness" of the data may
be dubious -- there are other sources of entropy to consider)

When invoked as:
     dd if=/filename of=/dev/rawdiskdevicename
it transfers the named file to the *start* of the destination disk.
So, if you want to overwrite the VTOC (MBR), you can store an image
of it in "filename" and overwrite it thusly.

When invoked as:
     dd if=/dev/rawsourcedisk of=/dev/rawdestionationdisk
it transfers the entire contents of the "source" disk to the "destination"
disk -- as if making a carbon copy of the disk (even if the operating
system doesn't recognize the source disk as having any *files* on it!)

In all of the above, if the entire prescribed transfer can't occur, it
is aborted when EOF is sensed in the input file (which will never happen
with an infinitely long file!) *or* the output file.  As such, it
continues until the disk is "full".

[I.e., *I* know exactly what dd(1) does.  Do you?]

My comment:
    He wants to "understand" why the disk isn't "full of zeroes" after he
    THINKS he has filled it with zeroes.
goes to address the point that you *think* you have filled the disk
with zeroes (based on your upthread posts) but can't seem to *verify*
the contents as being zero.

[toc] | [prev] | [next] | [standalone]


#10318

FromJasen Betts <jasen@xnet.co.nz>
Date2017-04-04 18:42 +0000
Message-ID<oc0pfg$nfb$1@gonzo.alcatraz>
In reply to#10312
On 2017-04-04, Don Y <blockedofcourse@foo.invalid> wrote:
> On 4/4/2017 3:01 AM, Robert Baer wrote:
>> Don Y wrote:
>>> On 4/3/2017 2:10 AM, Martin Brown wrote:
>>>> On 03/04/2017 01:54, Robert Baer wrote:
>>>>> Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>>> No software needed, the display was easily mapped to any area in memory.
>>>>> Seems there is absolutely NOTHING to do this now.
>>>>
>>>> That is because modern kit uses graphics accelerators.
>>>>
>>>>> What i need is a program to read ANY arbitrary part of drive (Spinrte
>>>>> does this on an incremental basis) and do a one-to-one pixel display
>>>>> (byte value determines color - back to the CoCo).
>>>>
>>>> There is a way to set or read individual pixels but it isn't often used.
>>>>
>>>>> Program has means of user-control scrolling thru HD memory.
>>>>>
>>>>> Thanks.
>>>>
>>>> Why on earth do you want to do this?
>>>
>>> He wants to "understand" why the disk isn't "full of zeroes" after he
>>> THINKS he has filled it with zeroes.
>> * Oh, you KNOW that a dd diskwipe does NOT write zeros?
>>  Please give us a reference!
>
> dd(1) is simply a "file copy" utility -- in much the same vein as PIP.
> When invoked as:
>      dd if=/dev/zero of=/dev/rawdiskdevicename
> it copies an infinitely long (pseudofile) file of "zeroes" to the
> destination "disk" (represented by a file named /dev/rawdiskdevicename).
>
> When invoked as:
>      dd if=/dev/zero of=/dev/rawdiskdevicename count=10
> it terminates the transfer of the infinitely long file of zeroes
> after the 10th block (blocks being 512 bytes, by default)
>
> When invoked as:
>      dd if=/dev/zero of=/dev/rawdiskdevicename bs=10b count=10
> it transfers blocks of 5120 bytes ("10 bLOCKLENGTHS") until it
> has transfered 10 of them to the device.
>
> When invoked as:
>      dd if=/dev/random of=/dev/rawdiskdevicename
> it copies an infinitely long (pseudofile) file of "random" data
> to the destination disk (though the "randomness" of the data may
> be dubious -- there are other sources of entropy to consider)

/dev/random will run out of entropy and the copy will stop
while it waits for more.

/dev/urandom will just make stuff up when it runs out.


-- 
This email has not been checked by half-arsed antivirus software 

[toc] | [prev] | [next] | [standalone]


#10321

FromDon Y <blockedofcourse@foo.invalid>
Date2017-04-04 13:13 -0700
Message-ID<oc0ujd$o3e$1@dont-email.me>
In reply to#10318
On 4/4/2017 11:42 AM, Jasen Betts wrote:
> On 2017-04-04, Don Y <blockedofcourse@foo.invalid> wrote:
>> On 4/4/2017 3:01 AM, Robert Baer wrote:
>>> Don Y wrote:
>>>> On 4/3/2017 2:10 AM, Martin Brown wrote:
>>>>> On 03/04/2017 01:54, Robert Baer wrote:
>>>>>> Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>>>> No software needed, the display was easily mapped to any area in memory.
>>>>>> Seems there is absolutely NOTHING to do this now.
>>>>>
>>>>> That is because modern kit uses graphics accelerators.
>>>>>
>>>>>> What i need is a program to read ANY arbitrary part of drive (Spinrte
>>>>>> does this on an incremental basis) and do a one-to-one pixel display
>>>>>> (byte value determines color - back to the CoCo).
>>>>>
>>>>> There is a way to set or read individual pixels but it isn't often used.
>>>>>
>>>>>> Program has means of user-control scrolling thru HD memory.
>>>>>>
>>>>>> Thanks.
>>>>>
>>>>> Why on earth do you want to do this?
>>>>
>>>> He wants to "understand" why the disk isn't "full of zeroes" after he
>>>> THINKS he has filled it with zeroes.
>>> * Oh, you KNOW that a dd diskwipe does NOT write zeros?
>>>  Please give us a reference!
>>
>> dd(1) is simply a "file copy" utility -- in much the same vein as PIP.
>> When invoked as:
>>      dd if=/dev/zero of=/dev/rawdiskdevicename
>> it copies an infinitely long (pseudofile) file of "zeroes" to the
>> destination "disk" (represented by a file named /dev/rawdiskdevicename).
>>
>> When invoked as:
>>      dd if=/dev/zero of=/dev/rawdiskdevicename count=10
>> it terminates the transfer of the infinitely long file of zeroes
>> after the 10th block (blocks being 512 bytes, by default)
>>
>> When invoked as:
>>      dd if=/dev/zero of=/dev/rawdiskdevicename bs=10b count=10
>> it transfers blocks of 5120 bytes ("10 bLOCKLENGTHS") until it
>> has transfered 10 of them to the device.
>>
>> When invoked as:
>>      dd if=/dev/random of=/dev/rawdiskdevicename
>> it copies an infinitely long (pseudofile) file of "random" data
>> to the destination disk (though the "randomness" of the data may
>> be dubious -- there are other sources of entropy to consider)
>
> /dev/random will run out of entropy and the copy will stop
> while it waits for more.
>
> /dev/urandom will just make stuff up when it runs out.

This is OS dependent.  IIRC, FreeBSD symlinks /dev/urandom to /dev/random.
And, the mechanisms for collecting entropy (amusing concept, if you think
about it!) differ.

My point is that the data isn't truly "random", in any case.  OTOH, if you're
just trying to scribble over existing data to make it *look* meaningless,
damn near anything will suffice!

In industries that rely on randomness (e.g., games of chance), there are
more stringent criteria in place to ensure knowledge of past history
will NOT allow you to predict future outcomes -- even if you have control
over the "traditional" entropy sources in the system.

[An attacker will never benefit from any *current* knowledge of a TRULY
random source; but, most implementations allow a determined attacker to
also manipulate the entropy sources and bias the resulting "randomness"]

[toc] | [prev] | [next] | [standalone]


#10322

FromPaul <nospam@needed.invalid>
Date2017-04-04 16:16 -0400
Message-ID<oc0uq2$oqs$1@dont-email.me>
In reply to#10318
Jasen Betts wrote:
> On 2017-04-04, Don Y <blockedofcourse@foo.invalid> wrote:
>> On 4/4/2017 3:01 AM, Robert Baer wrote:
>>> Don Y wrote:
>>>> On 4/3/2017 2:10 AM, Martin Brown wrote:
>>>>> On 03/04/2017 01:54, Robert Baer wrote:
>>>>>> Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>>>> No software needed, the display was easily mapped to any area in memory.
>>>>>> Seems there is absolutely NOTHING to do this now.
>>>>> That is because modern kit uses graphics accelerators.
>>>>>
>>>>>> What i need is a program to read ANY arbitrary part of drive (Spinrte
>>>>>> does this on an incremental basis) and do a one-to-one pixel display
>>>>>> (byte value determines color - back to the CoCo).
>>>>> There is a way to set or read individual pixels but it isn't often used.
>>>>>
>>>>>> Program has means of user-control scrolling thru HD memory.
>>>>>>
>>>>>> Thanks.
>>>>> Why on earth do you want to do this?
>>>> He wants to "understand" why the disk isn't "full of zeroes" after he
>>>> THINKS he has filled it with zeroes.
>>> * Oh, you KNOW that a dd diskwipe does NOT write zeros?
>>>  Please give us a reference!
>> dd(1) is simply a "file copy" utility -- in much the same vein as PIP.
>> When invoked as:
>>      dd if=/dev/zero of=/dev/rawdiskdevicename
>> it copies an infinitely long (pseudofile) file of "zeroes" to the
>> destination "disk" (represented by a file named /dev/rawdiskdevicename).
>>
>> When invoked as:
>>      dd if=/dev/zero of=/dev/rawdiskdevicename count=10
>> it terminates the transfer of the infinitely long file of zeroes
>> after the 10th block (blocks being 512 bytes, by default)
>>
>> When invoked as:
>>      dd if=/dev/zero of=/dev/rawdiskdevicename bs=10b count=10
>> it transfers blocks of 5120 bytes ("10 bLOCKLENGTHS") until it
>> has transfered 10 of them to the device.
>>
>> When invoked as:
>>      dd if=/dev/random of=/dev/rawdiskdevicename
>> it copies an infinitely long (pseudofile) file of "random" data
>> to the destination disk (though the "randomness" of the data may
>> be dubious -- there are other sources of entropy to consider)
> 
> /dev/random will run out of entropy and the copy will stop
> while it waits for more.

I've experienced that. It jams up on a platform that uses a
"well of entropy" for the purpose. If your machine doesn't have
a lot of uptime, the well is almost dry.

Windows doesn't have that concept, and the port of dd (dd.exe)
just uses a PRBS-class generator for the job. Doesn't jam up
on /dev/random and is good enough for crude purposes (making
test files for a compressor test, erasing a disk drive).

    Paul

[toc] | [prev] | [next] | [standalone]


#10336

FromDavid Brown <david.brown@hesbynett.no>
Date2017-04-05 08:52 +0200
Message-ID<oc2411$v07$1@dont-email.me>
In reply to#10318
On 04/04/17 20:42, Jasen Betts wrote:

> /dev/random will run out of entropy and the copy will stop
> while it waits for more.
> 
> /dev/urandom will just make stuff up when it runs out.
> 
> 

/dev/random "makes stuff up" too.  As Don says, implementations vary -
but on Linux /both/ use pseudo-random number generators.  They just
differ a bit in how much collected entropy is fed back into the
generator - and urandom will not block if the entropy runs out.

[toc] | [prev] | [next] | [standalone]


#10301

FromRobert Baer <robertbaer@localnet.com>
Date2017-04-04 01:57 -0800
Message-ID<h6KEA.173147$sJ.64221@fx06.iad>
In reply to#10267
Martin Brown wrote:
> On 03/04/2017 01:54, Robert Baer wrote:
>> Remember back in the daze of the CoCo (Radio Shack color computer)?
>> No software needed, the display was easily mapped to any area in memory.
>> Seems there is absolutely NOTHING to do this now.
>
> That is because modern kit uses graphics accelerators.
>
>> What i need is a program to read ANY arbitrary part of drive (Spinrte
>> does this on an incremental basis) and do a one-to-one pixel display
>> (byte value determines color - back to the CoCo).
>
> There is a way to set or read individual pixels but it isn't often used.
>
>> Program has means of user-control scrolling thru HD memory.
>>
>> Thanks.
>
> Why on earth do you want to do this? Disk contents today are almost
> invariably compressed to some extent and will have high entropy. JPG and
> MPEG streams only the headers are distinguishable from noise.
>
> Only the simplest of flat text files or prehistoric BMP files will have
> any discernable structure to the naked eye.
>
> Or are you trying to build an IPCRESS machine?
>
   MAT I REPEAT: i said nothing about JPEG,in fact, i talked about BMP 
format which is byte-oriented, exactly what one gets from a HD; it is 
plain i do not give a G.D. about compression (which plainly does not 
exist in this case). Next you will be talking about tri-state logic 
stored in holograms.

[toc] | [prev] | [standalone]


Page 4 of 4 — ← Prev page 1 2 3 [4]

Back to top | Article view | alt.computer


csiph-web