You are not logged in.

#1 2008-04-06 18:53:53

thegnu
Member
From: Brooklyn, NY
Registered: 2004-05-04
Posts: 280
Website

curious thunar - autofs - udev rules behavior

I've just set up autofs and udev ruls to get my usb devices automounting, and everything automounts fine.  The only issue I'm having is that my w800 doesn't automatically show up in the thunar sidebar (but it does automount).  All other devices automount, and show up in the sidebar.
It's worth noting that my w800 memory stick is wonky as all getout, and sometimes when I plug it in, dmesg tells me:

scsi 29:0:0:0: Direct-Access     Sony Eri Memory Stick     0000 PQ: 0 ANSI: 0
sd 29:0:0:0: [sdc] 8005632 512-byte hardware sectors (4099 MB)
sd 29:0:0:0: [sdc] Write Protect is off
sd 29:0:0:0: [sdc] Mode Sense: 00 6a 00 00
sd 29:0:0:0: [sdc] Assuming drive cache: write through
sd 29:0:0:0: [sdc] 8005632 512-byte hardware sectors (4099 MB)
sd 29:0:0:0: [sdc] Write Protect is off
sd 29:0:0:0: [sdc] Mode Sense: 00 6a 00 00
sd 29:0:0:0: [sdc] Assuming drive cache: write through
 sdc:

and there's no /dev/sdc to be found.  damn thing's partitioned anyway.

Anyway, my files are as follows:
/etc/udev/rules.d/10-user.rules

BUS=="usb", ATTRS{serial}=="356554005531070_0", KERNEL=="sd?1", NAME="%k", SYMLINK+="w800", GROUP="storage"
BUS=="usb", ATTRS{serial}=="00000000-00000000-3878b387-c905fa0c-00000000", ATTR{size}=="15666600", KERNEL=="sd?1", NAME="%k", SYMLINK+="sansa", GROUP="storage"
BUS=="usb", ATTRS{serial}=="00000000-00000000-3878b387-c905fa0c-00000000", KERNEL=="sd?1", NAME="%k", SYMLINK+="sansa_card", GROUP="storage"
# Symlink USB keys
SUBSYSTEMS=="usb", ATTRS{serial}=="0000000000017D", KERNEL=="sd?", NAME="%k", SYMLINK+="shazam", GROUP="storage"
SUBSYSTEMS=="usb", KERNEL=="sd?1", NAME="%k", SYMLINK+="usbstorage", GROUP="storage"

/etc/autofs/

shazam -fstype=auto,async,nodev,nosuid,umask=000 :/dev/shazam
w800 -fstype=auto,async,nodev,nosuid,umask=000 :/dev/w800
sansa -fstype=auto,async,nodev,nosuid,umask=000 :/dev/sansa
sansa_card -fstype=auto,async,nodev,nosuid,umask=000 :/dev/sansa_card
usbstorage -fstype=auto,async,nodev,nosuid,umask=000 :/dev/usbstorage

/etc/fstab (to allow easy umounting from thunar or whereever):

/dev/shazam    /media/shazam    vfat rw,user,noauto,group,flush,quiet,nodev,nosuid,noexec,noatime,dmask=000,fmask=111    0 0
/dev/sansa    /media/sansa    vfat rw,user,noauto,group,flush,quiet,nodev,nosuid,noexec,noatime,dmask=000,fmask=111    0 0
/dev/sansa_card    /media/sansa_card    vfat rw,user,noauto,group,flush,quiet,nodev,nosuid,noexec,noatime,dmask=000,fmask=111    0 0
/dev/w800    /media/w800    vfat rw,user,noauto,group,flush,quiet,nodev,nosuid,noexec,noatime,dmask=000,fmask=111    0 0i
p
/dev/usbstorage    /media/usbstorage    vfat rw,user,noauto,group,flush,quiet,nodev,nosuid,noexec,noatime,dmask=000,fmask=111    0 0

Is there anything I appear to be doing wrong, or is it just my w800 being a crapweasel?  I like having this automounting while not having to use a DE.  I really don't use my w800 much anyway, due to the crappy memory card thing, but this is hurting my geek pride.

Thanks!


fffft!

Offline

#2 2008-04-11 03:42:04

grndrush
Member
From: Hamilton, Ontario, Canada
Registered: 2003-12-28
Posts: 136
Website

Re: curious thunar - autofs - udev rules behavior

While I have no personal experience with it, I do know that there is a pkg specifically for mounting and/or making removable media visible to thunar. It's called thunar-volman, available here:: http://archlinux.org/packages/12374/

FWIW, I got ALL the above by doing a pkg search at archlinux.org, for: thunar

Offline

Board footer

Powered by FluxBB