Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

How big is this drive

When I issue this Solaris command I get the following. How to I convert this information to size in Gigs?

#  prtvtoc /dev/rdsk/c1t5d0s2
* /dev/rdsk/c1t5d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*      64 sectors/track
*      64 tracks/cylinder
*    4096 sectors/cylinder
*    8617 cylinders
*    8615 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*        4096      4096      8191
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       2      5    01          0  35287040  35287039
       3     15    01          0      4096      4095
       4     14    01       8192  35278848  35287039
#
0
jjc_mn
Asked:
jjc_mn
1 Solution
 
omarfaridCommented:
The disk size is

35287040 sectors (512 bytes)
17643520 KB
17230 MB
16.826 GB
0
 
jjc_mnAuthor Commented:
35287040 X (512 bytes) = 18066964480
18066964480 / 1024      = 17643520 KB
17643520      / 1024       = 17230 MB
17230            / 1024       = 16.826 GB


Thanks!
0
 
TintinCommented:
You'll find it easier to view the disk size by running the format command.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now