[Fedora] RE: How many drives?

Robert P. J. Day rpjday at mindspring.com
Thu Sep 27 17:03:51 UTC 2007


On Thu, 27 Sep 2007, Ashley M. Kirchner wrote:

> Miner, Jonathan W (CSC) (US SSA) wrote:
> > fdisk -l | egrep '^Disk /dev/.*[hs]d' | wc -l
>    Actually.....
>
> > fdisk -l | egrep '^Disk /dev/.*[hs]d' | wc -l
> Disk /dev/md0 doesn't contain a valid partition table
> Disk /dev/md1 doesn't contain a valid partition table
> Disk /dev/md2 doesn't contain a valid partition table
> Disk /dev/md3 doesn't contain a valid partition table
> Disk /dev/md4 doesn't contain a valid partition table
> Disk /dev/md5 doesn't contain a valid partition table
> Disk /dev/md6 doesn't contain a valid partition table
> Disk /dev/md7 doesn't contain a valid partition table
> Disk /dev/md8 doesn't contain a valid partition table
> Disk /dev/md9 doesn't contain a valid partition table
> Disk /dev/dm-0 doesn't contain a valid partition table
> Disk /dev/dm-1 doesn't contain a valid partition table
> 5
>
>
>    Granted I got my answer at the bottom there....but...you get the idea. :

so just toss the errors:

> fdisk -l 2> /dev/null | egrep ...blah blah ...

rday

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================




More information about the fedora-list mailing list