[nSLUG] Qry (1 of 2): Writing /proc/ide/ide1/hdd/settings?

Donald Teed dteed at artistic.ca
Sat Oct 25 16:03:06 ADT 2003


I've never heard of manipulating IDE driver settings by writing to
/proc.  The normal tool for this is hdparm.  Check the man
page for hdparm and see if it will do what you need.

Mike Spencer wrote:

> How do I write to /proc/ide/ide1/hdd/settings?
> 
>     bogus% cat /proc/ide/ide1/hdd/settings
> 
> returns a tidy table like this:
> 
> name                  value             min             max        mode
> ----                  -----             ---             ---        ----
> breada_readahead        4               0               127             rw
> dsc_overlap             0               0               1               rw
> file_readahead          72              0               2097151         rw
> io_32bit                0               0               3               rw
> keepsettings            0               0               1               rw
> max_kb_per_request      122             1               127             rw
> nice1                   1               0               1               rw
> pio_mode                write-only      0               255             w
> slow                    0               0               1               rw
> unmaskirq               0               0               1               rw
> using_dma               1               0               1               rw
> 
> I just want to set "slow" on (i.e., to 1) but this:
> 
>    root> echo 1 > /proc/ide/ide1/hdd/settings/slow
> 
> provokes:
> 
>    bash: /proc/ide/ide1/hdd/settings/slow: Not a directory
> 
> How do I do that without mucking about with the other settings?  Do I
> have to grok the details of the kernel source just to do this?  Surely
> not.
> 
> - Mike
> 





More information about the nSLUG mailing list