Solved

How big is this drive

Posted on 2007-12-05
3
179 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

734 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