The commit is a legit stable fix and part of the Ubuntu 16.04 kernel since 
version 4.4.0-18 (your dmesg shows you a re running 4.4.0-34). So unfortunately 
not helping in your case. I extracted the relevant syslog data below. >From 
that info, the two disks are connected to a Marvell controller in RAID mode.
The change you found was ignoring the HPCP bit. But a drive would still marked 
as removable if the port had a ESP bit set and the controller had a SXS 
capability set. I don't think the port bits show up in the log but the 
controller does have SXS set. So there might be a chance that in your BIOS, 
there is an option related to the Marvell controller that says "ESP" somewhere. 
And if you disable that, the drives no longer are removable.

But generally I think dmraid (and fwiw the desktop environment mounting
everything removable) uses incorrect assumptions about what removable
means. All USB disks are removable but not all removable disks are
USB...

06:00.0 RAID bus controller [0104]: Marvell Technology Group Ltd.
88SE9172 SATA III 6Gb/s RAID Controller [1b4b:9192] (rev 12) Subsystem:
Gigabyte Technology Co., Ltd Device [1458:b000]

[    0.693411] ahci 0000:06:00.0: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 
impl RAID mode
[    0.693413] ahci 0000:06:00.0: flags: 64bit ncq sntf led only pmp fbs pio 
slum part sxs 
[    0.693609] scsi host8: ahci
[    0.693679] scsi host9: ahci
[    0.693707] ata9: SATA max UDMA/133 abar m512@0xfb410000 port 0xfb410100 irq 
43
[    0.693710] ata10: SATA max UDMA/133 abar m512@0xfb410000 port 0xfb410180 
irq 43
[    1.184050] ata10: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.184069] ata9: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.184636] ata10.00: ATA-9: ST2000DM001-1CH164, CC27, max UDMA/133
[    1.184638] ata10.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32), 
AA
[    1.184654] ata9.00: ATA-9: ST2000DM001-1CH164, CC27, max UDMA/133
[    1.184655] ata9.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
[    1.185166] ata10.00: configured for UDMA/133
[    1.185182] ata9.00: configured for UDMA/133
[    1.185306] scsi 8:0:0:0: Direct-Access     ATA      ST2000DM001-1CH1 CC27 
PQ: 0 ANSI: 5
[    1.185443] sd 8:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 
TB/1.82 TiB)
[    1.185445] sd 8:0:0:0: [sdb] 4096-byte physical blocks
[    1.185451] sd 8:0:0:0: Attached scsi generic sg2 type 0
[    1.185525] sd 8:0:0:0: [sdb] Write Protect is off
[    1.185527] sd 8:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    1.185553] sd 8:0:0:0: [sdb] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[    1.185577] scsi 9:0:0:0: Direct-Access     ATA      ST2000DM001-1CH1 CC27 
PQ: 0 ANSI: 5
[    1.185711] sd 9:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 
TB/1.82 TiB)
[    1.185713] sd 9:0:0:0: [sdc] 4096-byte physical blocks
[    1.185725] sd 9:0:0:0: Attached scsi generic sg3 type 0
[    1.185782] sd 9:0:0:0: [sdc] Write Protect is off
[    1.185784] sd 9:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[    1.185807] sd 9:0:0:0: [sdc] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[    1.189274] sd 8:0:0:0: [sdb] Attached SCSI removable disk

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1611277

Title:
  Kernel Shipped With Ubuntu 16.04.1 Cannot Recognize fakeRaid

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dmraid/+bug/1611277/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to