Skip to contentSkip to conversation

Bug#522091: udev: unable to make hdd go standby

DISCUSSION Marco d'Itri 2 participants 2 messages Mar 31, 2009

lore
Share & tools
lore
#0 lore raw

Indeed a change event is generated when I run hdparm -y /dev/sda. Does anybody know why, and a workaround?

----- Forwarded message from John van der Kamp <[email protected]> -----

From: John van der Kamp <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: Bug#522091: udev: unable to make hdd go standby

Package: udev
Version: 0.140-1
Severity: normal

Normally, I set a harddisk to standby using hdparm (hdparm -y /dev/sda) on startup (rc.local), but udev immediately spins the harddisk backup. Only after stopping udev would the harddisk stay in standby mode. I had no problems with udev 0.125 with this sofar. Since I have 0.140 this problem arose.

Regards,

John

----- End forwarded message -----

Signature · 2 lines
ciao,
Marco
#1 lore raw
Quoted 7 lines

From: John van der Kamp <[email protected]>

Normally, I set a harddisk to standby using hdparm (hdparm -y /dev/sda) on startup (rc.local), but udev immediately spins the harddisk backup. Only after stopping udev would the harddisk stay in standby mode. I had no problems with udev 0.125 with this sofar. Since I have 0.140 this problem arose.

Quoted 2 lines · Marco d'Itri

Indeed a change event is generated when I run hdparm -y /dev/sda. Does anybody know why, and a workaround?

Because hdparm opens the device writable, while it should probably only do it with O_RDONLY. Recent udev versions check the device again, when it was opened for writing.

Kay