From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Foe9W-00031A-CE for garchives@archives.gentoo.org; Fri, 09 Jun 2006 10:23:42 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k59AMOC7023711; Fri, 9 Jun 2006 10:22:24 GMT Received: from pythagoras.zen.co.uk (pythagoras.zen.co.uk [212.23.3.140]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k59AGv1P016238 for ; Fri, 9 Jun 2006 10:16:57 GMT Received: from [82.69.83.178] (helo=desiato.digimed.co.uk) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1Foe2z-0005oF-HH for gentoo-user@lists.gentoo.org; Fri, 09 Jun 2006 10:16:57 +0000 Received: from hactar.digimed.co.uk (hactar.digimed.co.uk [192.168.1.2]) by desiato.digimed.co.uk (Postfix) with ESMTP id 56856142613B for ; Fri, 9 Jun 2006 11:16:56 +0100 (BST) Date: Fri, 9 Jun 2006 11:16:53 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] help with UDEV and USB flash drive Message-ID: <20060609111653.64a97d0c@hactar.digimed.co.uk> In-Reply-To: <200606091059.14028.ext-dirk.heinrichs@nokia.com> References: <200606090112.51693.daevid@daevid.com> <20060609093529.68dcb2fb@hactar.digimed.co.uk> <200606091059.14028.ext-dirk.heinrichs@nokia.com> Organization: Digital Media Production X-Mailer: Sylpheed-Claws 2.3.0-rc4 (GTK+ 2.8.18; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_A3Zgnrp=SdN9tbe_E8Rw1mB"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Originating-Pythagoras-IP: [82.69.83.178] X-Archives-Salt: 6b7cf172-18f3-43d1-8252-422569adc9d7 X-Archives-Hash: c6aacbb562787e60726c65ca3b987b5a --Sig_A3Zgnrp=SdN9tbe_E8Rw1mB Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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. >=20 > 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=3D=3D"usb", KERNEL=3D=3D"sd?1", SYSFS{idProduct}=3D=3D"0845", > > SYSFS{idVendor}=3D=3D"08ec", NAME=3D"gigabyte", SYMLINK=3D"%k usb/gigab= yte" >=20 > OK, here is what I do :-) >=20 > BUS=3D=3D"scsi", KERNEL=3D=3D"sd*", SYSFS{model}=3D=3D"HardDrive ",= =20 > SYSFS{rev}=3D=3D"1.11", SYSFS{vendor}=3D=3D"32MB ", SYMLINK=3D"usb/sti= ck%n" >=20 > 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. --=20 Neil Bothwick This fortune soaks up 47 times its own weight in excess memory. --Sig_A3Zgnrp=SdN9tbe_E8Rw1mB Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEiUqYum4al0N1GQMRAv0pAKCO8G8wCoofI8UN6nsVDnZ/Qc5E9wCfZHG1 bQRbPhXLt+aD3Iw/usx7KCo= =hiZb -----END PGP SIGNATURE----- --Sig_A3Zgnrp=SdN9tbe_E8Rw1mB-- -- gentoo-user@gentoo.org mailing list