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 1OhOTg-0000F7-Ks for garchives@archives.gentoo.org; Fri, 06 Aug 2010 15:04:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D3E5E0AF0 for ; Fri, 6 Aug 2010 15:04:56 +0000 (UTC) Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com [209.85.212.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 13800E08C8 for ; Fri, 6 Aug 2010 14:33:14 +0000 (UTC) Received: by vws15 with SMTP id 15so6968616vws.40 for ; Fri, 06 Aug 2010 07:33:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:reply-to:mail-followup-to:references:mime-version :content-type:content-disposition:in-reply-to:x-operating-system :user-agent; bh=CBwr1akfmyy16R6m8zYV9VFi2Kqc143IHf3jt7/keno=; b=jtSzkqA8Hb+vWNDLAA2PR5wfCB54lBRgwlbJlJ/Jf9lzAaLVXUb20D039RoSFrFagw OQ8+ws7V9AEno0KtVrNQjh53pj6hlTwMGb4nGRuD+idniXezTL8QFeiypGzLXzdTKSVN x/ni7oAJSXm/smueirzF+D/yAgJxebzaYOoFY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:x-operating-system:user-agent; b=hcmXg9AGMiEbKjKDZ8S1oDdZaUaz9iZac347vTjSKb2Xglw7RynDnFE13jEm+cjMTo x372IrabArDVDfrtFW1OlU8KsNdolTn8xSIIVF6NdTvjbuR1Zj/h519KaERYxHqyXNys cwpI+RCC0Me5dY/sweLQJhnlkRdPFmnKcXfzg= Received: by 10.220.129.73 with SMTP id n9mr8455224vcs.51.1281105192043; Fri, 06 Aug 2010 07:33:12 -0700 (PDT) Received: from gmail.com (rolo.cae.wisc.edu [144.92.13.74]) by mx.google.com with ESMTPS id r15sm841920vbp.0.2010.08.06.07.33.11 (version=SSLv3 cipher=RC4-MD5); Fri, 06 Aug 2010 07:33:11 -0700 (PDT) Date: Fri, 6 Aug 2010 09:33:10 -0500 From: Brian Kroth To: Tim Schumacher Cc: gentoo-server@lists.gentoo.org Subject: Re: [gentoo-server] Checking a block device Message-ID: <20100806143308.GY605@gmail.com> Mail-Followup-To: Tim Schumacher , gentoo-server@lists.gentoo.org References: <4C5912AC.4000908@snakesoftruth.com> <87d3tysmsg.wl%tim@we-are-teh-b.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-server@lists.gentoo.org Reply-to: gentoo-server@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NgLNC/STdjXvE6Rt" Content-Disposition: inline In-Reply-To: <87d3tysmsg.wl%tim@we-are-teh-b.org> X-Operating-System: Linux 2.6.32-bpo.3-amd64 x86_64 User-Agent: Mutt/1.5.20 (2009-06-14) X-Archives-Salt: 64939770-d93c-4a62-9363-e42ee46e3065 X-Archives-Hash: d0f0473a4ca144ae76689af5826e7dd8 --NgLNC/STdjXvE6Rt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Tim Schumacher 2010-08-04 12:19: > At Wed, 04 Aug 2010 08:11:40 +0100, > Tom Grace wrote: > > On 08/04/2010 01:13 AM, GNUbie wrote: > > > How can I check if a block device (partition) has one or any of the > > > following characteristics: > > > > > > [1] raw > > > > > > [2] has content > > > > > > [3] formatted > > > > > > but without actually mounting it? > > > > testdisk (http://www.cgsecurity.org/wiki/TestDisk) will tell you that. >=20 > This works also as root: >=20 > file -s /dev/sda1 >=20 > greetings >=20 > Tim Having just cranked out something where I needed similar info [1] I found that the file command doesn't understand all blockdev/filesystem types. The blkid command is a little bit better at that. Brian [1] http://cae.wisc.edu/~bpkroth/src/san-snapshots/ --NgLNC/STdjXvE6Rt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkxcHSQACgkQdtkBin+QuSClKQCgky5kE4oDBTqb/jWlEE8M/Gh4 jCUAnjlgfvaCT2CsX6dbjhRGaanPMLcB =5kuH -----END PGP SIGNATURE----- --NgLNC/STdjXvE6Rt--