[Fedora] RE: How many drives?

Miner, Jonathan W (CSC) (US SSA) jonathan.w.miner at baesystems.com
Thu Sep 27 17:05:05 UTC 2007




-----Original Message-----
From:	fedora-list-bounces at redhat.com on behalf of Ashley M. Kirchner
Sent:	Thu 09/27/2007 12:58 PM
To:	For users of Fedora
Cc:	
Subject:	Re: [Fedora] RE: How many drives?

Miner, Jonathan W (CSC) (US SSA) wrote:

 > fdisk -l | egrep '^Disk /dev/.*[hs]d' | wc -l
Disk /dev/md0 doesn't contain a valid partition table
[..snip..]
---------------------------

Just redirect stderr...

fdisk -l 2> /dev/null | egrep '^Disk /dev/.*[hs]d' | wc -l
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2718 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070927/d8c04908/attachment-0001.bin>


More information about the fedora-list mailing list