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 11:16:53 +0100 [thread overview]
Message-ID: <20060609111653.64a97d0c@hactar.digimed.co.uk> (raw)
In-Reply-To: <200606091059.14028.ext-dirk.heinrichs@nokia.com>
[-- Attachment #1: Type: text/plain, Size: 1487 bytes --]
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, you could even mount it, having one partition is as
> good as having no partition, at least for Linux.
It's not the same. A filesystem on a single partition filling the device
is not the same as a filesystem on the device itself. Both are possible,
and mountable, but not at the same time. I've just checked with with a
single partition device to be sure, it didn't work.
> > BUS=="usb", KERNEL=="sd?1", SYSFS{idProduct}=="0845",
> > SYSFS{idVendor}=="08ec", NAME="gigabyte", SYMLINK="%k usb/gigabyte"
>
> OK, here is what I do :-)
>
> BUS=="scsi", KERNEL=="sd*", SYSFS{model}=="HardDrive ",
> SYSFS{rev}=="1.11", SYSFS{vendor}=="32MB ", SYMLINK="usb/stick%n"
>
> This will give me nodes for the device itself and its partitions.
I do that for some drives, but my USB sticks are always a single
partition, so I give the name to the partition not the device. I also set
NAME and put %k in SYMLINK, because pmount uses the name to create the
directory in /media, and I want the device mounted
at /media/somethingmeaningful, not /media/sdxn.
--
Neil Bothwick
This fortune soaks up 47 times its own weight in excess memory.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2006-06-09 10:23 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
2006-06-09 8:59 ` Dirk Heinrichs
2006-06-09 10:16 ` Neil Bothwick [this message]
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=20060609111653.64a97d0c@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