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: signature.asc
Description: PGP signature

Reply via email to