Discussion:
Debug.exe Writing to sectors
(too old to reply)
Etienne Marais
2023-01-04 10:15:58 UTC
Permalink
I have studied most of the commands and features available in debug.exe now, but I am curious to why and when one would like to make use of the w 'write' version where you can specify the start sector of the disk. Is this for very low level stuff only ?
Kerr-Mudd, John
2023-01-04 12:00:35 UTC
Permalink
On Wed, 4 Jan 2023 02:15:58 -0800 (PST)
Post by Etienne Marais
I have studied most of the commands and features available in debug.exe now, but I am curious to why and when one would like to make use of the w 'write' version where you can specify the start sector of the disk. Is this for very low level stuff only ?
Yes. I used to use it to edit floppy disk bootsectors. (we'd get some
boot sector viruses come in at times).
--
Bah, and indeed Humbug.
Terje Mathisen
2023-01-04 17:52:47 UTC
Permalink
Post by Kerr-Mudd, John
On Wed, 4 Jan 2023 02:15:58 -0800 (PST)
Post by Etienne Marais
I have studied most of the commands and features available in debug.exe now, but I am curious to why and when one would like to make use of the w 'write' version where you can specify the start sector of the disk. Is this for very low level stuff only ?
Yes. I used to use it to edit floppy disk bootsectors. (we'd get some
boot sector viruses come in at times).
I once fixed a laptop over a sat phone link to an oil engineer working
somewhere in a Middle East desert: The Master Boot Record (MBR) had been
scrambled by a bad software crash, but I was able to get him to boot up
with a Dos floppy, enter DEBUG and then enter commands to load & list
that MBR, figure out what was wrong (I was looking at a similar laptop
in Oslo) and tell him how to enter hex bytes, verify them and then write
them back to the hard disk.

His PC booted again on the first try. :-)

Terje
--
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"
Etienne Marais
2023-01-05 15:26:31 UTC
Permalink
Post by Terje Mathisen
Post by Kerr-Mudd, John
On Wed, 4 Jan 2023 02:15:58 -0800 (PST)
Post by Etienne Marais
I have studied most of the commands and features available in debug.exe now, but I am curious to why and when one would like to make use of the w 'write' version where you can specify the start sector of the disk. Is this for very low level stuff only ?
Yes. I used to use it to edit floppy disk bootsectors. (we'd get some
boot sector viruses come in at times).
I once fixed a laptop over a sat phone link to an oil engineer working
somewhere in a Middle East desert: The Master Boot Record (MBR) had been
scrambled by a bad software crash, but I was able to get him to boot up
with a Dos floppy, enter DEBUG and then enter commands to load & list
that MBR, figure out what was wrong (I was looking at a similar laptop
in Oslo) and tell him how to enter hex bytes, verify them and then write
them back to the hard disk.
His PC booted again on the first try. :-)
Terje
--
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"
wow

I would feel proud as punch had I achieved that
Terje Mathisen
2023-01-06 15:00:10 UTC
Permalink
Post by Etienne Marais
Post by Terje Mathisen
Post by Kerr-Mudd, John
On Wed, 4 Jan 2023 02:15:58 -0800 (PST)
Post by Etienne Marais
I have studied most of the commands and features available in debug.exe now, but I am curious to why and when one would like to make use of the w 'write' version where you can specify the start sector of the disk. Is this for very low level stuff only ?
Yes. I used to use it to edit floppy disk bootsectors. (we'd get some
boot sector viruses come in at times).
I once fixed a laptop over a sat phone link to an oil engineer working
somewhere in a Middle East desert: The Master Boot Record (MBR) had been
scrambled by a bad software crash, but I was able to get him to boot up
with a Dos floppy, enter DEBUG and then enter commands to load & list
that MBR, figure out what was wrong (I was looking at a similar laptop
in Oslo) and tell him how to enter hex bytes, verify them and then write
them back to the hard disk.
His PC booted again on the first try. :-)
Terje
--
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"
wow
I would feel proud as punch had I achieved that
I was just immensely relieved that I didn't have to try again, from
scratch. Afair I did get him to save that scrambled MBR sector to the
floppy, before starting to modify it, but it fortunately worked on the
first attempt.

Terje
--
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"
wolfgang kern
2023-01-05 09:36:10 UTC
Permalink
Post by Etienne Marais
I have studied most of the commands and features available in debug.exe now, but I am curious to why and when one would like to make use of the w 'write' version where you can specify the start sector of the disk. Is this for very low level stuff only ?
even cumbersome to enter everything in hexadecimal and in consecutive
order debug.com was absolute the best way to create my very own tools
and the core of my first OS (~1980)

Yes, it is really the lowest level possible for programming.
But it can also be a life saver for complete sector restore.
(you need to know and be aware of CHS and LBA formats)

I wrote my whole OS [KESYS] in hexadecimal and ASCII only.
But my own tool gave me much more comfort than DOS-debug:
* immediate disassemble for input verify
* allow full navigation within set limits (ie: go back up).
* can change between 16/32/64bit code interpreter anytime.
* toggle between ASCII/HEX input and dump view as well.
* RD/WR from/to any media, incl. partial sector writes.
* and a few more :)

unfortunately it became all history now (damned UEFI)
__
wolfgang
Etienne Marais
2023-01-05 15:29:16 UTC
Permalink
Post by wolfgang kern
Post by Etienne Marais
I have studied most of the commands and features available in debug.exe now, but I am curious to why and when one would like to make use of the w 'write' version where you can specify the start sector of the disk. Is this for very low level stuff only ?
even cumbersome to enter everything in hexadecimal and in consecutive
order debug.com was absolute the best way to create my very own tools
and the core of my first OS (~1980)
Yes, it is really the lowest level possible for programming.
But it can also be a life saver for complete sector restore.
(you need to know and be aware of CHS and LBA formats)
I wrote my whole OS [KESYS] in hexadecimal and ASCII only.
* immediate disassemble for input verify
* allow full navigation within set limits (ie: go back up).
* can change between 16/32/64bit code interpreter anytime.
* toggle between ASCII/HEX input and dump view as well.
* RD/WR from/to any media, incl. partial sector writes.
* and a few more :)
unfortunately it became all history now (damned UEFI)
__
wolfgang
Gonna Github it ?
wolfgang kern
2023-01-05 15:55:50 UTC
Permalink
On 05/01/2023 16:29, Etienne Marais wrote:
[...about my OS]
Post by Etienne Marais
Post by wolfgang kern
unfortunately it became all history now (damned UEFI)
Gonna Github it ?
No, because of several things:
* it's a commercial product and still active >100 times
* it is written w/o any textual source code (hex only).
* it wont run on any newer PC (due UEFI) and also not on
many older stuff because it's made for specific hardware
where it was delivered on.
* I have only a handful copies on CD yet which I reserved
in case of required re-installation at clients side. And
my responsibility for maintenance times out end of 2025.

If I'm still alive I may share code snips and layout hints then.
__
wolfgang
Etienne Marais
2023-01-05 16:33:11 UTC
Permalink
Post by wolfgang kern
[...about my OS]
Post by Etienne Marais
Post by wolfgang kern
unfortunately it became all history now (damned UEFI)
Gonna Github it ?
* it's a commercial product and still active >100 times
* it is written w/o any textual source code (hex only).
* it wont run on any newer PC (due UEFI) and also not on
many older stuff because it's made for specific hardware
where it was delivered on.
* I have only a handful copies on CD yet which I reserved
in case of required re-installation at clients side. And
my responsibility for maintenance times out end of 2025.
If I'm still alive I may share code snips and layout hints then.
__
wolfgang
Cool. Sounds like something for a very specific market if I may garner a guess. The switching between architecture looks very interesting, but I wonder how many people would make use of something like that in the 'real world'. Only reason I'm on x86 assembly is it satisfies my retro computing indulgence and desire to understand the evolution of architecture. I think I would enjoy such as tool but I doubt there are many people who would make good use of it (?)
wolfgang kern
2023-01-06 08:19:02 UTC
Permalink
Post by Etienne Marais
Post by wolfgang kern
[...about my OS]
Post by Etienne Marais
Post by wolfgang kern
unfortunately it became all history now (damned UEFI)
Gonna Github it ?
* it's a commercial product and still active >100 times
* it is written w/o any textual source code (hex only).
* it wont run on any newer PC (due UEFI) and also not on
many older stuff because it's made for specific hardware
where it was delivered on.
* I have only a handful copies on CD yet which I reserved
in case of required re-installation at clients side. And
my responsibility for maintenance times out end of 2025.
If I'm still alive I may share code snips and layout hints then.
__
wolfgang
Cool. Sounds like something for a very specific market if I may garner a guess. The switching between architecture looks very interesting, but I wonder how many people would make use of something like that in the 'real world'. Only reason I'm on x86 assembly is it satisfies my retro computing indulgence and desire to understand the evolution of architecture. I think I would enjoy such as tool but I doubt there are many people who would make good use of it (?)
I never offered my tools because they allowed everything w/o any
restriction and so could do a lot of damage if used by unaware.
And they are/were top hacker and best reverse engineering stuff :)

me too like to have historic PCs for playing my favorite old games.
but what's on the market is either badly damaged or heavy abused.

I searched w/o success for PC spare parts to revive any one of my
collection from the past. Nothing older than 3 years is available.
__
wolfgang
Robert Riebisch
2023-01-08 21:25:34 UTC
Permalink
Post by wolfgang kern
I searched w/o success for PC spare parts to revive any one of my
collection from the past. Nothing older than 3 years is available.
Are you really sure?
Where do you live?
What parts are looking for?
--
Robert Riebisch
wolfgang kern
2023-01-09 09:59:33 UTC
Permalink
Post by Robert Riebisch
Post by wolfgang kern
I searched w/o success for PC spare parts to revive any one of my
collection from the past. Nothing older than 3 years is available.
Are you really sure?
Where do you live?
What parts are looking for?
Yes I'm pretty sure. Only second hand stuff w/o warranty are offered.
Vienna/Austria.
MSI Main-boards which can boot my KESYS (nonEFI, nonGPT) and accept
winXP+win7 ie: MSI 990FXA GD80 + CPU + DRAM. And a few older as well.

I need to purchase from nearby suppliers for warranty reasons,
all I ever bought from far distance was either wrong or damaged.
(I bought a "brand new" CPU from EBAY Germany recently: defective).

And because I could be sued if I repair client machines with unreliable
parts I closed the KESYS project and only maintain what's sold til end.
__
wolfgang

Loading...