1754838 Members
5211 Online
108825 Solutions
New Discussion юеВ

Re: diskinfo

 
SOLVED
Go to solution
singis
Advisor

diskinfo

Hello all,
I wanted to know if diskinfo gives the exact size of the disk.
when I do
diskinfo /dev/rdsk/c0t6d0 it returns:
SCSI describe of /dev/rdsk/c0t6d0:
vendor: SEAGATE
product id: ST318436LC
type: direct access
size: 17783240 Kbytes
bytes per sector: 512
So now does it mean that it is 16GB disk. I just wanted to know if that is the exact size of the disk or not.
Thanks,
Singis
8 REPLIES 8
Mel Burslan
Honored Contributor
Solution

Re: diskinfo

17783240 is the numerical representation of the disk capacity. In marketing terms, HP calls this type of disk drive 17 GB disk, if that is what you are wondering about.
________________________________
UNIX because I majored in cryptology...
Hakan Aribas
Valued Contributor

Re: diskinfo

yes, it is exact size of the disk instead of the size in point of disk vendors (they use 1000 instead of 1024 byte).
baiju_3
Esteemed Contributor

Re: diskinfo

Hi ,

See the below Link to see the exact spec nad details of your disk.

Search for the model numbet in seagate web site for details .

http://www.seagate.com/support/disc/specs/scsi/st318436lc.html


This size is shown in KB , if you multiply this by 1024 you can conclude that this disk is a 18GB Disk.

Thanks,
BL.
Good things Just Got better (Plz,not stolen from advertisement -:) )
Geoff Wild
Honored Contributor

Re: diskinfo

That is correct - it give the size of the disk.

17783240 Kbytes = 16.96 GB

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Helen French
Honored Contributor

Re: diskinfo

From the model # (ST318436LC), you could say it's a 18GB drive. The size you are seeing - 17783240 - is what's identified by the OS and LVM.
Life is a promise, fulfill it!
Geoff Wild
Honored Contributor

Re: diskinfo

I think that it is the "usable" space for the OS.

IE:

# diskinfo /dev/rdsk/c0t6d0
SCSI describe of /dev/rdsk/c0t6d0:
vendor: HP 36.4G
product id: MAS3367NC
type: direct access
size: 35566480 Kbytes
bytes per sector: 512


Says it is a 36.4 GB drive - but 35566480 Kbytes = 33.92 GB

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Raj D.
Honored Contributor

Re: diskinfo

Hi Singis,

Though ST318436LC is 18GB disk. The actual will be less ,


Just run this command and it will tell you the actual size of the disk in GB:


# echo "The disk Capacity in GB is \c" ;echo " 2 k \n `diskinfo /dev/rdsk/c0t6d0 | grep size | awk '{ print $2}'` 1048576 / p" | dc



Enjoy ,
Have fun,
Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Arunvijai_4
Honored Contributor

Re: diskinfo

Hi,

It is a 16.9 GB disk. Just do this arithmetic,
17783240/1048576 = 16.9 GB disk.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"