[Bug 1470014] Re: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5.
** Changed in: hdparm (Debian) Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1470014 Title: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1470014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1470014] Re: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5.
Seems this has been indirectly fixed somewhere in the past. ** Tags removed: wily -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1470014 Title: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1470014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1470014] Re: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5.
I no longer see this bug in Ubuntu 16.10. Can anyone else confirm? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1470014 Title: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1470014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1470014] Re: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5.
I can confirm this for ubuntu 16.04 with Kernel 4.4 (up-to-date). I see this error in syslog, during boot (I'm using Luks-encrypted software raid (dmraid)). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1470014 Title: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1470014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1470014] Re: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5.
I'm also using WD hard disks: WD30EURS -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1470014 Title: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1470014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1470014] Re: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5.
The other bug suggested this could be repeated by running (where sdX is the name of your block device, e.g. sda from /dev/sda): sudo udevadm trigger --action=add /sys/block/sdX --verbose Another way debug this without a reboot for a drive that's not mounted, you can disconnect the device and re-scan to add it. # #Comment: First, figure out which logical port the drive is connected to: # #Comment: In the output, make note of the host0 part. Other output may have host1 etc. # #Comment: you may need to put a sudo in front of readlink. # readlink /sys/block/sdX #e.g. for /dev/sda it would be readlink /sys/block/sda ../devices/pci:00/:00:1f.1/ata1/host0/target0:0:1/0:0:1:0/block/sda # #Comment: Force disconnect the device (you may have to "sudo su -" first, or use sudo with tee): # echo 1 > /sys/block/sdX/device/delete # #Comment: Trigger rescan (you may have to "sudo su -" first, or use sudo with tee). # #Comment: Note host0 matches from the readlink call above: # echo "- - -" > /sys/class/scsi_host/host0/scan If you want to apply the workaround for xenial, you need to comment out both "hdparm_set_option -B254" and the "else" above it in /lib/hdparm/hdparm-functions. If you don't properly comment out the else section, then you'll get something like: systemd-udevd[XXX]: Process '/lib/udev/hdparm' failed with exit code 2. A workaround that didn't work for me was to add "hdparm_set_option -q" on the line before "hdparm_set_option -B254" /lib/hdparm/hdparm- functions . Just changing it to "hdparm_set_options -q -B254" results in the -B254 not getting set as a parameter, which may be good enough for some people. To add some debugging code, add the following to line 2 of /lib/udev/hdparm like suggested in bug 1568474. set -x; exec 2>>/tmp/hdparm.txt When incorrectly commenting out the "-B254" part, you may see something in /tmp/hdparm.txt like: /lib/udev/hdparm: 89: /lib/hdparm/hdparm-functions: Synax error: "fi" unexpected https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795025 says "the -B254 option status is written to the unavailable output and generates the IO error." The correct solution seems to be, as suggested test if the -B option is accepted before using it, having hdparm ignore the error (with a -q on line 88?), or changing the hdparm code's handling of the -B option failing. It would be nice to know when it fails with a warning in syslog instead of this error. It may also be useful to somehow get the output of hdparm going directly to the syslog when there is a non-0 error code, or even adding some information about what the command line was for the statement that failed if /lib/udev/hdparm is allowed to write to syslog. For me this may be a problem that comes and goes as I need to look at older drives where the APM_level is not supported. For the one drive I'm currently looking at I see: user@host:~$ sudo /sbin/hdparm -B254 /dev/sda /dev/sda: Setting Advanced Power Management level to 0xfe (254) HDIO_DRIVE_CMD failed: Input/output error APM_level = not supported user@host:~$ sudo /sbin/hdparm /dev/sda /dev/sda: multcount = 16 (on) IO_support= 1 (32-bit) readonly = 0 (off) readahead = 256 (on) geometry = 25694/255/63, sectors = 234441658, start = 0 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1470014 Title: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1470014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1470014] Re: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5.
A solution could be, that support for APM is checked before trying to set APM level. user@hostname:~/$ sudo hdparm -B /dev/sda [sudo] salasana henkilölle user: /dev/sda: APM_level = not supported user@hostname:~/$ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1470014 Title: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1470014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1470014] Re: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5.
A solution could be, that support for APM is checked before trying to set APM level. user@hostname:~/$ sudo hdparm -B /dev/sda [sudo] salasana henkilölle user: /dev/sda: APM_level = not supported user@hostname:~/$ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1470014 Title: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1470014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1470014] Re: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5.
Same bug has been reported against xenial: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1568474 ** Tags added: xenial -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1470014 Title: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1470014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1470014] Re: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5.
I get the same error, and I've found the cause of it on my system: - /lib/udev/rules.d/85-hdparm.rules calls /lib/udev/hdparm for every sdX and shX drive - /lib/udev/hdparm loads functions from /lib/hdparm/hdparm-functions - When the 'hdparm_options' function is called it sets a default global APM policy - Because I'm on AC power, with a stock /etc/hdparm.conf file, this results in -B 254 getting set. While you can change the APM value via hdparm.conf, the -B switch is going to get set, no matter what. And not all of my drives support that.I understand why this is being done, but, we need the ability to disable it. My suggestion is another option in hdparm.conf, say "noapm" :) In the meantime, because I actually wish to use hdparm.conf and easily see any errors on boot, I've edited: /lib/hdparm/hdparm-functions, mine was line 88, comment out 'hdparm_set_option -B254' -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1470014 Title: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1470014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1470014] Re: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5.
** Bug watch added: Debian Bug tracker #795025 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795025 ** Also affects: hdparm (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795025 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1470014 Title: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1470014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1470014] Re: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5.
** Changed in: hdparm (Debian) Status: Unknown = New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1470014 Title: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1470014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1470014] Re: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5.
** Changed in: hdparm (Ubuntu) Importance: Undecided = High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1470014 Title: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1470014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1470014] Re: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5.
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: hdparm (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1470014 Title: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1470014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1470014] Re: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5.
** Package changed: systemd (Ubuntu) = hdparm (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1470014 Title: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1470014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1470014] Re: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5.
** Description changed: This is logged into journalctl systemd-udevd[421]: Process '/lib/udev/hdparm' failed with exit code 5. + + hdparm 9.43-1ubuntu3 (wily) ProblemType: Bug DistroRelease: Ubuntu 15.10 Package: systemd 221-1ubuntu2 ProcVersionSignature: Ubuntu 4.0.0-3.5-generic 4.0.5 Uname: Linux 4.0.0-3-generic i686 NonfreeKernelModules: nvidia ApportVersion: 2.17.3-0ubuntu4 Architecture: i386 CurrentDesktop: GNOME Date: Tue Jun 30 10:41:28 2015 Lsusb: - Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub - Bus 003 Device 002: ID 046d:c50e Logitech, Inc. Cordless Mouse Receiver - Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub - Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub + Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub + Bus 003 Device 002: ID 046d:c50e Logitech, Inc. Cordless Mouse Receiver + Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub + Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub MachineType: ASUSTEK COMPUTER INC P5W DH Deluxe ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.0.0-3-generic root=UUID=7b1f4a51-558f-468f-85e0-f815d2f791e1 ro SourcePackage: systemd UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev' UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 07/22/2010 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: 3002 dmi.board.asset.tag: To Be Filled By O.E.M. dmi.board.name: P5W DH Deluxe dmi.board.vendor: ASUSTeK Computer INC. dmi.board.version: Rev 1.xx dmi.chassis.asset.tag: Asset-1234567890 dmi.chassis.type: 3 dmi.chassis.vendor: Chassis Manufacture dmi.chassis.version: Chassis Version dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr3002:bd07/22/2010:svnASUSTEKCOMPUTERINC:pnP5WDHDeluxe:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP5WDHDeluxe:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion: dmi.product.name: P5W DH Deluxe dmi.product.version: System Version dmi.sys.vendor: ASUSTEK COMPUTER INC -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1470014 Title: systemd-udevd: Process '/lib/udev/hdparm' failed with exit code 5. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1470014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs