Operating System - HP-UX
1832984 Members
2662 Online
110048 Solutions
New Discussion

Re: How to find out the physical size of the hard disk

 
Praveen
Advisor

How to find out the physical size of the hard disk

Hi All

Is there a command to find out the physical size of hard disk? I need following info
1: How to check the hard disk size on different UNIX systems.
2: What if the system is dual boot system with single hard disk? How is the physical hard disk size is calculated?
3: What if part of the HD is unformatted?
3 REPLIES 3
AwadheshPandey
Honored Contributor

Re: How to find out the physical size of the hard disk

use diskinfo /dev/rdsk/c#t#d#
It's kind of fun to do the impossible
Joelmel Roche
Valued Contributor

Re: How to find out the physical size of the hard disk

Amit Parui
Valued Contributor

Re: How to find out the physical size of the hard disk

Hi Praveen,

Firstly, to find out the size of physical volume in HPUX the following are the ways -
a) diskinfo -v /dev/rdsk/cXtXdX or
b) pvdisplay /dev/dsk/cXtXdX and multiply the Total PE with the size of PE and you will get the value in MB .

I suppose you can use the following in AIX-
lsdev -v /dev/hdX or lsattr -El /dev/hdX

In HP you check the boot disk thru -
lvlnboot -v and check out the disk space of the so mentioned disks in its output with the above commands.


If Life gives u a ROCK, its upto u to build a BRIDGE or a WALL !!!