[gentoo-user] help with UDEV and USB flash drive

2006-06-09 Thread Daevid Vincent
I've been googling and hacking at this for about three hours now. Can someone tell me what I am doing wrong? locutus mnt # cat /etc/udev/rules.d/local.rules # This is for my Intelligent Stick USB Memory flash drive BUS==usb, SYSFS{serial}==20031112223132-01, NAME=istick, MODE=0666 locutus

Re: [gentoo-user] help with UDEV and USB flash drive

2006-06-09 Thread Dirk Heinrichs
Am Freitag, 9. Juni 2006 10:12 schrieb ext Daevid Vincent: Can someone tell me what I am doing wrong? locutus mnt # cat /etc/udev/rules.d/local.rules # This is for my Intelligent Stick USB Memory flash drive BUS==usb, SYSFS{serial}==20031112223132-01, NAME=istick, MODE=0666 BUS==scsi and I

Re: [gentoo-user] help with UDEV and USB flash drive

2006-06-09 Thread Neil Bothwick
On Fri, 9 Jun 2006 01:12:50 -0700, Daevid Vincent wrote: I've been googling and hacking at this for about three hours now. Can someone tell me what I am doing wrong? locutus mnt # cat /etc/udev/rules.d/local.rules # This is for my Intelligent Stick USB Memory flash drive BUS==usb,

Re: [gentoo-user] help with UDEV and USB flash drive

2006-06-09 Thread Dirk Heinrichs
Am Freitag, 9. Juni 2006 10:35 schrieb ext Neil Bothwick: That's because you are trying to mount the whole device, not the partition. Even the whole device should be a block device, shouldn't it? And if it had a filesystem, you could even mount it, having one partition is as good as having

Re: [gentoo-user] help with UDEV and USB flash drive

2006-06-09 Thread Neil Bothwick
On Fri, 9 Jun 2006 10:59:13 +0200, Dirk Heinrichs wrote: That's because you are trying to mount the whole device, not the partition. Even the whole device should be a block device, shouldn't it? Yes it should, it's podd that is appears as a character device. And if it had a filesystem,

Re: [gentoo-user] help with UDEV and USB flash drive

2006-06-09 Thread Dirk Heinrichs
Am Freitag, 9. Juni 2006 12:16 schrieb ext Neil Bothwick: On Fri, 9 Jun 2006 10:59:13 +0200, Dirk Heinrichs wrote: That's because you are trying to mount the whole device, not the partition. Even the whole device should be a block device, shouldn't it? Yes it should, it's podd that is

Re: [gentoo-user] help with UDEV and USB flash drive

2006-06-09 Thread Dirk Heinrichs
Am Freitag, 9. Juni 2006 10:12 schrieb ext Daevid Vincent: Another hint: locutus mnt # cat /etc/udev/rules.d/local.rules # This is for my Intelligent Stick USB Memory flash drive BUS==usb, SYSFS{serial}==20031112223132-01, NAME=istick, MODE=0666 locutus linux # cat /etc/fstab #

RE: [gentoo-user] help with UDEV and USB flash drive

2006-06-09 Thread Daevid Vincent
Thanks everybody that was the trick. I settled upon this: BUS==usb, KERNEL==sd?1, SYSFS{idVendor}==0ef5, SYSFS{idProduct}==2202, SYMLINK=istick%n, MODE=0666 And for my /etc/fstab entry: /dev/istick1 /mnt/istick vfat defaults,noauto,user,umask=000 0 0 Now the second part of this. SOMETIMES,

Re: [gentoo-user] help with UDEV and USB flash drive

2006-06-09 Thread znx
On 09/06/06, Daevid Vincent [EMAIL PROTECTED] wrote: Also related, is there an easy way to make this stick auto un/mount upon removal/insertion respectively? Try looking into autofs .. simple to setup and works really well for me with my USB/CD-ROM devices. Mark -- gentoo-user@gentoo.org

Re: [gentoo-user] help with UDEV and USB flash drive

2006-06-09 Thread Richard Fish
On 6/9/06, Daevid Vincent [EMAIL PROTECTED] wrote: Thanks everybody that was the trick. I settled upon this: BUS==usb, KERNEL==sd?1, SYSFS{idVendor}==0ef5, SYSFS{idProduct}==2202, SYMLINK=istick%n, MODE=0666 One problem with this. Udev will apply all matching rules until it finds one with a

RE: [gentoo-user] help with UDEV and USB flash drive

2006-06-09 Thread neil
-Original Message- From: Daevid Vincent [EMAIL PROTECTED] Subj: RE: [gentoo-user] help with UDEV and USB flash drive Date: Fri 9 Jun 2006 20:32 Size: 848 bytes To: gentoo-user@lists.gentoo.org Now the second part of this. SOMETIMES, when I plug the stick in (I assume that's when

Re: [gentoo-user] help with UDEV and USB flash drive

2006-06-09 Thread Daniel Drake
Richard Fish wrote: One problem with this. Udev will apply all matching rules until it finds one with a NAME entry. So you probably want MODE:=0666 to prevent any later rules from overwriting your mode. This isn't entirely true, udev doesn't stop at NAME any more. It stops at the end of the

Re: [gentoo-user] help with UDEV and USB flash drive

2006-06-09 Thread Richard Fish
On 6/9/06, Daniel Drake [EMAIL PROTECTED] wrote: Richard Fish wrote: One problem with this. Udev will apply all matching rules until it finds one with a NAME entry. So you probably want MODE:=0666 to prevent any later rules from overwriting your mode. This isn't entirely true, udev doesn't