How many drives?
Charles Curley
charlescurley at charlescurley.com
Thu Sep 27 16:43:59 UTC 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070927/48f245c7/attachment-0001.sig>
More information about the fedora-list
mailing list