Operating System - HP-UX
1856502 Members
6565 Online
104113 Solutions
New Discussion

Re: total hard disk space

 
dhanish
Regular Advisor

total hard disk space

Is there any command in HP-UX to find out total disk space available,on HP.

thnks
Never Say Die
8 REPLIES 8
Vincenzo Restuccia
Honored Contributor

Re: total hard disk space

diskinfo /dev/rdsk/cxtyd0
Ravi_8
Honored Contributor

Re: total hard disk space

Hi,
# cd /dev/rdsk
#ls gives u the number of physical disks(cxtxdx,...) including CD_drive(which will be last one, usually)
#diskinfo /dev/rdsk/cxtxdx will show u the disksize in KB
never give up
Steve Steel
Honored Contributor

Re: total hard disk space

Hi


df -bk will give you a good guide.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
dhanish
Regular Advisor

Re: total hard disk space

Hi,
I want to get that using single command.

is it possible.

thnks
Never Say Die
Vincenzo Restuccia
Honored Contributor

Re: total hard disk space

#diskinfo /dev/rdsk/c3t6d0|grep size
size: 8886762 Kbytes
dhanish
Regular Advisor

Re: total hard disk space

Hi,
I want to know the total diskspace available in the system .using one command.
as df -bk will give only for the disk whixh has fs created, i want the total raw spacve available in the system.(for all tyhe disks)

thnks
Never Say Die
harry d brown jr
Honored Contributor

Re: total hard disk space

nitin,

The is no single command, but how about this attached script?

live free or die
harry
Live Free or Die
Steve Steel
Honored Contributor

Re: total hard disk space

hi


Another script


find /dev/rdsk|while read line
do
echo $line:$(diskinfo $line 2>&1)|grep size
done

Or
find /dev/rdsk|while read line
do
echo $line:$(diskinfo $line 2>&1|grep size)
done

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)