From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] help with UDEV and USB flash drive
Date: Fri, 9 Jun 2006 09:35:29 +0100 [thread overview]
Message-ID: <20060609093529.68dcb2fb@hactar.digimed.co.uk> (raw)
In-Reply-To: <200606090112.51693.daevid@daevid.com>
[-- Attachment #1: Type: text/plain, Size: 1866 bytes --]
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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2006-06-09 8:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-09 8:12 [gentoo-user] help with UDEV and USB flash drive Daevid Vincent
2006-06-09 8:33 ` Dirk Heinrichs
2006-06-09 8:35 ` Neil Bothwick [this message]
2006-06-09 8:59 ` Dirk Heinrichs
2006-06-09 10:16 ` Neil Bothwick
2006-06-09 11:15 ` Dirk Heinrichs
2006-06-09 19:21 ` Daevid Vincent
2006-06-09 19:30 ` znx
2006-06-09 19:50 ` Richard Fish
2006-06-09 20:54 ` Daniel Drake
2006-06-09 23:49 ` Richard Fish
2006-06-09 11:45 ` Dirk Heinrichs
-- strict thread matches above, loose matches on Subject: below --
2006-06-09 20:39 neil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060609093529.68dcb2fb@hactar.digimed.co.uk \
--to=neil@digimed.co.uk \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox