Retrieving Disk Information: Difference between revisions

From Leo's Notes
This page was last edited on 6 April 2021, at 00:39.
m Text replacement - "<code>" to "{{code|"
Tag: Replaced
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
=== FreeBSD ===
QGWP73Q0WO0K8X3WXF  www.google.com
 
   I have a small question for you
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)
<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)
</syntaxhighlight>
 
<syntaxhighlight lang="text" line highlight="1" start="1" enclose="div">
# 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.
</syntaxhighlight>
 
[[Category:FreeBSD]]

Latest revision as of 00:39, 6 April 2021

QGWP73Q0WO0K8X3WXF www.google.com

  I have a small question for you