From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RHvuu-0001Rg-Tr for garchives@archives.gentoo.org; Sun, 23 Oct 2011 11:08:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1ED9C21C112; Sun, 23 Oct 2011 11:08:28 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id 6F2A021C10D for ; Sun, 23 Oct 2011 11:07:30 +0000 (UTC) Received: from digimed.co.uk (yooden.digimed.co.uk [192.168.1.6]) by mail.digimed.co.uk (Postfix) with ESMTPSA id 68215803FB for ; Sun, 23 Oct 2011 12:07:29 +0100 (BST) Date: Sun, 23 Oct 2011 12:07:23 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [SOLVED] Balky mounting of external devices Message-ID: <20111023120723.489206dd@digimed.co.uk> In-Reply-To: <20111023033845.GA30216@waltdnes.org> References: <20111022000321.GA26680@waltdnes.org> <20111022212150.2cc8ebe6@digimed.co.uk> <20111023033845.GA30216@waltdnes.org> Organization: Digital Media Production X-Mailer: Claws Mail 3.7.10cvs42 (GTK+ 2.24.7; 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@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/D_+u=YPj33y6qWUb=VCLTQy"; protocol="application/pgp-signature" X-Archives-Salt: X-Archives-Hash: 0b4b66829b6898078af30c7a34bd6264 --Sig_/D_+u=YPj33y6qWUb=VCLTQy Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 22 Oct 2011 23:38:45 -0400, Walter Dnes wrote: > On Sat, Oct 22, 2011 at 09:21:50PM +0100, Neil Bothwick wrote >=20 > > This came up recently with a different subject. Your device does not > > have a partition table, instead the filesystem occupies the whole > > device (sometimes referred to as a "superfloppy" format). There's > > nothing wrong with this, I have a couple of USB sticks like it, and > > my Nexus S is the same. > >=20 > > Your automounter should still pick it up. >=20 > I don't use an automounter. I like to be in control of what gets > mounted when. Then use an intelligent automounter, that only mounts things you want it to and lets you make choices about the rest :) > Thanks for the explanation. With it in mind I've finally=20 > come up with a plan that works. > In /etc/sudoers.d/001 I've included... >=20 > waltdnes i3 =3D (root) NOPASSWD: /sbin/fdisk -l /dev/sdc >=20 > And there's an entry for a vfat device in /etc/fstab for directory > /mnt/extc. The command "/sbin/fdisk -l /dev/sdc" seems to read in the > partition table into the system and things work from there on in. fdisk > only works as root, hence the sudo command. Here's a sample session... >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > waltdnes@i3 ~ $ mount /mnt/extc =20 > mount: special device /dev/sdc1 does not exist > waltdnes@i3 ~ $ sudo /sbin/fdisk -l /dev/sdc >=20 > Disk /dev/sdc: 16.0 GB, 16012804096 bytes > 256 heads, 63 sectors/track, 1939 cylinders, total 31275008 sectors > Units =3D sectors of 1 * 512 =3D 512 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disk identifier: 0x00000000 >=20 > Device Boot Start End Blocks Id System > /dev/sdc1 * 2048 31275007 15636480 c W95 FAT32 (LBA) > waltdnes@i3 ~ $ mount /mnt/extc > waltdnes@i3 ~ $ > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D In that case, you have a different situation since there is clearly a partition on the disk. The partition table may be slightly faulty, hence the need for fdisk. Recreating the partition table with fdisk should fix that permanently. --=20 Neil Bothwick Those who live by the sword get shot by those who don't. --Sig_/D_+u=YPj33y6qWUb=VCLTQy Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAk6j9XAACgkQum4al0N1GQNBTQCg2xgLJ8qzbeD36Nzsnq0v1ndE s4MAoKtXbdbd/X7wwrYqp/TGAegmHv9Q =Js9y -----END PGP SIGNATURE----- --Sig_/D_+u=YPj33y6qWUb=VCLTQy--