Retrieving Disk Information: Difference between revisions

From Leo's Notes
This page was last edited on 24 February 2017, at 19:13.
No edit summary
m Text replacement - "<code>" to "{{code|"
Line 1: Line 1:
=== FreeBSD ===
=== FreeBSD ===


Use <code>camcontrol devlist</code>, or <code>diskinfo -v</code>.
Use {{code|camcontrol devlist</code>, or {{code|diskinfo -v</code>.


<syntaxhighlight lang="text" line highlight="1" start="1" enclose="div">
<syntaxhighlight lang="text" line highlight="1" start="1" enclose="div">

Revision as of 19:13, 24 February 2017

FreeBSD

Use {{code|camcontrol devlist, or {{code|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.