Gentoo Archives: gentoo-server

From: Tim Schumacher <tim@××××××××××××.org>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Checking a block device
Date: Wed, 04 Aug 2010 11:04:19
Message-Id: 87d3tysmsg.wl%tim@we-are-teh-b.org
In Reply to: Re: [gentoo-server] Checking a block device by Tom Grace
1 At Wed, 04 Aug 2010 08:11:40 +0100,
2 Tom Grace wrote:
3 > On 08/04/2010 01:13 AM, GNUbie wrote:
4 > > How can I check if a block device (partition) has one or any of the
5 > > following characteristics:
6 > >
7 > > [1] raw
8 > >
9 > > [2] has content
10 > >
11 > > [3] formatted
12 > >
13 > > but without actually mounting it?
14 >
15 > testdisk (http://www.cgsecurity.org/wiki/TestDisk) will tell you that.
16
17 This works also as root:
18
19 file -s /dev/sda1
20
21 greetings
22
23 Tim

Replies

Subject Author
Re: [gentoo-server] Checking a block device Brian Kroth <bpkroth@×××××.com>