1 |
Tim Schumacher <tim@××××××××××××.org> 2010-08-04 12:19: |
2 |
> At Wed, 04 Aug 2010 08:11:40 +0100, |
3 |
> Tom Grace wrote: |
4 |
> > On 08/04/2010 01:13 AM, GNUbie wrote: |
5 |
> > > How can I check if a block device (partition) has one or any of the |
6 |
> > > following characteristics: |
7 |
> > > |
8 |
> > > [1] raw |
9 |
> > > |
10 |
> > > [2] has content |
11 |
> > > |
12 |
> > > [3] formatted |
13 |
> > > |
14 |
> > > but without actually mounting it? |
15 |
> > |
16 |
> > testdisk (http://www.cgsecurity.org/wiki/TestDisk) will tell you that. |
17 |
> |
18 |
> This works also as root: |
19 |
> |
20 |
> file -s /dev/sda1 |
21 |
> |
22 |
> greetings |
23 |
> |
24 |
> Tim |
25 |
|
26 |
Having just cranked out something where I needed similar info [1] I |
27 |
found that the file command doesn't understand all blockdev/filesystem |
28 |
types. The blkid command is a little bit better at that. |
29 |
|
30 |
Brian |
31 |
|
32 |
[1] http://cae.wisc.edu/~bpkroth/src/san-snapshots/ |