Bug 133980 - My smart-media card is not mounted
Summary: My smart-media card is not mounted
Status: VERIFIED WONTFIX
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Hotplug (show other bugs)
Version: Final
Hardware: i386 SuSE Linux 10.0
: P5 - None : Normal
Target Milestone: ---
Assignee: Danny Kukawka
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 12:50 UTC by Thomas Hofstetter
Modified: 2007-06-04 16:42 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Output of lshal (95.95 KB, text/plain)
2005-11-19 07:48 UTC, Thomas Hofstetter
Details
/var/log/messages (3.61 KB, application/octet-stream)
2005-11-21 20:32 UTC, Thomas Hofstetter
Details
output of udevmonitor (948 bytes, application/octet-stream)
2006-04-12 19:31 UTC, Thomas Hofstetter
Details
output of cat /proc/mounts if the card is inserted while booting (642 bytes, text/plain)
2006-04-13 09:31 UTC, Thomas Hofstetter
Details
output of cat /proc/mounts if the card is inserted after booting (514 bytes, text/plain)
2006-04-13 09:31 UTC, Thomas Hofstetter
Details
output of lsof | grep media (7.67 KB, text/plain)
2006-04-23 14:23 UTC, Thomas Hofstetter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Hofstetter 2005-11-16 12:50:27 UTC
I can't access my smart-media card, because if I go to "my computer" in konqueror, it is marked as not mounted. And if I format the card then it is mounted, but I can't create a new folder in konqueror. I can only insert files of my clipboard. I added this line to fstab:
/dev/sda1            /media/usbdisk       vfat       user,noauto           0 0
Now the card is sometimes mounted but I can't create a folder. But I can create a link to the device and then it works well. But it isn't mounted always. I haven't recognised any regularity, when it is mounted and when not. But if I deactivate my floopy drive in bios then I have no problems.
Comment 1 Danny Al-Gaaf 2005-11-18 16:16:52 UTC
Could you _attach_ the output of 'lshal' with inserted smart-card?
Comment 2 Thomas Hofstetter 2005-11-19 07:48:56 UTC
Created attachment 57784 [details]
Output of lshal
Comment 3 Danny Al-Gaaf 2005-11-21 12:21:05 UTC
please remove the line from you fstab. The entries in fstab are ignored for hotplugable media, we mount them automatically.

please do this:
* change line in /etc/init.d/haldaemon:
  from: HALDAEMON_PARA="--daemon=yes --retain-privileges";
  to:   HALDAEMON_PARA="--daemon=yes --retain-privileges --verbose=yes";

* remove the smartcard
* restart hal: 'rchal restart'
* insert the smartcard (and if needed the USB-reader)
* wait 20 seconds and add the part of /var/log/messages since hal restart.
Comment 4 Thomas Hofstetter 2005-11-21 20:32:25 UTC
Created attachment 57942 [details]
/var/log/messages
Comment 5 Thomas Hofstetter 2005-11-26 19:07:07 UTC
If I insert a cd-rw and want to open it in "my computer" I get this message:
mount: Konnte /dev/hdb nicht in /etc/fstab oder /etc/mtab finden
(mount: can't find /dev/hdb in /etc/fstab or /etc/mtab)
But this only since I installed the new version of hal. Before I hadn't any problems. But I need this version, because otherwise I can't open dvds. I doesn't know whether it has to do with my card or hasn't. But this problem is always and my smart-media card is sometimes mounted sometimes not.
Comment 6 Thomas Hofstetter 2005-11-26 19:50:42 UTC
(In reply to comment #5)
> If I insert a cd-rw and want to open it in "my computer" I get this message:
> mount: Konnte /dev/hdb nicht in /etc/fstab oder /etc/mtab finden
> (mount: can't find /dev/hdb in /etc/fstab or /etc/mtab)
> I doesn't know whether it has to do with my card or hasn't. I can solve this       > problem if I activate the KDED Medienverwaltung in the control center to start  > during start of the computer. But then he doesn't show me the smart-media card  > or other cards I insert in my card reader in in "my computer". And if I open  > the gnome file-browser I haven't this problem. There I can see all cards and I > can create folders and insert files, etc.
> 

Comment 7 Danny Al-Gaaf 2006-04-11 14:11:41 UTC
Please start udevmonitor and add the smartcard to the already (before start udevmonitor) connected reader and paste the output to the bug.
Comment 8 Thomas Hofstetter 2006-04-12 19:31:27 UTC
Created attachment 78112 [details]
output of udevmonitor
Comment 9 Danny Al-Gaaf 2006-04-12 20:22:13 UTC
In this case the media was mounted as /dev/sdd1. Or wasn't it? For me the events tell me the hal mount was successfull, looks like automatically mounted with subfs. Could you call cat /proc/mounts ? Is there a mount for /dev/sdd1 ?

If it wasn't mounted, please attach whole output of lshal with the smartcard inserted.
Comment 10 Thomas Hofstetter 2006-04-13 09:29:02 UTC
If I insert my card after Linux is booted it is always mounted the right way. But if the card is inside the card reader while Linux is booting it is booted as sda1 and only root can access the card.
Comment 11 Thomas Hofstetter 2006-04-13 09:31:09 UTC
Created attachment 78164 [details]
output of cat /proc/mounts if the card is inserted while booting
Comment 12 Thomas Hofstetter 2006-04-13 09:31:54 UTC
Created attachment 78167 [details]
output of cat /proc/mounts if the card is inserted after booting
Comment 13 Danny Al-Gaaf 2006-04-19 13:45:26 UTC
(In reply to comment #10)
> If I insert my card after Linux is booted it is always mounted the right way.
> But if the card is inside the card reader while Linux is booting it is booted
> as sda1 and only root can access the card.

There is no difference between the both cases in the way we mount. Only to clarify: you can only access the media as root, if the card was in the reader while boot? Can you access the media on console?

If the media was in the drive while boot are there all the time two mounts for the device in mounts (one subfs and one vfat)?
Comment 14 Thomas Hofstetter 2006-04-21 21:19:30 UTC
Yes there are all the time two mounts for the device and I can only access the media as root. With console it's the same. I only can see what is on the card but I have no authority to create anything.
Comment 15 Danny Al-Gaaf 2006-04-21 22:16:26 UTC
I don't know what's going wrong here. Could you call 'lsof | grep MOUNTPOINT'? Replace MOUNTPOINT with the related mount or with 'media'. Looks as if a root process access maybe the device and submountd can't umount and remount for you. 
Comment 16 Thomas Hofstetter 2006-04-23 14:23:53 UTC
Created attachment 79589 [details]
output of lsof | grep media
Comment 17 Thomas Hofstetter 2006-06-12 09:39:00 UTC
In SuSE 10.1 the bug is fixed
Thanks for your help
Comment 18 Danny Al-Gaaf 2006-06-12 11:11:41 UTC
Okay, if this work now for you with 10.1, I close this as WONTFIX for 10.0 
Comment 19 Ihno Krumreich 2007-06-04 16:42:36 UTC
Closed.