1 |
On Fri, 9 Jun 2006 01:12:50 -0700, Daevid Vincent wrote: |
2 |
|
3 |
> I've been googling and hacking at this for about three hours now. |
4 |
> |
5 |
> Can someone tell me what I am doing wrong? |
6 |
> |
7 |
> locutus mnt # cat /etc/udev/rules.d/local.rules |
8 |
> # This is for my Intelligent Stick USB Memory flash drive |
9 |
> BUS=="usb", SYSFS{serial}=="20031112223132-01", NAME="istick", |
10 |
> MODE="0666" |
11 |
|
12 |
This should be in /etc/udev/rules.d/10-local.rules, so it is processed |
13 |
before the default rules, but that's not the problem here. |
14 |
|
15 |
> locutus linux # cat /etc/fstab |
16 |
> # Intelligent Stick flash drive (UDEV) |
17 |
> /dev/istick /mnt/istick vfat defaults,noauto,user,umask=000 0 0 |
18 |
> |
19 |
> locutus linux # ll /dev/istick |
20 |
> crw-rw-rw- 1 root root 21, 1 Jun 9 00:32 /dev/istick |
21 |
> |
22 |
> locutus linux # mount /dev/istick |
23 |
> mount: /dev/istick is not a block device |
24 |
|
25 |
That's because you are trying to mount the whole device, not the |
26 |
partition. |
27 |
|
28 |
> locutus linux # ll /dev/sda1 |
29 |
> brw-rw---- 1 root disk 8, 1 Jun 9 00:32 /dev/sda1 |
30 |
> |
31 |
> locutus linux # mount -t vfat /dev/sda1 /mnt/istick/ |
32 |
> locutus linux # ls /mnt/istick/ |
33 |
> MIDI Files pwsafe.key |
34 |
|
35 |
Now you are mounting the partition. |
36 |
|
37 |
> |
38 |
> So, why doesn't my /dev/istick work? |
39 |
> I assume it has to do with that 'b' on /dev/sda1 and the 'c' |
40 |
> on /dev/istick |
41 |
|
42 |
Yes, it's not a block device. Change the NAME part of the rule to |
43 |
NAME="istick%n" and mount /dev/istick1. Or just set up a rule to match |
44 |
the partition. This is the sort of thing I use for a USB stick |
45 |
|
46 |
BUS=="usb", KERNEL=="sd?1", SYSFS{idProduct}=="0845", SYSFS{idVendor}=="08ec", NAME="gigabyte", SYMLINK="%k usb/gigabyte" |
47 |
|
48 |
I don't use fstab, but let KDE/HAL/pmount mount it on /media/gigabyte. |
49 |
But I could put /dev/gigabyte in fstab if I didn't want automounting. |
50 |
|
51 |
|
52 |
-- |
53 |
Neil Bothwick |
54 |
|
55 |
Any sufficiently advanced bug is indistinguishable from a feature. |