Gentoo Archives: gentoo-user

From: Dirk Heinrichs <ext-dirk.heinrichs@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] help with UDEV and USB flash drive
Date: Fri, 09 Jun 2006 08:45:27
Message-Id: 200606091033.12953.ext-dirk.heinrichs@nokia.com
In Reply to: [gentoo-user] help with UDEV and USB flash drive by Daevid Vincent
1 Am Freitag, 9. Juni 2006 10:12 schrieb ext Daevid Vincent:
2
3 > Can someone tell me what I am doing wrong?
4 >
5 > locutus mnt # cat /etc/udev/rules.d/local.rules
6 > # This is for my Intelligent Stick USB Memory flash drive
7 > BUS=="usb", SYSFS{serial}=="20031112223132-01", NAME="istick",
8 > MODE="0666"
9
10 BUS=="scsi" and I would also use SYMLINK="istick%n" instead of NAME. I'd
11 also guess that the SYSFS{serial} is not the one of the stick, but four
12 your USB hub.
13
14 > locutus linux # cat /etc/fstab
15 > # Intelligent Stick flash drive (UDEV)
16 > /dev/istick /mnt/istick vfat defaults,noauto,user,umask=000 0 0
17 >
18 > locutus linux # ll /dev/istick
19 > crw-rw-rw- 1 root root 21, 1 Jun 9 00:32 /dev/istick
20
21 This is a character device.
22
23 > So, why doesn't my /dev/istick work?
24 > I assume it has to do with that 'b' on /dev/sda1 and the 'c' on
25 > /dev/istick
26
27 Yes.
28
29 You should also read http://www.reactivated.net/writing_udev_rules.html.
30
31 HTH...
32
33 Dirk
34 --
35 Dirk Heinrichs | Tel: +49 (0)162 234 3408
36 Configuration Manager | Fax: +49 (0)211 47068 111
37 Capgemini Deutschland | Mail: dirk.heinrichs@×××××××××.com
38 Hambornerstraße 55 | Web: http://www.capgemini.com
39 D-40472 Düsseldorf | ICQ#: 110037733
40 GPG Public Key C2E467BB | Keyserver: www.keyserver.net