I need to know what hard disks are available, including ones that aren't mounted and possibly aren't formatted. I can't find them in dmesg or /var/log/messages (too much to scroll through). I'm hoping there's a way to use /dev or /proc to find out this information, but I don't know how. I am using Linux.
|
|
|||||||||
|
|
This is highly platform-dependent. Also different methods may treat edge cases differently (“fake” disks of various kinds, RAID volumes, …). On modern udev installations, there are symbolic links to storage media in subdirectories of Under Linux 2.6, each disk and disk-like device has an entry undr If you have an You will find utility names for many unix variants on the Rosetta Stone for Unix, in particular the “list hardware configuration” and “read a disk label” lines. |
|||||
|
|
How about
|
|||||
|
|
@Giles says this is highly platform-dependent. Here's one such example. I'm running a CentOS 5.5 system. This system has 4 disks and a 3ware RAID controller. In my case, only shows the 3ware RAID controller which provides the /dev/sda volume:
In order to see the disks which lie underneath, I had to install the tw_cli utility from 3ware, and ask the controller itself.
|
||||
|
|
|
hwinfo helps:
|
|||
|
|
|
I'm running fedora 14 and
|
||||
|
|
Running above command as a root will install the package.
|
||||
|
|
|
This worked for me:
|
||||
|
|
