FS#48069 - [linux] 4.4.1-2: Seems to detect fixed disks as a removable device
Attached to Project:
Arch Linux
Opened by Martin Schnitkemper (Martin-MS) - Sunday, 07 February 2016, 11:56 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 22 February 2016, 14:26 GMT
Opened by Martin Schnitkemper (Martin-MS) - Sunday, 07 February 2016, 11:56 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 22 February 2016, 14:26 GMT
|
Details
Description: After Upgrade to kernel package version 4.4.1-2
the KDE device notifier shows all partitions of fixed drives
as a removable media. A extended partition of a stick was
also shown as a device even if it has no mountable
filesystem.
Additional info: Downgrade to kernel 4.3.3-3 or booting into the LTS-kernel solved the problem; only removable device are offered from the device notifier. Could also be an issue with KDE but since the problem happend after kernel upgrade I think its also related to the kernel. Steps to reproduce: Update to kernel 4.4.1 |
This task depends upon
Closed by Doug Newgard (Scimmia)
Monday, 22 February 2016, 14:26 GMT
Reason for closing: Not a bug
Additional comments about closing: Firmware config issue
Monday, 22 February 2016, 14:26 GMT
Reason for closing: Not a bug
Additional comments about closing: Firmware config issue
I found another report on http://unix.stackexchange.com/questions/260389/plasma-device-notifier-thinks-all-my-internal-hard-drive-partitions-are-removabl who has the same problem, unfortunately there are no more precise information of the used kernel and platform; and it was on openSUSE, so might be distribution independent.
cat /sys/block/sd*/removable shows 1 for both internal hard disks. So it's definitely a kernel problem.
In the absence of the faintest idea about how this part of the system works I'd guess it's probably the chipset/bus drivers rather than the disk drivers since the same bug is affecting both a Samsung SSD and a Western Digital HD on my desktop and not affecting a Samsung SSD on the laptop.
https://bugs.freedesktop.org/show_bug.cgi?id=94023
I was not able to find a bug report or a discussion about this on the kernel mailing list.
Nobody report it ?
If somebody wants to take a look, just search in the kernel source: GENHD_FL_REMOVABLE
Edit (13/03/2016): Fixed in commit https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?h=v4.4.5&id=a55479ab637cda5ebbfdb9eb7c062bd99c13d5d9
/etc/udev/rules.d/62-internal-disk.rules
------
# don't show any partition of disk sda or sdb on the desktop
KERNEL=="sd[a-b]*",ENV{UDISKS_IGNORE}="1"
# don't show any member of lvm volume group xxx on the desktop
ENV{DM_VG_NAME}=="xxx",ENV{UDISKS_IGNORE}="1"
This will also remove the devices from the 'Places' panel in Dolphin, which in my view is no bad thing.