Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #455180
| From | Don Y <blockedofcourse@foo.invalid> |
|---|---|
| Newsgroups | sci.electronics.design, alt.computer |
| Subject | Re: byte-to-pixel data display program? |
| Date | 2017-04-05 11:57 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <oc3egd$h3h$1@dont-email.me> (permalink) |
| References | (1 earlier) <2QiEA.239465$u84.44624@fx35.iad> <itJEA.123527$QP1.81050@fx27.iad> <obvpj3$a98$1@gioia.aioe.org> <oc0961$61p$2@dont-email.me> <o03FA.183231$eU4.79068@fx13.iad> |
Cross-posted to 2 groups.
On 4/5/2017 2:44 AM, Robert Baer wrote:
> Don Y wrote:
>> On 4/4/2017 2:38 AM, Martin Brown wrote:
>>> On 04/04/2017 10:13, Robert Baer wrote:
>>>> bitrex wrote:
>>>>> On 04/02/2017 08:54 PM, 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.
>>>>>> 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.
>>>>>>
>>>>>> Thanks.
>>>>>
>>>>> Just curious but why you want to do any of this crazy 1980s stuff on a
>>>>> modern machine?
>>>>>
>>>>> Not saying that there isn't a good reason to. Maybe there is. Might
>>>>> help
>>>>> a potential solution if we knew it.
>>>>>
>>>>> I do some C++ systems/graphics programming for x86 in my spare time.
>>>
>>>> To start,all i wanted to do is "simply" add a hard drive.
>>>> That i could use as a data drive for Win2K, WinXP, and Win7.
>>>> The problem diskwipe not working led me to think of a way to _see_ WTF
>>>> was happening.
>>>
>>> WHy do you need to "see" it. A quick diagnostic program would be a
>>> heck of a
>>> lot less painful than manually scrolling through an entire disk!!!!
>>
>> Exactly. He doesn't trust the program to recognize "non-zeroes".
>>
>>>> AS an example, the lie of formatting in Parted magic is the fact that
>>>> it not only does NOT format,it seems that it cannot format; all it does
>>>> is write ONE BYTE in that partition table. even mkfs.ntfs/dev/sda1 does
>>>> the same lie.
>>>
>>> Format means different things to different people. A drive is fast
>>> formatted if
>>> all the sectors on it are marked as unused. It is no longer necessary
>>> to do a
>>> full slow physical format on spinning rust (and even less necessary on
>>> an SSD).
>>>
>>>> A visual look-see of the HD might show that a "special" byte in each
>>>> "block" may control this funny business.
>>>>
>>>> Remember waay back in the old daze, accounting data on a disk was
>>>> controller using a combination of deleted sectors and normal sectors one
>>>> byte did that per sector.
>>>>
>>>> I ought to know,i wrote a copy protection scheme using that fact as
>>>> well as other obscure titbits that took no space away from data..even
>>>> gained space from unused FAT space, from unused directory space, from
>>>> all of second FAT, and one sector beyond last track.
>>>
>>> Then write a program to read it block by block and report any
>>> exceptions to
>>> your expectations according to taste.
>>
>> Or, use a program that will display the contents of ANY FILE in ANY FORM
>> (e.g., as hex/octal/ASCII characters) and pipe that through a $PAGER
>> (so you don't see 50GB of data zoom by in an instant!)
>>
>> Gee, sure would be nice if such programs existed!! :>
>>
> There are NO files on a wiped drive..
Let me see if I can explain this without using "big woids and frazes"...
A file is an ordered collection of zero or more bytes.
(i.e., 1 2 3 4 is a different collection than 2 3 1 4)
It optionally can have one or more names.
(i.e., it can have MULTIPLE names!)
Names are largely chosen by conventions.
Names need not be "stored" ON the medium containing the named objects (!)
(e.g., where is the name "C:\" stored??)
A medium (e.g., disk) is an ordered collection of zero or more bytes.
A medium can contain files -- by imposing a structure on the bytes
that it contains ("Hmmm... we'll call these bytes a 'partition table'
and those bytes a 'directory' and these others can be a 'file' *in*
that 'directory'...)
Now, here comes the hard part. Concentrate...
There is nothing to stop a program that can display an "ordered
collection of bytes" from displaying a MEDIUM FULL of bytes!
Nor does the collection need to exist in some physical form;
/dev/timeofday is an ordered collection of bytes that happens
to yield 11:04:27 when read. A second read of the same "file"
yields 11:04:32! OhMiGosh!!
Anything ordered collection of bytes that can be NAMED in a manner
that can be parsed by a "reader program" can thus be examined
*by* that reader program.
E.g., if that program were to attempt to read /dev/timeofday, it
would yield the result 11:04:54. If it was told to read /dev/wholedisk,
then it would display the ordered sequence of bytes on the "wholedisk"
(whatever THAT may be).
In, for example, NetBSD, /dev/rwd0 is the "name" (filename!!!!!!!!)
of the "raw" Winchester Disk #0.
[A "raw" device is seen as a byte/character stream, not as a set
of 512/2048/4096/etc byte "blocks"]
The designation /dev/rwd0d refers to the entire contents of the
medium (as if you positioned the "read head" at the very beginning
of the medium and watched every byte fly past, in sequence). In
a PC, this is the MBR and a set of "partitions" - which typically
encompass most/all of the medium.
So, any access (read *or* write) of the (file!) named "/dev/rwd0d"
will be interpreted with respect to the boundaries of the physical
disk medium. If I want to inspect (or alter!) the MBR (on a disk
that I *know* to have an MBR -- the VTOC from one medium to the next
can vary based on the needs of the OS that supports it!), then I
would access this /dev/rwd0d "file" (remembering that a file is
just a collection of bytes, not a "file" in the colloquial sense)
The MBR can contain 4 MBR_PARTITIONS (deliberately referenced in
this way to sidestep the confusion to follow!).
A NetBSD system refers to these as SLICES. So, the third MBR_PARTITION
may define a slice that contains a NetBSD file system.
The designation /dev/rwd0c refers to the contents of the NetBSD slice
on that drive (you may be SHARING the "whole disk" with something else).
So, if I access the /dev/rwd0c "file", I will only see those things
that pertain to the NetBSD system; the MBR (which is part of /dev/rwd0d)
won't be visible.
Likewise, if I scribble on /dev/rwd0c with utter abandon, I can be assured
(by the operating system) that I will NOT interfere with anything that
"doesn't belong to NetBSD". E.g., I can have Windows on the same physical
disk and never worry about corrupting any part of that Windows system!
So, /dev/rwd0c can be regarded as the NetBSD "disk" -- within the
physical /dev/rwd0d disk.
The designation /dev/rwd0a refers to the contents of the first BSD_PARTITION
(note the difference indesignation between MBR_PARTITION and "slice") *in* the
NetBSD part of the drive. And, /dev/rwd0e is the second part (rwd0b is, by
convention, the "swap" (i.e., "PAGEFILE") partition of the drive.
Because we are now operating entirely *within* the NetBSD MBR_PARTITION
(slice), we are no longer bound by the rules that apply to the MBR.
Namely, we can have many more than 4 "partitions" on a NetBSD disk
(i.e., in a NetBSD *slice*). Each have names in the "file hierarchy",
though none of those names appear on the media, per se.
In my case (for a single physical disk system):
wd0a root
wd0b swap
wd0c NetBSD portion
wd0d whole disk
wd0e /var
wd0f /usr
wd0g /usr/pkg
wd0h /home
wd0i /Sources
wd0j /Playpen
wd0k /Archive
So, I can examine the part of the NetBSD disk that I mount as
the home directory directory (/home) by examining /dev/rwd0h.
If I poke around in there, I'll eventually find the contents of
all of "my" files -- in their "raw" forms (without the benefit of
the directory structure imposed by the filesystem).
Likewise, if something is *munged* in there, I can directly edit
those bytes on the media by referencing them:
- somewhere within /dev/rwd0h (i.e., /home)
- somewhere within /dev/rwd0c (i.e., the NetBSD slice that contains /home!)
- somewhere within /dev/rdw0d (i.e., the whole disk that contains the NetBSD
slice that contains the /home partition!)
And, in each case, I am dealing with a "file". And, the same tool that you
might choose to use to examine/alter the contents of ReadMe.txt
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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