Mailinglist Archive: opensuse (1047 mails)

< Previous Next >
Re: [opensuse] hdparm on boot and YaST
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Tue, 19 Jan 2016 08:38:48 +0100
  • Message-id: <n7kp68$a7u$1@saturn.local.net>
Juan R. de Silva wrote:

About a month ago I run a cross a post in forums showing the way to
run something like 'hdparm -B 254 /dev/sda' upon boot by simply
setting some parameter in YaST.

Yes, you should be able to do that with
sysconfig/ide:DEVICES_FORCE_IDE_DMA which YaST manipulates. I'm not
sure which YaST module, presumably something hardware related. You
could probably also just edit that config file.

The script that does the work is "/usr/lib/udev/idedma.sh" :

# The setting e.g. "/dev/hda:69:-c1:-m16:-u1:-W1:-A1" should be
# expanded as "hdparm -d 1 -X 69 -c1 -m16 -u1 -W1 -A1 /dev/hda"

I haven't tried it, but it sounds like you might just need this:

DEVICES_FORCE_IDE_DMA="/dev/sda::-B254"

However, that script is apparently only applied for /dev/hdx devices:

/usr/lib/udev/rules.d/56-idedma.rules




--
Per Jessen, Zürich (-2.9°C)
http://www.hostsuisse.com/ - dedicated server rental in Switzerland.

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
References