SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Dear people,
The device notifier of the KDE desktop finds al devices that i have used (cd, dvd, usb disk)
except the sd card.
The `fdisk -l` command does see the card and it is also no problem to mount it manually.
`sudo mount -t vfat /dev/mmcblk0p1 /home/neljor/Pictures`
Would like to see it appear automatically in the device notifier with a pop-up as the other devices do.
For udev/desktop "automatic" mounting to work, the device in question needs to be seen as removable.
Monitor the kernel and udev output when you first plug in the SD Card...
Code:
dmesg -w
Code:
udevadm monitor
Use the 'udevadm info' command to obtain the device attributes. For example (/dev/sdd)...
Code:
udevadm info -a -p /sys/block/sdd
Thank you Ferrari!
Output `dmesg -w`:
[16817.205922] mmc0: new high speed SDHC card at address 1234
[16817.206767] mmcblk0: mmc0:1234 SA16G 14.5 GiB
[16817.209601] mmcblk0: p1
Looking for the device attributes, is it classed as a removable device etc. Upload the complete output to https://pastebin.com/ and post the link to it here. Perhaps a custom udev rule is needed to get it handled appropriately.
Looking for the device attributes, is it classed as a removable device etc. Upload the complete output to https://pastebin.com/ and post the link to it here. Perhaps a custom udev rule is needed to get it handled appropriately.
The device notifier of the KDE desktop finds al devices that i have used (cd, dvd, usb disk)
except the sd card.
Just a thought - did you check the device notifier settings to make sure that new devices can be automatically mounted?
Assuming that's not the issue here, then read on...
There are rules in /usr/lib/udev/rules.d/80-udisks2.rules that are supposed to help identify such SD card devices (amongst others), and in particular I would have thought this rule would match against your particular device...
Code:
# TODO: figure out if the drive supports SD and SDHC and what the current
# kind of media is - right now we just assume SD
KERNEL=="mmcblk[0-9]", SUBSYSTEMS=="mmc", ENV{DEVTYPE}=="disk", ENV{ID_DRIVE_FLASH_SD}="1", ENV{ID_DRIVE_MEDIA_FLASH_SD}="1"
In any case, the device attribute output you shared means that other suitable custom rule matching is possible. For example...
Just a thought - did you check the device notifier settings to make sure that new devices can be automatically mounted?
Assuming that's not the issue here, then read on...
There are rules in /usr/lib/udev/rules.d/80-udisks2.rules that are supposed to help identify such SD card devices (amongst others), and in particular I would have thought this rule would match against your particular device...
Code:
# TODO: figure out if the drive supports SD and SDHC and what the current
# kind of media is - right now we just assume SD
KERNEL=="mmcblk[0-9]", SUBSYSTEMS=="mmc", ENV{DEVTYPE}=="disk", ENV{ID_DRIVE_FLASH_SD}="1", ENV{ID_DRIVE_MEDIA_FLASH_SD}="1"
In any case, the device attribute output you shared means that other suitable custom rule matching is possible. For example...
One question - did you remove (or at least comment out) the fstab entry for this device before testing with the notifier? Udisks2 will ignore the device in question if the entry exists. Please disregard if you have no such entry added.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.