Solved

How big is this drive

Posted on 2007-12-05
3
175 Views
Last Modified: 2013-12-27
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
Comment
Question by:jjc_mn
3 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
ID: 20413040
The disk size is

35287040 sectors (512 bytes)
17643520 KB
17230 MB
16.826 GB
0
 

Author Closing Comment

by:jjc_mn
ID: 31412891
35287040 X (512 bytes) = 18066964480
18066964480 / 1024      = 17643520 KB
17643520      / 1024       = 17230 MB
17230            / 1024       = 16.826 GB


Thanks!
0
 
LVL 48

Expert Comment

by:Tintin
ID: 20414958
You'll find it easier to view the disk size by running the format command.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now