Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-server
Navigation:
Lists: gentoo-server: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: Tim Schumacher <tim@...>
From: Brian Kroth <bpkroth@...>
Subject: Re: Checking a block device
Date: Fri, 6 Aug 2010 09:33:10 -0500
Tim Schumacher <tim@...> 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.
> 
> This works also as root:
> 
> file -s /dev/sda1
> 
> greetings
> 
> 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/
Attachment:
signature.asc (Digital signature)
References:
Checking a block device
-- GNUbie
Re: Checking a block device
-- Tom Grace
Re: Checking a block device
-- Tim Schumacher
Navigation:
Lists: gentoo-server: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Checking a block device
Next by thread:
Re: Checking a block device
Previous by date:
Re: Checking a block device
Next by date:
Root exploit in IA32 emulation subsystem


Updated Jun 22, 2012

Summary: Archive of the gentoo-server mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.