Mail Archives: djgpp/1998/03/05/06:02:04
From: | Martin DOT Stromberg AT lu DOT erisoft DOT se (Martin Stromberg)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | hdparm lets your IDE disk spin down
|
Date: | 5 Mar 1998 06:33:14 GMT
|
Organization: | Ericsson Erisoft AB, Sweden
|
Lines: | 18
|
Message-ID: | <6dlgva$o34$1@antares.lu.erisoft.se>
|
NNTP-Posting-Host: | spica.lu.erisoft.se
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
hdparm is a program that interfaces directly with the hard disk under
Linux. One of the things it can do is set that an IDE disk should
spin down after a certain idle time.
This is something that I've been missing in DOS. So wildly extracting
from the Linux kernel and the hdparm program sources, I've managed to
get it working. However what I've done is to take only the things
needed to make it work for me; basically five calls to outportb.
Now I'd like to generalise it back to its glorious shape it came
from. But how do I get which physical IDE disk and partition 'c:' or
'g:' is? For those who knows about Linux, I need a mapping from
DOSish letters to /dev/hd{a,b,c,d}.
Hoppla,
MartinS
- Raw text -