Leonardo Lagos> Thanks people,
Leonardo Lagos> from the two ways of looking at the HD size, I got another question:
Leonardo Lagos> iostat -E gives 20.02G while format/0/pa/pr gives 18.64GB...
Leonardo Lagos> why the difference??? unpartitioned versus partitioned???
Leonardo Lagos> Leo
Leonardo Lagos> bash-2.05# iostat -E
Leonardo Lagos> Size: 20.02GB <20019879936 bytes>
partition>> p
Leonardo Lagos> Part Tag Flag Cylinders Size Blocks
Leonardo Lagos> 2 backup wm 0 - 38789 18.64GB (38790/0/0)
39100320
Leonardo,
look how many bytes it's said after Size tag. The difference IMHO is
as follows:
iostat -E gives size of the hard drive as the drive itself reports its
size
Format on the other hand gives _formated_ capacity.
Then marketing departments count 1000 bytes as 1 Kbyte and 1000 Kbytes
as 1 Mbyte and so on ( in order their disks to look bigger :-) ) Some
vendors state this on disk label, some not.
And your OS count bytes the proper way ( 1024 bytes is 1Kbyte ... )
and this is the reason it shows less space
HTH
Peter
Leonardo Lagos> ----- Original Message -----
Leonardo Lagos> From: "Rupert O'Halloran" <[EMAIL PROTECTED]>
Leonardo Lagos> To: "Solaris-Users mailing list" <[EMAIL PROTECTED]>
Leonardo Lagos> Sent: Friday, March 28, 2003 16:13
Leonardo Lagos> Subject: Re: [Solaris-Users] how can I tell the RAM and HD on a
solaris box?
Leonardo Lagos> hi there...
Leonardo Lagos> for the memory try...
Leonardo Lagos> prtconf | head -3 |grep Mem
Leonardo Lagos> for the disk size..
Leonardo Lagos> use format
Leonardo Lagos> choose the disk you want
Leonardo Lagos> type pa to get to the partitions menu
Leonardo Lagos> type pr to print the menu to the screen
Leonardo Lagos> under part 2 check the size for the total disk size
Leonardo Lagos> use quit to exit
Leonardo Lagos> cheers
Leonardo Lagos> Rupert
Leonardo Lagos> At 15:54 28/03/2003 -0400, you wrote:
>>Hi people,
>>
>>I need to know the amount of RAM a machine has, and the amount of disk
>>available. Not the partitioned space, but all the space (the hysical
>>capacity of
>>the disks). Machine is a solaris8 sparc.
>>
>>For the ram, I tried "dmesg", but it gave a lot of syslog messages. Then, I
>>tried "top" and it says "Real memory". I tried "free" (as in a linux box), but
>>this doesn't exist.
>>
>>For the disk space, I tried fdisk -g /dev/rdsk/c0t0d0s2, but it only says
>>cyl/head/sect.
>>
>>bash-2.05# fdisk -g /dev/rdsk/c0t0d0s2
>>* Label geometry for device /dev/rdsk/c0t0d0s2
>>* PCYL NCYL ACYL BCYL NHEAD NSECT SECSIZ
>> 38790 38790 2 0 16 63 512
>>bash-2.05#
>>
>>Thanks a lot,
>>
>>Leo
--
Peter Kirkov
Support Engineer
________________________________________________
ACT Sofia
Tzarigradsko shosse blvd. 7km
BIC-IZOT, Office 710-714 Tel: +359-2-9718354
1113 Sofia - Bulgaria Fax: +359-2-9718343
mobile: +359-89-919638
mailto:[EMAIL PROTECTED]
_______________________________________________
Solaris-Users mailing list
[EMAIL PROTECTED]
http://www.filibeto.org/mailman/listinfo/solaris-users