[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Checking a block device



Hello all,

On Wed, Aug 4, 2010 at 11:24 AM, Boyd Stephen Smith Jr.
<bss@iguanasuicide.net> wrote:
> On Tuesday 03 August 2010 19:11:28 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?
>
> I'd use "file" as a first pass.  After that, perhaps some custom script.

Thank you for all your response. I finally used the tool "testdisk" in
my script.

Regards,

GNUbie


Reply to: