From: GNUbie on
Hello all,

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?

Please advice. Thank you in advance.

Regards,

GNUbie


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/AANLkTi=TFn=kF4iXhQY-w370YC4_1iSemXWnjL3H1BG2(a)mail.gmail.com
From: Cybe R. Wizard on
On Wed, 4 Aug 2010 08:11:28 +0800
GNUbie <gnubie(a)gmail.com> wrote:

> Hello all,
>
> 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?
>
> Please advice. Thank you in advance.
>
> Regards,
>
> GNUbie
>
>
Forgive me if I'm wrong but that sounds a lot like a homework question
that you should be figuring out on your own.

Cybe R. Wizard
--
Registered GNU/Linux user # 126326
Registered Ubuntu User # 2136


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100803193207.37328583(a)WizardsTower
From: GNUbie on
Hello Cybe R. Wizard,

Yes, this is my own homework as I need to have some conditions in the
script that I am creating to automate my elastic instances in the AWS
and one of which is by making use of EBS volumes.

Thank you.

Regards,

GNUbie

On Wed, Aug 4, 2010 at 8:32 AM, Cybe R. Wizard
<cybe_r_wizard(a)earthlink.net> wrote:
> On Wed, 4 Aug 2010 08:11:28 +0800
> GNUbie <gnubie(a)gmail.com> wrote:
>
>> Hello all,
>>
>> 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?
>>
>> Please advice. Thank you in advance.
>>
>> Regards,
>>
>> GNUbie
>>
>>
> Forgive me if I'm wrong but that sounds a lot like a homework question
> that you should be figuring out on your own.
>
> Cybe R. Wizard
> --
> Registered GNU/Linux user # 126326
> Registered Ubuntu User # 2136
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
> Archive: http://lists.debian.org/20100803193207.37328583(a)WizardsTower


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/AANLkTi=F4r4+qRAUjsV0wYUqv1yMrJ40DnRdus57LbgD(a)mail.gmail.com
From: Boyd Stephen Smith Jr. on
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.
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss(a)iguanasuicide.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/ \_/
From: GNUbie on
Hello all,

On Wed, Aug 4, 2010 at 11:24 AM, Boyd Stephen Smith Jr.
<bss(a)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


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/AANLkTi?ZVWrSXkb3p1n2F0bMEFKFSXYsD64QNUmmib(a)mail.gmail.com