-
Disk Information
Hi there,
How do I enumerate through installed disks and retrieve information, such as: capacity, and whether it is a CD/DVD drive etc?
There doesn't appear to be anything offering this functionality in the C or POSIX libraries. What can I use?
Thanks
-
You could pipe 'fdisk -l' and parse it, but there's probably a better idea ;)
-
It seems the information you seek is hidden in the /sys directory, but how, I cannot tell. (There doesn't seem to be a very systematic way of finding something, much less of identifying it.)
-
-