On Thu, 2004-01-22 at 17:46, Paul Varner wrote: 
> SuSE does it by having both the /dev/hdx and /dev/sr? devices in /dev 
> When you turned on DMA, it used the /dev/hdx device to turn on DMA.  You
> can do this in Gentoo manually, by creating the device manually and then
> using hdparm with the created device.  I haven't tested the interaction
> with devfs, (i.e. does the created device stick around after a reboot)
> but I did verify that it works.

Very cool Paul. Thanks. 

I played with this a bit. The created device does stick around after a
reboot, but values get set back to default. Specifically, setting DMA to
0 and rebooting will yield DMA==1 when the box comes back up. I don't
know the purpose of the keepsettings parameter. Maybe that would do
something after a reboot.

None the less, helpful.

> What you need to do is execute one of the following commands based upon
> which device is your SCSI emulated CD-ROM.  (The device numbers can be
> found /usr/src/linux/Documentation/devices.txt)
> 
> /dev/hda: mknod /dev/hda b 3 0 
> /dev/hdb: mknod /dev/hdb b 3 64
> /dev/hdc: mknod /dev/hdc b 22 0
> /dev/hdd: mknod /dev/hdd b 22 64

Values from /usr/src/linux/Documentation/devices.txt - OK

If these ended up causing a problem one of these days, is there a
command to remove the devices? rm /dev/hdd seems a bit draconian but
maybe that's all that's required?

> After that you should be able to use hdparm normally.  Here is the
> output from my system. (I have /dev/hdc, SCSI emulated)
> 
> I got the same thing. Cool.
> 
> 

Thanks much,
Mark


--
[EMAIL PROTECTED] mailing list

Reply via email to