FS#64162 - systemd-udevd[1179]: sdg: /etc/udev/rules.d/60-schedulers.rules:6 Failed to write ATTR{/sy

Attached to Project: Arch Linux
Opened by c (grinness) - Thursday, 17 October 2019, 23:07 GMT
Last edited by Jan de Groot (JGC) - Thursday, 31 October 2019, 08:19 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Hi
since a few days sd & micro-sd cards do not show up in file manager (deepin, but also gnome)
USB sticks do work normally

inserting and removing the sd card and examining journalctl -B:
[...]
Oct 17 23:24:10 moby kernel: usb 2-4: new SuperSpeed Gen 1 USB device number 6 using xhci_hcd
Oct 17 23:24:10 moby kernel: usb 2-4: New USB device found, idVendor=0781, idProduct=5591, bcdDevice= 1.00
Oct 17 23:24:10 moby kernel: usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 17 23:24:10 moby kernel: usb 2-4: Product: Ultra USB 3.0
Oct 17 23:24:10 moby kernel: usb 2-4: Manufacturer: SanDisk
Oct 17 23:24:10 moby kernel: usb 2-4: SerialNumber: 4C530001080927104343
Oct 17 23:24:10 moby kernel: usb-storage 2-4:1.0: USB Mass Storage device detected
Oct 17 23:24:10 moby kernel: scsi host8: usb-storage 2-4:1.0
Oct 17 23:24:10 moby mtp-probe[1126]: checking bus 2, device 6: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4"
Oct 17 23:24:10 moby mtp-probe[1126]: bus: 2, device: 6 was not an MTP device
Oct 17 23:24:10 moby mtp-probe[1128]: checking bus 2, device 6: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4"
Oct 17 23:24:10 moby mtp-probe[1128]: bus: 2, device: 6 was not an MTP device
Oct 17 23:24:11 moby kernel: scsi 8:0:0:0: Direct-Access SanDisk Ultra USB 3.0 1.00 PQ: 0 ANSI: 6
Oct 17 23:24:11 moby kernel: sd 8:0:0:0: Attached scsi generic sg7 type 0
Oct 17 23:24:11 moby kernel: sd 8:0:0:0: [sdg] 60062500 512-byte logical blocks: (30.8 GB/28.6 GiB)
Oct 17 23:24:11 moby kernel: sd 8:0:0:0: [sdg] Write Protect is off
Oct 17 23:24:11 moby kernel: sd 8:0:0:0: [sdg] Mode Sense: 43 00 00 00
Oct 17 23:24:11 moby kernel: sd 8:0:0:0: [sdg] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Oct 17 23:24:11 moby kernel: sdg: sdg1
Oct 17 23:24:11 moby kernel: sd 8:0:0:0: [sdg] Attached SCSI removable disk
Oct 17 23:24:11 moby systemd-udevd[1132]: sdg: /etc/udev/rules.d/60-schedulers.rules:6 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.0/host8/target8:0:0/8:0:0:0/block/sdg/queue/scheduler}, ignoring: Invalid argument
Oct 17 23:24:22 moby systemd-udevd[1137]: sdd: /etc/udev/rules.d/60-schedulers.rules:6 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8.4/2-8.4:1.0/host7/target7:0:0/7:0:0:1/block/sdd/queue/scheduler}, ignoring: Invalid argument
Oct 17 23:24:25 moby kernel: sd 7:0:0:1: [sdd] 15126528 512-byte logical blocks: (7.74 GB/7.21 GiB)
Oct 17 23:24:25 moby kernel: sdd: sdd1
Oct 17 23:24:25 moby systemd-udevd[1137]: sdd: /etc/udev/rules.d/60-schedulers.rules:6 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8.4/2-8.4:1.0/host7/target7:0:0/7:0:0:1/block/sdd/queue/scheduler}, ignoring: Invalid argument
Oct 17 23:24:26 moby systemd-udevd[1137]: sdd: /etc/udev/rules.d/60-schedulers.rules:6 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8.4/2-8.4:1.0/host7/target7:0:0/7:0:0:1/block/sdd/queue/scheduler}, ignoring: Invalid argument
[...]

Oct 17 23:56:54 moby kernel: sd 7:0:0:1: [sdd] 15126528 512-byte logical blocks: (7.74 GB/7.21 GiB)
Oct 17 23:56:54 moby kernel: sdd: sdd1
Oct 17 23:56:54 moby systemd-udevd[3103]: sdd: /etc/udev/rules.d/60-schedulers.rules:6 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8.4/2-8.4:1.0/host7/target7:0:0/7:0:0:1/block/sdd/queue/scheduler}, ignoring: Invalid argument
Oct 17 23:56:54 moby systemd-udevd[3103]: sdd: /etc/udev/rules.d/60-schedulers.rules:6 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8.4/2-8.4:1.0/host7/target7:0:0/7:0:0:1/block/sdd/queue/scheduler}, ignoring: Invalid argument


Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

pacman -Qi systemd
Name : systemd
Version : 243.51-1
Description : system and service manager
Architecture : x86_64
URL : https://www.github.com/systemd/systemd
Licenses : GPL2 LGPL2.1
Groups : base-devel
Provides : nss-myhostname systemd-tools=243.51 udev=243.51
Depends On : acl bash cryptsetup dbus iptables kbd kmod hwids libcap libgcrypt systemd-libs libidn2 libidn2.so=0-64 lz4 pam libelf libseccomp util-linux xz pcre2 audit
Optional Deps : libmicrohttpd: remote journald capabilities
quota-tools: kernel-level quota management
systemd-sysvcompat: symlink package to provide sysvinit binaries [installed]
polkit: allow administration as unprivileged user [installed]
curl: machinectl pull-tar and pull-raw [installed]
Required By : accountsservice base bluez-utils chromium colord crda cups cups-filters dhcpcd lib32-systemd libinput libmbim libpulse libwacom mkinitcpio modemmanager netctl p11-kit polkit python-pyudev rtkit systemd-sysvcompat
upower xdg-user-dirs
Optional For : None
Conflicts With : nss-myhostname systemd-tools udev
Replaces : nss-myhostname systemd-tools udev
Installed Size : 21.39 MiB
Packager : Christian Hesse <arch@eworm.de>
Build Date : Sun 22 Sep 2019 07:35:22 PM IST
Install Date : Thu 17 Oct 2019 07:17:57 PM IST
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature


pacman -Qi linux
Name : linux
Version : 5.3.6.arch1-1
Description : The Linux kernel and modules
Architecture : x86_64
URL : https://git.archlinux.org/linux.git/log/?h=v5.3.6-arch1
Licenses : GPL2
Groups : None
Provides : None
Depends On : coreutils kmod initramfs
Optional Deps : crda: to set the correct wireless channels of your country [installed]
linux-firmware: firmware images needed for some devices [installed]
Required By : deepin-anything-arch
Optional For : base
Conflicts With : None
Replaces : None
Installed Size : 78.81 MiB
Packager : Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Build Date : Fri 11 Oct 2019 07:26:26 PM IST
Install Date : Thu 17 Oct 2019 07:10:21 PM IST
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature



Steps to reproduce:
This task depends upon

Closed by  Jan de Groot (JGC)
Thursday, 31 October 2019, 08:19 GMT
Reason for closing:  Not a bug
Comment by loqs (loqs) - Friday, 18 October 2019, 00:09 GMT
/etc/udev/rules.d/60-schedulers.rules would be a custom file you created that contains invalid contents.
Comment by c (grinness) - Friday, 18 October 2019, 16:37 GMT
Thanks for the info.
Not sure what installed that rule (maybe some package tested from AUR)
pacman -Qo gives no ownership.

I removed the udev rule.
Still fighting with sd not showing up (although dmesg informs of it being plugged in and gvfs-* installed and USB sticks work fine)
I'll close the bug report, but if somebody has a lead, it would be v.much appreciated

Best
Comment by c (grinness) - Friday, 18 October 2019, 17:02 GMT
All solved

just for the records, the problem was the 'Dirty bit' set to 1 on the media (sd card)
Found out by manually mounting and checking dmesg:

[ 2197.295196] FAT-fs (sdd1): Invalid FSINFO signature: 0x01211212, 0x21013232 (sector = 1)
[ 2197.297582] FAT-fs (sdd1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.


re-partitioned and re-formatted and all is fine

Sorry for the noise

Best

Loading...