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", SYSFS{serial}=="20031112223132-01", NAME="istick",
> MODE="0666"

This should be in /etc/udev/rules.d/10-local.rules, so it is processed
before the default rules, but that's not the problem here.

> locutus linux # cat /etc/fstab
> # Intelligent Stick flash drive (UDEV)
> /dev/istick  /mnt/istick  vfat defaults,noauto,user,umask=000  0 0
> 
> locutus linux # ll /dev/istick
> crw-rw-rw- 1 root root 21, 1 Jun  9 00:32 /dev/istick
> 
> locutus linux # mount /dev/istick
> mount: /dev/istick is not a block device

That's because you are trying to mount the whole device, not the
partition.

> locutus linux # ll /dev/sda1
> brw-rw---- 1 root disk 8, 1 Jun  9 00:32 /dev/sda1
> 
> locutus linux # mount -t vfat /dev/sda1 /mnt/istick/
> locutus linux # ls /mnt/istick/
> MIDI Files  pwsafe.key

Now you are mounting the partition.

> 
> So, why doesn't my /dev/istick work? 
> I assume it has to do with that 'b' on /dev/sda1 and the 'c'
> on /dev/istick

Yes, it's not a block device. Change the NAME part of the rule to
NAME="istick%n" and mount /dev/istick1. Or just set up a rule to match
the partition. This is the sort of thing I use for a USB stick

BUS=="usb",  KERNEL=="sd?1", SYSFS{idProduct}=="0845", SYSFS{idVendor}=="08ec", 
NAME="gigabyte", SYMLINK="%k usb/gigabyte"

I don't use fstab, but let KDE/HAL/pmount mount it on /media/gigabyte.
But I could put /dev/gigabyte in fstab if I didn't want automounting.


-- 
Neil Bothwick

Any sufficiently advanced bug is indistinguishable from a feature.

Attachment: signature.asc
Description: PGP signature

Reply via email to