Retrieving Disk Information: Difference between revisions

From Leo's Notes
This page was last edited on 29 April 2013, at 18:36.
syntax highlight
No edit summary
Line 1: Line 1:
=== FreeBSD ===
=== FreeBSD ===
<syntaxhighlight lang="bash" line highlight="1,6" start="1" enclose="div">
 
camcontrol devlist
Use <code>camcontrol devlist</code>, or <code>diskinfo -v</code>.
 
<syntaxhighlight lang="text" line highlight="1" start="1" enclose="div">
# camcontrol devlist
<NECVMWar VMware IDE CDR10 1.00>  at scbus1 target 0 lun 0 (cd0,pass0)
<NECVMWar VMware IDE CDR10 1.00>  at scbus1 target 0 lun 0 (cd0,pass0)
<VMware Virtual disk 1.0>          at scbus2 target 0 lun 0 (da0,pass1)
<VMware Virtual disk 1.0>          at scbus2 target 0 lun 0 (da0,pass1)
<ATA SAMSUNG HD160JJ/ ZM10>        at scbus2 target 1 lun 0 (da1,pass2)
<ATA SAMSUNG HD160JJ/ ZM10>        at scbus2 target 1 lun 0 (da1,pass2)
</syntaxhighlight>


diskinfo -v da1
<syntaxhighlight lang="text" line highlight="1" start="1" enclose="div">
# diskinfo -v da1
da1
da1
         512            # sectorsize
         512            # sectorsize
Line 16: Line 21:
         255            # Heads according to firmware.
         255            # Heads according to firmware.
         63              # Sectors according to firmware.
         63              # Sectors according to firmware.
              S0DFJ1IL979219   # Disk ident.
        S0DFJ1IL979219 # Disk ident.
</syntaxhighlight>
</syntaxhighlight>


[[Category:FreeBSD]]
[[Category:FreeBSD]]

Revision as of 18:36, 29 April 2013

FreeBSD

Use camcontrol devlist, or diskinfo -v.

# camcontrol devlist
<NECVMWar VMware IDE CDR10 1.00>   at scbus1 target 0 lun 0 (cd0,pass0)
<VMware Virtual disk 1.0>          at scbus2 target 0 lun 0 (da0,pass1)
<ATA SAMSUNG HD160JJ/ ZM10>        at scbus2 target 1 lun 0 (da1,pass2)
# diskinfo -v da1
da1
        512             # sectorsize
        160000000000    # mediasize in bytes (149G)
        312500000       # mediasize in sectors
        0               # stripesize
        0               # stripeoffset
        19452           # Cylinders according to firmware.
        255             # Heads according to firmware.
        63              # Sectors according to firmware.
        S0DFJ1IL979219  # Disk ident.