Public bug reported:
Binary package hint: udisks
udisks 1.0.1-1ubuntu1 on ubuntu 10.04.
Similar to bug #659620, udisks seems to be called on AC state changes,
which tries to call /sbin/hdparm -S 12 /dev/sdX on all block devices.
this was revealed by changing /sbin/hdparm to a script, which echos the output
of ps aux:
root 2165 0.0 0.0 57332 2092 ? Sl Oct06 0:04
/usr/lib/udisks/udisks-daemon
root 2167 0.0 0.0 46696 516 ? S Oct06 0:55 \_
udisks-daemon: polling /dev/sdc
root 8006 0.0 0.0 17648 1460 ? S 03:15 0:00 \_ /bin/bash
/sbin/hdparm -S 12 /dev/sdb
root 8010 0.0 0.0 15260 1368 ? R 03:15 0:00 | \_ ps auxf
root 8009 0.0 0.0 17648 1460 ? S 03:15 0:00 \_ /bin/bash
/sbin/hdparm -S 12 /dev/sda
as workaround i created a small script instead of /sbin/hdparm, that checks if
it is called by udisks. if so, it does nothing else it calls the real hdparm
executable:
#!/bin/bash
ps -p $PPID -o pid= -o comm= | grep udisks
ret=$?
if [[ $ret -ne 0 ]];then
# found udisks
/sbin/hdparm.orig $@
# else
# not found
fi
** Affects: udisks (Ubuntu)
Importance: Undecided
Status: New
--
On AC state changes udisks-daemon wakes disks from standby
https://bugs.launchpad.net/bugs/660250
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs