Determine size of a raw device in Unix Solaris

September 8, 2009

Log on to the server

$ devinfo -i /dev/md/rdsk/d301
/dev/md/rdsk/d301 0 0 16384 512 1 <-- This is the block size
$ devinfo -p /dev/md/rdsk/d301
/dev/md/rdsk/d301 55 c12d 16384 524288 0 0 <-- this is the device size in blocks

To calculate the device size in bytes, you need both bits of information obtained from the above commands as follows:

Device size = ( (524288 / (1024 / 512) ) / 1024 = 256MB

tags: , , , ,
posted in ase by Carsten

Follow comments via the RSS Feed | Leave a comment | Trackback URL

2 Comments to "Determine size of a raw device in Unix Solaris"

  1. MATTHEW wrote:


    MedicamentSpot.com. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. No prescription drugs. Order pills online

    Buy:Maxaman.Viagra Professional.Viagra Super Active+.Soma.Viagra Super Force.Tramadol.Cialis.Viagra.Super Active ED Pack.Propecia.Levitra.Viagra Soft Tabs.Cialis Super Active+.Cialis Professional.Zithromax.VPXL.Cialis Soft Tabs….

  2. Lip wrote:

    Lip http://issc6hzzwh.ABABYCLOTHES.INFO/tag/make+up+lips+Gloss+Lip/ : Gloss…

    up…

Leave Your Comment

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org