Bug 231312 - doesn't recognize eSATA harddisk as pluggable
Summary: doesn't recognize eSATA harddisk as pluggable
Status: RESOLVED UPSTREAM
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-devicenotifier (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-19 14:59 UTC by Martin Steigerwald
Modified: 2011-07-10 15:07 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
output from "solid-hardware list details" (57.35 KB, text/plain)
2010-05-18 00:01 UTC, Frank Przybylski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Steigerwald 2010-03-19 14:59:09 UTC
Version:            (using KDE 4.4.1)
OS:                Linux
Installed from:    Debian testing/unstable Packages

Since KDE 4.4.1 device notifier doesn't recognize my eSATA harddisk as pluggable and doesn't show the NTFS and the FAT partition on my external 500 GB USB/eSATA harddisk when it is plugged via eSATA and only removable devices are to be shown. I connected it via eSATA and PCMCIA Delock eSATA controller (Silicon Image SiI 3512, supported by kernel).

These are the partitions:

shambhala:~> blkid | grep austausch
/dev/sdb1: LABEL="austausch" UUID="E604-0C6C" TYPE="vfat" 
/dev/sdb2: UUID="5481DE112D53799C" LABEL="austausch2" TYPE="ntfs" 

Controller and harddisk:

sata_sil 0000:03:00.0: enabling device (0000 -> 0003)
sata_sil 0000:03:00.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
sata_sil 0000:03:00.0: cache line size not set.  Driver may not function
sata_sil 0000:03:00.0: Applying R_ERR on DMA activate FIS errata fix
sata_sil 0000:03:00.0: setting latency timer to 64
scsi20 : sata_sil
scsi21 : sata_sil
ata19: SATA max UDMA/100 mmio m512@0xc4000000 tf 0xc4000080 irq 11
ata20: SATA max UDMA/100 mmio m512@0xc4000000 tf 0xc40000c0 irq 11
ata19: SATA link down (SStatus 0 SControl 310)
ata20: SATA link down (SStatus 0 SControl 310)
ata20: exception Emask 0x10 SAct 0x0 SErr 0x50000 action 0xe frozen
ata20: SError: { PHYRdyChg CommWake }
ata20: hard resetting link
ata20: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
ata20.00: ATA-8: Hitachi HTS545050B9A300, PB4OC60G, max UDMA/133
ata20.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
ata20.00: configured for UDMA/100
ata20: EH complete
scsi 21:0:0:0: Direct-Access     ATA      Hitachi HTS54505 PB4O PQ: 0 ANSI: 5
sd 21:0:0:0: Attached scsi generic sg2 type 0
sd 21:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 21:0:0:0: [sdb] Write Protect is off
sd 21:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 21:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdb: sdb1 sdb2 sdb3
sd 21:0:0:0: [sdb] Attached SCSI disk

The disk is partitioned via GPT, output of parted -l:

Model: ATA Hitachi HTS54505 (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size     File system  Name     Flags
 1      17,4kB  10,0GB  10000MB  fat32        primary  msftres
 2      10,0GB  20,0GB  10,0GB   ntfs         primary  msftres
 3      20,0GB  500GB   480GB                 primary  lvm

Expected results:

The drive should be detected a removable via eSATA as well, like it is in KDE 4.3.4. In KDE 4.4.1 it is only detected as removable when I connect it via USB.
Comment 1 Martin Steigerwald 2010-03-19 15:06:15 UTC
I am using this hal:

martin@shambhala:~> apt-show-versions | grep hal
hal/squeeze uptodate 0.5.14-2
hal-cups-utils/squeeze uptodate 0.6.16-3
hal-info/squeeze uptodate 20091130-1
libhal-storage1/squeeze uptodate 0.5.14-2
libhal1/squeeze uptodate 0.5.14-2
[...]

There is no newer version in unstable or experimental ATM. But well this used to work in KDE 4.3.4 so it might not be an HAL issue at all.
Comment 2 Frank Przybylski 2010-05-08 16:14:49 UTC
I can confirm this bug:

Version:           KDE 4.4.2
OS:                kubuntu 10.4
Installed from:    kubuntu

Stopped working after upgrading from kubuntu 9.10, where everything worked fine.

02:00.0 SATA controller: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 02)

fdisk partition table.

Drive is working fine after mounting from dolphin, where all partitions are shown properly. Only Device Notifier says "no devices plugged in".

Thanks
Comment 3 Jacopo De Simoi 2010-05-16 23:13:31 UTC
I do not own the hardware to reproduce this;
could you please provide an output of 

solid-hardware list details
Comment 4 Frank Przybylski 2010-05-18 00:01:50 UTC
Created attachment 43673 [details]
output from "solid-hardware list details"

Not sure, which part you need, so you get it all ;-)
HTH
Comment 5 Jacopo De Simoi 2010-05-18 23:52:05 UTC
> output from "solid-hardware list details"
> 
> Not sure, which part you need, so you get it all ;-)
> HTH

Can you reproduce also the fact that if you connect the device via usb, then they all correctly show up? 
if so, could you please attach the same output when you connect the device via usb?
Thanks a lot
Comment 6 Jacopo De Simoi 2010-05-19 00:10:51 UTC
I found this: 

http://bugs.freedesktop.org/show_bug.cgi?id=12127

Apparently HAL incorrectly reports eSATA HDDs as non-removable, hence the device notifier does not (correctly) show the device under "removable devices"
In the link above you find a workaround to make HAL work as expeceted.
Thanks a lot
  __J
Comment 7 Frank Przybylski 2010-05-20 00:41:25 UTC
Hi Jacopo,

thank you for your assistance. So I'm going to check for changes regarding HAL. As I said, it worked perfectly until upgrading (but that might be a strange incidence from previous upgrades... ;-). Just had a quick glimpse at the bug/workaround you refered to: I'd guess that will render all SATA devices as plug-able and would clutter the device manager list for me... If I find something I'll let you know

Cheers
 Frank
Comment 8 Jacopo De Simoi 2010-05-20 09:46:51 UTC
> As I said, it worked perfectly until upgrading (but that might be a strange
> incidence from previous upgrades...
Indeed in 4.4 the device notifier shows only removable devices (this can be changed in the device notifier settings, but changing the option *will* clutter your device list); in 4.3 this check was not made.

> I'd guess that will render all SATA devices as
> plug-able and would clutter the device manager list for me... 

You can indeed add the pluggable flag selectively to a specific device by adding the relevant match to the fdi files. You'll likely be able to find info about that by googling around, but you got the idea.
__J
Comment 9 Lamarque V. Souza 2011-07-10 15:07:26 UTC
*** Bug 277392 has been marked as a duplicate of this bug. ***