flat assembler
Message board for the users of flat assembler.

flat assembler > DOS > Any faster way to zap HDDs than ah=03h_int13h?

Author
Thread Post new topic Reply to topic
YONG



Joined: 16 Mar 2005
Posts: 8000
Location: 22° 15' N | 114° 10' E
I am writing a small program to zap (zero out) HDDs.

Currently, I use ah=03h_int13h to do the job.
It works but it is kind of slow - 37 minutes to finish a 6GB HDD.

Just wonder if there is any faster way.

Thanks,
YONG
Post 11 Apr 2005, 12:51
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7108
Location: Slovakia
write your own DMA routine. I don't know exact way, but google for something like "DMA HDD access" or "DMA harddisk acces" or so...
Post 11 Apr 2005, 13:11
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 8000
Location: 22° 15' N | 114° 10' E
I'll make some digging about DMA programming.

Thank vid for the input.

YONG
Post 12 Apr 2005, 13:11
View user's profile Send private message Visit poster's website Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 885
Location: \\world\asia\malaysia
hope to use your utility to zero out some "financial transaction recorded" hard disk here Razz
Post 12 Apr 2005, 14:45
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
Quote:

hope to use your utility to zero out some "financial transaction recorded" hard disk here

Sounds like something that should use DOD quality zapping...
Post 12 Apr 2005, 17:16
View user's profile Send private message Visit poster's website Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Helo,

zap out harddisk? Smile

its not a really complicated task,
you can boot from dos floppy, and start some code that uses direct I/O, via port, DMA is usually slower BUT working in background!
i wanted to use port to read write my harddisk, but since i could only use my program in dos, i stayed with bios.
i have attached some docs on Port access
Ralph Brown's port list Whole of it !

i think its enough to upload this file here once

if you make use of it let me know, i'm interested too Smile
i can help if needed.

Ralph Brown's Port List (full) link at - DOS Frequently Asked Questions (FAQ)


Last edited by Matrix on 10 Apr 2006, 21:22; edited 1 time in total
Post 12 Apr 2005, 19:05
View user's profile Send private message Visit poster's website Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 8000
Location: 22° 15' N | 114° 10' E
Here are some findings of my digging:

DMA programming:
http://www.isdaman.com/alsos/hardware/dma/
- Technical spec., basic concepts, example in C, etc.

Direct I/O access, via ports, to HDDs:
http://board.flatassembler.net/topic.php?t=25
- Code: IDE PC Bootloader for 386+
- Routine "HD_Read" is a good example which shows how to
directly read from a HDD using I/O ports

Using direct I/O, my zap program again takes about 37 minutes
to finish the 6GB HDD. It seems that in this scenario,
direct I/O access and BIOS (INT13h) differ very little in speed.

Matrix:
The file PORTS.LST is extremely useful.
Why not add a link to the file in the FAQs?
Links to all Ralf Brown's gems would be great.

Thank vbVeryBeginner, f0dder, and Matrix for the input.

YONG
Post 26 Apr 2005, 16:53
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.