Re: sd card not detected
On 11/11/2013 07:54 PM, Alex Mestiashvili wrote: > On 11/02/2013 01:51 PM, Linux-Fan wrote: >> I have the same problem here -- since the upgrade from Squeeze to Wheezy >> when the HAL was removed, device nodes for CF and SD cards are not >> automatically created after insertion. Reconnecting the cardreader helps >> here as well, but I did not want to always reconnect the cardreader and >> found the following workaround: >> >> http://marc.info/?l=linux-usb&m=121459435621262&q=p3 >> >> This C program allows you to "reset" a specific USB device which will >> behave similar to reconnecting the cardreader in this case. Ater >> inserting a SD-card, just use $ ./usbreset /dev/sde (if the card is >> normally /dev/sde1) to make the device nodes available. >> >> If you find a better solution, I would also be interested in hearing of >> it. Also, the problem does not seem to be specific to a desktop >> environment or even Kernel version: I am running "Linux 3.2.0-4-amd64" >> and no desktop environment and get exactly the same behavior. >> >> HTH >> Linux-Fan >> > > Hi Linux-Fan, > > I didn't have much time to investigate the problem further but the > problem is solved by udisks-daemon, udisks package. > for some reason It doesn't run on boot in my case, but running udisks > --enumerate or something similar triggers the daemon's start and it > starts to poll the devices. > > Regards, > Alex Hi Alex, thanks for posting this back to the list: It works here as well. Even better, I believe I might have found the reason for the daemon not being automatically started. From $ man udisks-daemon: DESCRIPTION udisks-daemon provides the org.freedesktop.UDisks service on the system message bus. Users or administrators should never need to start this daemon as it will be automatically started by dbus-daemon(1) whenever an application calls into the org.freedesktop.UDisks service. Obviously, there needs to be an application asking for the "org.freedesktop.UDisks service". On my (and likely your system as well) there is no such application, hence udisks-daemon is not started. I have now simply added the command you suggested $ udisks --enumerate to my .fluxbox/startup which should resolve the issue. Thanks again for sharing the solution Linux-Fan -- http://masysma.ohost.de/ signature.asc Description: OpenPGP digital signature
Re: sd card not detected
On 11/02/2013 01:51 PM, Linux-Fan wrote: On 11/01/2013 07:35 PM, Alex Mestiashvili wrote: Hi All, A card inserted into card reader is not mounted automatically and even doesn't shown up in the dmesg output, but if I switch off and on the monitor with cardreader or run lshw the card appears and is mounted. the same happens with the second card reader in the pc. ( one is in monitor, second in the computer itself) other usb devices work fine. The hci/usb modules: lsmod | egrep "hci|usb_storage" usb_storage39406 0 ehci_pci 12432 0 ohci_hcd 22150 0 ehci_hcd 35820 1 ehci_pci scsi_mod 131001 5 sg,usb_storage,libata,sd_mod,sr_mod usbcore 110348 8 snd_usb_audio,uvcvideo,usb_storage,ohci_hcd,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid The system is jessie, kernel: 3.10-3-686-pae Something must be missing, but I really wonder what, as far as I understand hardware detection is kind of kernel feature.. Thank you, Alex I have the same problem here -- since the upgrade from Squeeze to Wheezy when the HAL was removed, device nodes for CF and SD cards are not automatically created after insertion. Reconnecting the cardreader helps here as well, but I did not want to always reconnect the cardreader and found the following workaround: http://marc.info/?l=linux-usb&m=121459435621262&q=p3 This C program allows you to "reset" a specific USB device which will behave similar to reconnecting the cardreader in this case. Ater inserting a SD-card, just use $ ./usbreset /dev/sde (if the card is normally /dev/sde1) to make the device nodes available. If you find a better solution, I would also be interested in hearing of it. Also, the problem does not seem to be specific to a desktop environment or even Kernel version: I am running "Linux 3.2.0-4-amd64" and no desktop environment and get exactly the same behavior. HTH Linux-Fan Hi Linux-Fan, I didn't have much time to investigate the problem further but the problem is solved by udisks-daemon, udisks package. for some reason It doesn't run on boot in my case, but running udisks --enumerate or something similar triggers the daemon's start and it starts to poll the devices. Regards, Alex -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/528127d3.5050...@biotec.tu-dresden.de
Re: sd card not detected
On 11/02/2013 05:22 PM, Neal Murphy wrote: On Saturday, November 02, 2013 06:55:39 AM Alex Mestiashvili wrote: I use xfce4 4.10, but in this case I think it has nothing to do with the problem. The problem is that the device is not detected by the kernel . it is not visible in the dmesg output and not visible in the output of fdisk -l. But other usb devices work fine - a usb stick is detected and mounted automatically. ls -l /dev/sd* brw-rw 1 root floppy 8, 112 Nov 2 11:32 /dev/sdh /dev/sdh -is the cardreader device. after inserting a sd card nothing happens - /dev/sdh1 doesn't appear, but it appears if I run fdisk -l /dev/sdh for example. It appears as though udev is working correctly. If sdh1 appears when you plug in the reader with the card already inesrted, udev is definitely working. What appears not to be working is the daemon that periodically opens and closes USB devices in the event that a medium was plugged in (used to be hald, I think). Remember that USB1 and USB2 are master/slave; the host end must initiate and perform all communication. If the daemon is malfunctioning, the system will not detect cards inserted into readers: the USB device cannot autonomously notify the host of the change in status. The daemon works for me (64-bit Wheezy). (Verifying ... yes, it does work.) thanks for the details, which daemon ? You could probably simulate the daemon by running: while true; do # Read a block; ignore failures dd if=/dev/sdh of=/dev/null bs=512 count=1 sleep 3 done >/dev/null 2>&1 or even: while true; do # Open the device; close it on success exec 3/dev/null 2>&1 Neither is optimal. Such a script should really look for non-partition USB additions to /dev/disk/by-id. When found, it should periodically open/close the device until success or until the device is deleted. Then start over. Now the situation is more clear. Thanks. Alex -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/5277a2f6.40...@biotec.tu-dresden.de
Re: sd card not detected
On Sat, 02 Nov 2013, Alex Mestiashvili wrote: > On 11/02/2013 04:18 AM, Patrick Bartek wrote: > > On Fri, 01 Nov 2013, Alex Mestiashvili wrote: > > > >> Hi All, > >> > >> A card inserted into card reader is not mounted automatically and > >> even doesn't shown up in the dmesg output, but if I switch off and > >> on the monitor with cardreader or run lshw the card appears and is > >> mounted. > >> > >> the same happens with the second card reader in the pc. ( one is in > >> monitor, second in the computer itself) > >> > >> other usb devices work fine. > >> > >> The hci/usb modules: > >> > >> lsmod | egrep "hci|usb_storage" > >> usb_storage39406 0 > >> ehci_pci 12432 0 > >> ohci_hcd 22150 0 > >> ehci_hcd 35820 1 ehci_pci > >> scsi_mod 131001 5 sg,usb_storage,libata,sd_mod,sr_mod > >> usbcore 110348 8 > >> snd_usb_audio,uvcvideo,usb_storage,ohci_hcd,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid > >> > >> The system is jessie, kernel: 3.10-3-686-pae > >> > >> Something must be missing, but I really wonder what, as far as I > >> understand hardware detection is kind of kernel feature.. > > Usually your desktop environment, whichever one you use, has the > > utility, scripts, etc. that mount (and unmount) such devices > > automatically. You didn't say which one you are using. So, if you > > do have a desktop, something failed to be install that does this > > mounting. What that may be I couldn't say without more info on your > > system. > > > > I don't run a desktop at all on my 64-bit Wheezy system. Just a > > window manager (Openbox), LXPanel and Debian Menu. I had to write > > my own udev rules to mount USB thumb drives, SD cards, etc. You > > might look into that. Works just fine as soon as you have those > > scripts. > > > > B > > I use xfce4 4.10, but in this case I think it has nothing to do with > the problem. > The problem is that the device is not detected by the kernel . Check the XFCE web site or the Debian Repos for "auto" mounting addons for XFCE. Maybe, when you installed XFCE something didn't get installed. > it is not visible in the dmesg output and not visible in the output > of fdisk -l. > But other usb devices work fine - a usb stick is detected and mounted > automatically. > > ls -l /dev/sd* > > brw-rw 1 root floppy 8, 112 Nov 2 11:32 /dev/sdh > > /dev/sdh -is the cardreader device. > > after inserting a sd card nothing happens - /dev/sdh1 doesn't appear, > but it appears if I run fdisk -l /dev/sdh for example. Cardreaders work differently than USB drives and thumbdrives. Try this: With an EXTERNAL cardreader that is UNPLUGGED, insert the SD card, then plug in the cardreader. Does the SD card come up? Either recognized or mounted? Of course, this technique is unsuitable for internal cardreaders. > So I think it is somehow related to the cardreader, but because I > have two of them in the same box and both don't work, there should > be something else. > > How it is implemented in the current Linux systems ? is there a > daemon which checks devices from time to time or is it interrupt > driven or ... ? Check to see if HAL or UDEV are set up. It should be UDEV which replaced HAL. Also, look in /etc. Is there a udev directory? If there is, is there a rules.d directory under it? And if so, what rules are in it? > it shouldn't be much different from the other usb devices I think. But it is. Cardreaders like floppy and CD/DVD drives need to be polled so the system knows when a card is inserted. All the system sees otherwise is the cardreader. Take a look at some automounting utilities that work with cardreaders. Take a look at udisks, but there are others. And as I said before, investigate writing udev rules. B -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20131103111847.42ed1...@debian7.boseck208.net
Re: sd card not detected
On Saturday, November 02, 2013 06:55:39 AM Alex Mestiashvili wrote: > I use xfce4 4.10, but in this case I think it has nothing to do with the > problem. > The problem is that the device is not detected by the kernel . > > it is not visible in the dmesg output and not visible in the output of > fdisk -l. > But other usb devices work fine - a usb stick is detected and mounted > automatically. > > ls -l /dev/sd* > > brw-rw 1 root floppy 8, 112 Nov 2 11:32 /dev/sdh > > /dev/sdh -is the cardreader device. > > after inserting a sd card nothing happens - /dev/sdh1 doesn't appear, > but it appears if I run fdisk -l /dev/sdh for example. It appears as though udev is working correctly. If sdh1 appears when you plug in the reader with the card already inesrted, udev is definitely working. What appears not to be working is the daemon that periodically opens and closes USB devices in the event that a medium was plugged in (used to be hald, I think). Remember that USB1 and USB2 are master/slave; the host end must initiate and perform all communication. If the daemon is malfunctioning, the system will not detect cards inserted into readers: the USB device cannot autonomously notify the host of the change in status. The daemon works for me (64-bit Wheezy). (Verifying ... yes, it does work.) You could probably simulate the daemon by running: while true; do # Read a block; ignore failures dd if=/dev/sdh of=/dev/null bs=512 count=1 sleep 3 done >/dev/null 2>&1 or even: while true; do # Open the device; close it on success exec 3/dev/null 2>&1 Neither is optimal. Such a script should really look for non-partition USB additions to /dev/disk/by-id. When found, it should periodically open/close the device until success or until the device is deleted. Then start over. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201311021222.26166.neal.p.mur...@alum.wpi.edu
Re: sd card not detected
On 11/01/2013 07:35 PM, Alex Mestiashvili wrote: > Hi All, > > A card inserted into card reader is not mounted automatically and even > doesn't shown up in the dmesg output, but if I switch off and on the > monitor with cardreader or run lshw the card appears and is mounted. > > the same happens with the second card reader in the pc. ( one is in > monitor, second in the computer itself) > > other usb devices work fine. > > The hci/usb modules: > > lsmod | egrep "hci|usb_storage" > usb_storage39406 0 > ehci_pci 12432 0 > ohci_hcd 22150 0 > ehci_hcd 35820 1 ehci_pci > scsi_mod 131001 5 sg,usb_storage,libata,sd_mod,sr_mod > usbcore 110348 8 > snd_usb_audio,uvcvideo,usb_storage,ohci_hcd,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid > > The system is jessie, kernel: 3.10-3-686-pae > > Something must be missing, but I really wonder what, as far as I > understand hardware detection is kind of kernel feature.. > > Thank you, > Alex I have the same problem here -- since the upgrade from Squeeze to Wheezy when the HAL was removed, device nodes for CF and SD cards are not automatically created after insertion. Reconnecting the cardreader helps here as well, but I did not want to always reconnect the cardreader and found the following workaround: http://marc.info/?l=linux-usb&m=121459435621262&q=p3 This C program allows you to "reset" a specific USB device which will behave similar to reconnecting the cardreader in this case. Ater inserting a SD-card, just use $ ./usbreset /dev/sde (if the card is normally /dev/sde1) to make the device nodes available. If you find a better solution, I would also be interested in hearing of it. Also, the problem does not seem to be specific to a desktop environment or even Kernel version: I am running "Linux 3.2.0-4-amd64" and no desktop environment and get exactly the same behavior. HTH Linux-Fan -- http://masysma.ohost.de/ signature.asc Description: OpenPGP digital signature
Re: sd card not detected
On 11/02/2013 04:18 AM, Patrick Bartek wrote: On Fri, 01 Nov 2013, Alex Mestiashvili wrote: Hi All, A card inserted into card reader is not mounted automatically and even doesn't shown up in the dmesg output, but if I switch off and on the monitor with cardreader or run lshw the card appears and is mounted. the same happens with the second card reader in the pc. ( one is in monitor, second in the computer itself) other usb devices work fine. The hci/usb modules: lsmod | egrep "hci|usb_storage" usb_storage39406 0 ehci_pci 12432 0 ohci_hcd 22150 0 ehci_hcd 35820 1 ehci_pci scsi_mod 131001 5 sg,usb_storage,libata,sd_mod,sr_mod usbcore 110348 8 snd_usb_audio,uvcvideo,usb_storage,ohci_hcd,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid The system is jessie, kernel: 3.10-3-686-pae Something must be missing, but I really wonder what, as far as I understand hardware detection is kind of kernel feature.. Usually your desktop environment, whichever one you use, has the utility, scripts, etc. that mount (and unmount) such devices automatically. You didn't say which one you are using. So, if you do have a desktop, something failed to be install that does this mounting. What that may be I couldn't say without more info on your system. I don't run a desktop at all on my 64-bit Wheezy system. Just a window manager (Openbox), LXPanel and Debian Menu. I had to write my own udev rules to mount USB thumb drives, SD cards, etc. You might look into that. Works just fine as soon as you have those scripts. B I use xfce4 4.10, but in this case I think it has nothing to do with the problem. The problem is that the device is not detected by the kernel . it is not visible in the dmesg output and not visible in the output of fdisk -l. But other usb devices work fine - a usb stick is detected and mounted automatically. ls -l /dev/sd* brw-rw 1 root floppy 8, 112 Nov 2 11:32 /dev/sdh /dev/sdh -is the cardreader device. after inserting a sd card nothing happens - /dev/sdh1 doesn't appear, but it appears if I run fdisk -l /dev/sdh for example. So I think it is somehow related to the cardreader, but because I have two of them in the same box and both don't work, there should be something else. How it is implemented in the current Linux systems ? is there a daemon which checks devices from time to time or is it interrupt driven or ... ? it shouldn't be much different from the other usb devices I think. Thanks, Alex -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/5274da2b.4000...@biotec.tu-dresden.de
Re: sd card not detected
On Fri, 01 Nov 2013, Alex Mestiashvili wrote: > Hi All, > > A card inserted into card reader is not mounted automatically and > even doesn't shown up in the dmesg output, but if I switch off and on > the monitor with cardreader or run lshw the card appears and is > mounted. > > the same happens with the second card reader in the pc. ( one is in > monitor, second in the computer itself) > > other usb devices work fine. > > The hci/usb modules: > > lsmod | egrep "hci|usb_storage" > usb_storage39406 0 > ehci_pci 12432 0 > ohci_hcd 22150 0 > ehci_hcd 35820 1 ehci_pci > scsi_mod 131001 5 sg,usb_storage,libata,sd_mod,sr_mod > usbcore 110348 8 > snd_usb_audio,uvcvideo,usb_storage,ohci_hcd,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid > > The system is jessie, kernel: 3.10-3-686-pae > > Something must be missing, but I really wonder what, as far as I > understand hardware detection is kind of kernel feature.. Usually your desktop environment, whichever one you use, has the utility, scripts, etc. that mount (and unmount) such devices automatically. You didn't say which one you are using. So, if you do have a desktop, something failed to be install that does this mounting. What that may be I couldn't say without more info on your system. I don't run a desktop at all on my 64-bit Wheezy system. Just a window manager (Openbox), LXPanel and Debian Menu. I had to write my own udev rules to mount USB thumb drives, SD cards, etc. You might look into that. Works just fine as soon as you have those scripts. B -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20131101201849.10f5f...@debian7.boseck208.net
sd card not detected
Hi All, A card inserted into card reader is not mounted automatically and even doesn't shown up in the dmesg output, but if I switch off and on the monitor with cardreader or run lshw the card appears and is mounted. the same happens with the second card reader in the pc. ( one is in monitor, second in the computer itself) other usb devices work fine. The hci/usb modules: lsmod | egrep "hci|usb_storage" usb_storage39406 0 ehci_pci 12432 0 ohci_hcd 22150 0 ehci_hcd 35820 1 ehci_pci scsi_mod 131001 5 sg,usb_storage,libata,sd_mod,sr_mod usbcore 110348 8 snd_usb_audio,uvcvideo,usb_storage,ohci_hcd,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid The system is jessie, kernel: 3.10-3-686-pae Something must be missing, but I really wonder what, as far as I understand hardware detection is kind of kernel feature.. Thank you, Alex -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/5273f479.1030...@biotec.tu-dresden.de