"/sys/block/sd(X)/removable" erroneously indicates "removable" for fixed drives

Bug #1568352 reported by b3nmore
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

This seems to happen only to additional hdd (not the one with the root partition). gnome-disks and some file manager report those drives as ejectable.

This might be fixed by the following patch http://git.kernel.org/cgit/linux/kernel/git/stable/stable-queue.git/diff/queue-4.4/ata-ahci-don-t-mark-hotplugcapable-ports-as-external-removable.patch?id=4e362751dc079531ef2b95bcd5c71e12f78e1ae6

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-18-generic 4.4.0-18.34
ProcVersionSignature: Ubuntu 4.4.0-18.34-generic 4.4.6
Uname: Linux 4.4.0-18-generic x86_64
ApportVersion: 2.20.1-0ubuntu1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: kiran 1110 F.... pulseaudio
CurrentDesktop: XFCE
Date: Sat Apr 9 20:03:18 2016
HibernationDevice: RESUME=UUID=ebcf26a9-f63a-4b55-ad87-31f7b1f3feb6
InstallationDate: Installed on 2016-03-31 (9 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Beta amd64 (20160323)
MachineType: LENOVO 2767WSD
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-18-generic root=UUID=a0309315-a77b-4d81-8a2c-b603b5ab7acd ro quiet splash
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-18-generic N/A
 linux-backports-modules-4.4.0-18-generic N/A
 linux-firmware 1.157
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/17/2012
dmi.bios.vendor: LENOVO
dmi.bios.version: 7UET94WW (3.24 )
dmi.board.name: 2767WSD
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr7UET94WW(3.24):bd10/17/2012:svnLENOVO:pn2767WSD:pvrThinkPadT400:rvnLENOVO:rn2767WSD:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 2767WSD
dmi.product.version: ThinkPad T400
dmi.sys.vendor: LENOVO

Revision history for this message
b3nmore (b3nmore) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.6 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-rc4-wily/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
b3nmore (b3nmore) wrote :

Tested with latest mainline v4.6-rc4-wily, issue still persists.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
tags: added: kernel-bug-exists-upstream
Revision history for this message
b3nmore (b3nmore) wrote :

According to a redhat bug report (https://bugzilla.redhat.com/show_bug.cgi?id=1310682) it was introduced by a kernel update from 4.3 to 4.4. So I've testet 4.3.6 from mainline and it is not effected.

Btw. you probably get this on a live system too and for all hdds (since root is on the flash drive). This can have quite an impact, because some DEs automatically mount all removable drives (e.g. kde). If one of your hdd partitions contains a hypernated system, your in for a lot of fscking and/or ro mounted partitions on next resume.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.