Article View: comp.os.msdos.programmer
Article #6735HD park
From: gt7103c MOBLEY,MICHAEL GRAHAM
Date: Wed, 22 May 1991 02:33
Date: Wed, 22 May 1991 02:33
30 lines
2039 bytes
2039 bytes
I have a question about parking the heads on hard drives. There is
a function (#19) in interrupt 13 (I think it's 13) that is the "park heads"
function. It requires the "Drive ID" to be specified in DL. Just what is
the ID of a drive. I've tried 00 through 03 thinking that maybe it was just
the logical drive number. I've also tried Norton Utilities and Norton DI,
but neither mentioned anything called the "drive ID."
Actually, for all I know, what I've been doing is working. I tried
putting the program "park.com" on a floppy to see if I could actually
hear and see (LED) the drive park and I could. However, any subsequent run
of "park" and the drive made no noise (because it was already parked). My
program that calls funtion 19 did nothing. It didn't crash, it just didn't
park the drive either. Maybe certain drives don't support function 19, but
then how does "Park.com" do it? What is a drive ID anyhow? Is there another
way to park the heads, such as telling the drive to go to track 615 or
wherever?
By the way, I'm trying to write a TSR that will park the heads
after a certain period of inactivity, like a screen saver. I think there
are probably already programs that do this, but I want to see if I can do it
myself. I'm writing in Turbo C. Any help or insight would be appreciated.
E-Mail to gt7103c@prism.gatech.edu.
Thanks,
Michael
--
MOBLEY,MICHAEL GRAHAM
Georgia Institute of Technology, Atlanta Georgia, 30332
uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt7103c
Internet: gt7103c@prism.gatech.edu
Technical Details
Message-ID:
<29586@hydra.gatech.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!mips!wrdis01!gatech!prism!gt7103cShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!mips!wrdis01!gatech!prism!gt7103c From: gt7103c@prism.gatech.EDU (gt7103c MOBLEY,MICHAEL GRAHAM) Newsgroups: comp.os.msdos.programmer Subject: HD park Message-ID: <29586@hydra.gatech.EDU> Date: 22 May 91 02:33:18 GMT Organization: Georgia Institute of Technology Lines: 30