LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   URGENT: Hard disk Query (https://www.linuxquestions.org/questions/red-hat-31/urgent-hard-disk-query-293031/)

mailnickykav 02-21-2005 12:50 PM

URGENT: Hard disk Query
 
Hi,

I am an AIX person, i want to find out how many hard disks are there on my redhat machine and what is the capacity of each hard disk.

I know i can user a df to find out what is there on which hard disk, but i need to know totally howmany hardisks are there (used or unused) and the total capacity in GB or each Hard drive. Please help..

I did an fdisk -s /dev/sda and i got the output 35548160 but i dont know how to read this output.. is it in 512 byte block?

in redhat 1 block = ? kb?

Matir 02-21-2005 01:19 PM

dmesg | grep hd
dmesg | grep sd

That will show information about IDE and SCSI disks respectively. You can find the information you seek in there.

mailnickykav 02-21-2005 01:29 PM

To Matir
 
Hi,

I tried the dmesg |grep hd (and sd) but it returned nothing...

any other suggestions? on aix there ls lspv, lsdev, lsattr, lsvg etc etc to gather all this info.
in hp we have ioscan etc.. are there any simillar commands in redhat?

raid1lover 02-25-2005 12:42 PM

.:confused:

raid1lover 02-25-2005 01:55 PM

I know i can user a df to find out what is there on which hard disk, but i need to know totally howmany hardisks are there (used or unused) and the total capacity in GB or each Hard drive. Please help..

mailnickykav, try df -h to show the size of existing partitions output in "human-readable" format. For example: Red Hat Linux Customization Guide.

Or for a graphical tool, run the GNOME System Monitor

As to finding the hard drive sizes and the unused/unpartitioned areas of connected drives...
1. You could boot with a floppy containing a DOS version of Partition Magic (or get a Downloadable demo version ).

2. "Pretend" you're doing a RedHat reinstall, then use Disk Druid to look at the partitioning and drive sizes...but be sure NOT to make any changes, then pull the RedHat CD and reboot.

3. reboot and watch the BIOS detect the drives. This might take a few tries, or might be disabled if drives aren't configured as autodetect or a "quick boot" option is enabled.

4. Reboot and look for the model numbers of the hard drives as they are detected by the O.S. process (same as "dmesg" when up & running).

If the drive isn't even hooked up, naturally, you must take the flashlight/model number route (then search for that model# in google or the drive manufacturer's site to determine the drive size). Ground yourself to the case first so nothing gets zapped :cry: by static discharge. Good luck.


All times are GMT -5. The time now is 09:29 PM.