You are not logged in.

#1 2010-07-15 09:31:15

lustikus
Member
Registered: 2009-11-10
Posts: 262

udev automount rules and sd cards

Hi

I use the udev automount rule (the first one) from the arch wiki:  http://wiki.archlinux.org/index.php/Ude … SB_devices

it works fine for usb sticks and it also mounts sd cards in my card reader, but it does not unmount them.

usb sticks are unmounted, sd cards not. both are /dev/sdx devices.

thanks for any help

Offline

#2 2010-07-15 09:37:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: udev automount rules and sd cards

Offline

#3 2010-07-15 10:08:08

lustikus
Member
Registered: 2009-11-10
Posts: 262

Re: udev automount rules and sd cards

I don't think I can use these rules as my sd device shows up as /dev/sdx  not as /dev/mmcblk

Offline

#4 2010-07-15 10:28:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: udev automount rules and sd cards

This

# Get a label if present, otherwise specify one
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"

is "missing" from the udev rules for SD cards. Maybe try removing those lines <shrugs>

Card readers may be tricky.  But what is the error anyway? Maybe they're just slower and take more time to sync? How do you know they're not unmounted?

Offline

#5 2010-07-15 10:46:57

lustikus
Member
Registered: 2009-11-10
Posts: 262

Re: udev automount rules and sd cards

the labelling part is fine, directories are created correctly.

I know that they're not unmounted because the mount directory in /media is still present and I can unmount them manually.

Offline

Board footer

Powered by FluxBB