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

Re: How many drives?



On Thu, Sep 27, 2007 at 08:53:34AM -0600, Ashley M. Kirchner wrote:
> 
>    What's a quick (even dirty) way of finding out how many HDs a system 
> has?  Assuming that:
> 
>       a) Not all of them are actively used, so they wouldn't be in
>          /etc/fstab (or visible in df)
> 
>       b) /var/log/dmesg isn't available for scanning
> 
>       c) /var/log/messages isn't available for scanning
> 
>       d) And access to the boxes is (somewhat) restricted - they're in 
> racks, and I really don't feel like yanking each and every one)

"fdisk -l" requires root access and will give you a list of hard
drives and their partitions found. Of course if a hard drive has no
power, is disconnected, etc. it may be pysically in the machine but
fdisk won't find it.

-- 

Charles Curley                  /"\    ASCII Ribbon Campaign
Looking for fine software       \ /    Respect for open standards
and/or writing?                  X     No HTML/RTF in email
http://www.charlescurley.com    / \    No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB

Attachment: pgpq41Mj4NbMZ.pgp
Description: PGP signature


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