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 1Focec-0002VE-Va for garchives@archives.gentoo.org; Fri, 09 Jun 2006 08:47:43 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k598jfK9027882; Fri, 9 Jun 2006 08:45:41 GMT Received: from rutherford.zen.co.uk (rutherford.zen.co.uk [212.23.3.142]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k598ZYrm022862 for ; Fri, 9 Jun 2006 08:35:34 GMT Received: from [82.69.83.178] (helo=desiato.digimed.co.uk) by rutherford.zen.co.uk with esmtp (Exim 4.34) id 1FocSr-0007OP-OI for gentoo-user@lists.gentoo.org; Fri, 09 Jun 2006 08:35:33 +0000 Received: from hactar.digimed.co.uk (hactar.digimed.co.uk [192.168.1.2]) by desiato.digimed.co.uk (Postfix) with ESMTP id 9D78014248D1 for ; Fri, 9 Jun 2006 09:35:32 +0100 (BST) Date: Fri, 9 Jun 2006 09:35:29 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] help with UDEV and USB flash drive Message-ID: <20060609093529.68dcb2fb@hactar.digimed.co.uk> In-Reply-To: <200606090112.51693.daevid@daevid.com> References: <200606090112.51693.daevid@daevid.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_3q11r6lRBC/XySB5ARUuf43"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Originating-Rutherford-IP: [82.69.83.178] X-Archives-Salt: 2c37d31e-3928-4084-8985-81ea54551c93 X-Archives-Hash: beac7a9dea69be17cf4e932a1f3d14ee --Sig_3q11r6lRBC/XySB5ARUuf43 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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.=20 >=20 > Can someone tell me what I am doing wrong? >=20 > locutus mnt # cat /etc/udev/rules.d/local.rules > # This is for my Intelligent Stick USB Memory flash drive > BUS=3D=3D"usb", SYSFS{serial}=3D=3D"20031112223132-01", NAME=3D"istick", > MODE=3D"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=3D000 0 0 >=20 > locutus linux # ll /dev/istick > crw-rw-rw- 1 root root 21, 1 Jun 9 00:32 /dev/istick >=20 > 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 >=20 > locutus linux # mount -t vfat /dev/sda1 /mnt/istick/ > locutus linux # ls /mnt/istick/ > MIDI Files pwsafe.key Now you are mounting the partition. >=20 > So, why doesn't my /dev/istick work?=20 > 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=3D"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=3D=3D"usb", KERNEL=3D=3D"sd?1", SYSFS{idProduct}=3D=3D"0845", SYSFS{id= Vendor}=3D=3D"08ec", NAME=3D"gigabyte", SYMLINK=3D"%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. --=20 Neil Bothwick Any sufficiently advanced bug is indistinguishable from a feature. --Sig_3q11r6lRBC/XySB5ARUuf43 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEiTLUum4al0N1GQMRAm8pAKCv4SkSMxqWFwMW8NYD6B0myWAlogCdGegh vlorKmfh9ksW4D2P5tOkEjc= =ISpC -----END PGP SIGNATURE----- --Sig_3q11r6lRBC/XySB5ARUuf43-- -- gentoo-user@gentoo.org mailing list