Red Hat Bugzilla – Bug 185557
CF card (detected as pcmcia) on Fujitsu Lifebook P Series (P1510D) gets labeled as not removable by the kernel.
Last modified: 2013-03-13 00:50:15 EDT
Description of problem:
CF cards put into the CF slot (detected as pcmcia) on Fujitsu Lifebook P Series
(P1510D) gets labeled as not removable by the kernel.
The card is detected as ide1, and set to hdc1. When one runs "cat
/sys/block/hdc/removable", the result is 0, even though the card is, in fact, a
CF card and definitely removable.
Because of being set as not removable, hal can't mount it, and gives an error
about "Cannot mount volume, You are not privileged to mount the volume 'LEXAR
This is fresh from the packaging, and has not had anything done to it at this point.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Obtain a Fujitsu Lifebook P Series (P1510D) installed with rawhide from last week
2. Insert the CF card into the CF slot
Get the error about not being privileged.
Should be able to be mounted by hal.
Mar 15 14:12:42 dhcp83-18 kernel: pccard: PCMCIA card inserted into slot 0
Mar 15 14:12:42 dhcp83-18 kernel: pcmcia: registering new device pcmcia0.0
Mar 15 14:12:43 dhcp83-18 kernel: hdc: LEXAR ATA FLASH, CFA DISK drive
Mar 15 14:12:43 dhcp83-18 kernel: ide1 at 0x3100-0x3107,0x310e on irq 3
Mar 15 14:12:43 dhcp83-18 kernel: hdc: max request size: 128KiB
Mar 15 14:12:43 dhcp83-18 kernel: hdc: 1001952 sectors (512 MB) w/1KiB
Mar 15 14:12:43 dhcp83-18 kernel: hdc: hdc1
Mar 15 14:12:43 dhcp83-18 kernel: ide-cs: hdc: Vcc = 3.3, Vpp = 0.0
pccard: PCMCIA card inserted into slot 0
pcmcia: registering new device pcmcia0.0
Probing IDE interface ide1...
hdc: LEXAR ATA FLASH, CFA DISK drive
ide1 at 0x3100-0x3107,0x310e on irq 3
hdc: max request size: 128KiB
hdc: 1001952 sectors (512 MB) w/1KiB Cache, CHS=994/16/63
ide-cs: hdc: Vcc = 3.3, Vpp = 0.0
Hi, please also attach the output from 'lshal'. Thanks.
Created attachment 126174 [details]
It looks like you captured the output in comment 2 without the CF card inserted.
Is it possible to get lshal output when the card is inserted? Thanks.
CF card is not a removable media, strictly speaking. The device gets
removed together with the media, so it's more similar to an IDE controller
in a PCI hotplug slot. But the difference is rather academic.
If David Zeuten can find a way to work around the issue easily, he'll
save the day. But if not, I suppose we can force "removable" for
Marking NEEDINFO because correct lshal output is needed.
Oops! Sorry. Yeah, I was a bit out of it yesterday, apparently.
Will attach lshal _with_ the CF card plugged in in a few moments.
Created attachment 126225 [details]
lshal output with CF card inserted
I suppose I could fix this (special case for the ide_cs driver) in the next hal
release - not sure it will make FC5 since the next hal release will grow a
rather large PolicyKit dependency. But the fix should be easy to backport though..
Btw, I have this hardware too and I'm able to reproduce it.
I'm reassigning this bug to the hal component then.
*** Bug 184471 has been marked as a duplicate of this bug. ***
Hi, please try the RPM's from here
Btw, these are the changes against hal CVS HEAD - the patch also applies to
0.5.7 so we should be good to put this in both Rawhide and FC5 updates
2006-03-26 David Zeuthen <email@example.com>
Fix for RH bug #185557
* hald/linux2/blockdev.c (hotplug_event_begin_add_blockdev): Introduce
"pcmcia" as a value storage.bus and mark devices of this bus as being
* fdi/information/10freedesktop/10-usb-card-readers.fdi: When
storage.bus="pcmcia" mark all drives with "FLASH" in the model
string as having drive_type="compact_flash"
Btw, you want to reboot your system after upgrading hal
Ok, so where is it? Is this coming soon?
How about right here
as mentioned in comment 9 :-)
Ping. Please let me know if the packages work for you so I can close this bug
and push packages to Rawhide and FC5.
Sorry. Was out sick, so had no access to the laptop in question. Will check today.
The new packages does fix the problem. Thank you!
Not entirely sure how one handles things being fixed in FC, though, since there
are not AFAIK errata. What do I need to do now, to indicate that I agree that it
Suzanne, thanks for testing.
I'm going to put this in Rawhide and FC5 updates.. will probably take a little
while as I want to include fixes for bug 173085 and bug 185527 too.
The actual patch is here (extracted from the SRPM in comment 13)
I've built this patch into rawhide as hal-0.5.7-10.
John, can you put this patch through as a FC5 update please? Thanks.