Re: Checking a block device

2010-08-04 Thread GNUbie
Hello all, On Wed, Aug 4, 2010 at 11:24 AM, Boyd Stephen Smith Jr. 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 witho

Re: Checking a block device

2010-08-03 Thread Boyd Stephen Smith Jr.
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

Re: Checking a block device

2010-08-03 Thread GNUbie
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 wrote:

Re: Checking a block device

2010-08-03 Thread Cybe R. Wizard
On Wed, 4 Aug 2010 08:11:28 +0800 GNUbie 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.

Checking a block device

2010-08-03 Thread GNUbie
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-requ...@lists.deb