How many drives?
Richard W.M. Jones
rjones at redhat.com
Thu Sep 27 14:57:40 UTC 2007
Ashley M. Kirchner wrote:
>
> What's a quick (even dirty) way of finding out how many HDs a system
> has? Assuming that:
If /sys/block is available then it's relatively simple to scan through
there looking for drives. I wrote some shell script functions to do
this. They can be found within the source of virt-p2v
(http://et.redhat.com/~rjones/virt-p2v/).
Rich.
--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070927/b4615017/attachment-0001.bin>
More information about the fedora-list
mailing list