Total amount of disks in linux

I want to find out the total amount of disks in Linux.
What is the command to find out the hardware configuration in Linux?
regards,
kanishk.
********************************************** *******************************
This Email and files transmitted are confidential and intended solely for
the use of the individual or entity to whom they are addressed. If you
have received this Email in error please notify the system manager.
Please note that any views or opinions presented in this Email are solely
those of the author and do not necessarily represent those of IndusInd
Bank Ltd. Finally, the recipient should check this Email and any
attachments for the presence of viruses. IndusInd Bank Ltd. accepts no
liability for any damage caused by any virus transmitted by this Email.
********************************************** *******************************
** Message has been scanned by Emergic MailServ **

Popular White Paper On This Topic

Hello Kanishk,
These are too separate questions. "fdisk -l" will tell you what drives
are visible to the operating system. "partprobe" will re-read the scsi
chain and the fiber channel, I believe. You might run it first.
To see all of the hardware configuration try "dmidecode | less" There
is a lot of information here. Also try "dmidecode --help" you should be
able to do something to make the output more verbose, like -vvv.
Regards,

hi Kanishk
you can used free command to display used and unused
space of your
hard drive .or you want to display to partition then used fdisk /dev/sda
(sda is depend)
then press p for print.
what hardware configuration u want to display
following are some command to display hardware related configuration
kudzu
dmesg

The difference between "fdisk -l" and "df -h":
fdisk -l: shows the disk drives attached to the system and how they are
partitioned
df -h: reports filesystem disk usage. If the filesystem is not mounted,
you will not see it listed.
df -h may not tell you the information necessary, if you have idle
disks. fdisk may tell you more space, as it shows ALL disks without
regard to whether or not they are formatted and mounted.
You will need to use both. To add to the confusion, if you are using
logical volumes (lvm) you may need the pvs/vgs/lvs commands to see more

Sorry Jagdishborde,
It seems "free" tells you how much free and used memory in the system.
This is memory, like the RAM or the scratch space, not hard drive. It
will not give any information about the hard drives connected whether
they are formatted or not.
Regards,

you can use hwbrowser if your in X windows in RHEL 4 onwards. In no-way
free is related to hard drive, df -hT gives human readable format about
mounted partitions along with how much they had been utilized, whereas fdisk
-l is concerned the total partitions along with mounted & unmounted but not raw
partitions,