Operating System - Linux
1753852 Members
7796 Online
108808 Solutions
New Discussion юеВ

Re: How to check all the available hard disks (including not in use) in redhat linux

 
gab_in
Regular Advisor

How to check all the available hard disks (including not in use) in redhat linux

Hi,

I have a DL380 machines running RHEL3. There are 4x300GB and 2x36GB Hard disks are installed in the machine. But only one hard disk is in use. Please let me know how can I check whether the other hard disks are detected by OS and how to use those.

Thanks in advance
7 REPLIES 7
gab_in
Regular Advisor

Re: How to check all the available hard disks (including not in use) in redhat linux

Please find the current df output from the machine

df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p2 100791568 9357348 86314228 10% /
/dev/cciss/c0d0p1 2015904 43724 1869776 3% /boot
/dev/cciss/c0d0p3 40315400 17696656 20570788 47% /opt
none 3048664 0 3048664 0% /dev/shm
/dev/cciss/c0d0p6 19794164 3312124 15476528 18% /var
Jeeshan
Honored Contributor

Re: How to check all the available hard disks (including not in use) in redhat linux

either use dmesg or you can apply command

#fdisk -l

it will show your available hard disks, both partitioned and non parttitioned.
a warrior never quits
Ivan Ferreira
Honored Contributor

Re: How to check all the available hard disks (including not in use) in redhat linux

Consider that these devices can be used as RAW devices, and also, that may be in a hardware RAID configuration.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
skt_skt
Honored Contributor

Re: How to check all the available hard disks (including not in use) in redhat linux

check /proc/partitions too
Nuwan Alwis
Valued Contributor

Re: How to check all the available hard disks (including not in use) in redhat linux

Yep, as ahsan says easy way would be using fdisk -l command. but if u need a graphical representation Hardware browser tool will help you.
Jeeshan
Honored Contributor

Re: How to check all the available hard disks (including not in use) in redhat linux

/proc/partitions will shows only the partitions available. but fdisk -l will show you the total space of a HDD along with partitions.

i think you got your answer.

So, assign points to cheer!!!!!!!!
a warrior never quits
Deepak Kulkarni
Regular Advisor

Re: How to check all the available hard disks (including not in use) in redhat linux

Hi,

cat /proc/partitions


Regards
DK