Bug 112681 - kernel marks internal drives as being removable
Summary: kernel marks internal drives as being removable
Status: RESOLVED DUPLICATE of bug 111651
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: io_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-18 10:24 UTC by Silviu C.
Modified: 2016-02-23 22:09 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.4.2
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Silviu C. 2016-02-18 10:24:41 UTC
Hello,

With the 4.4 series kernel something changed so that now all my internal drives show up as removable drives. 
 
-----
silviu@trusty:~$ blkid 
/dev/sda1: UUID="da5a7ade-9505-4b81-a572-6fa2b528f864" TYPE="ext4" 
/dev/sdb1: UUID="0c1b3191-8229-49bd-983a-4df21c8e93b6" TYPE="ext4" 
/dev/sdc5: UUID="95018fd9-2d30-4d41-abf1-e925fe91c88e" TYPE="swap" 
/dev/sdc6: LABEL="moving_stuff" UUID="6476063E480A6794" TYPE="ntfs" 
/dev/sdd1: LABEL="Storage" UUID="EE8C01F18C01B4DD" TYPE="ntfs" 
/dev/sdd5: LABEL="lin_games" UUID="63c83f5a-407d-4617-ab9d-0a4d13af4b86" TYPE="ext4" 
/dev/sde1: LABEL="downloads_drive" UUID="4e33b7a3-c6cf-499b-924c-cea17d535da0" TYPE="ext4" 
/dev/sdf1: UUID="7AF8EE0CF8EDC70B" TYPE="ntfs" 
------
 
silviu@trusty:~$ cat /sys/class/block/sda/removable
1
silviu@trusty:~$ cat /sys/class/block/sdb/removable
1
silviu@trusty:~$ cat /sys/class/block/sdc/removable
1
[etc...]

If I turn off the hotswap option in the UEFI, this does not happen anymore. Yes, technically, with hotswap enabled, the drives are removable but this also causes gvfs to automount the various volumes on them.
 
This did not happen with any previous kernel from the 4.3 series or earlier.
Comment 1 t.wede 2016-02-23 20:29:15 UTC
The Kernel now supports hotplug on SATA devices.
Depending on the BIOS this could make problems.

Please see Bug 111651.

https://bugzilla.kernel.org/show_bug.cgi?id=111651
Comment 2 Silviu C. 2016-02-23 22:09:14 UTC
Marking this as duplicate.

*** This bug has been marked as a duplicate of bug 111651 ***

Note You need to log in before you can comment on or make changes to this bug.