zoukankan      html  css  js  c++  java
  • macos上命令行查看磁盘序列号

    收集到两种命令行获取方法:(另外https://www.maketecheasier.com/find-mac-serial-number/中还说明了GUI模式下的查看方法)

    1、system_profiler SPSerialATADataType.

    (system_profiler SPNVMeDataType)

    范例:

    SATA/SATA Express:

    Generic AHCI Controller:

    Vendor: Generic
    Product: AHCI Controller
    Physical Interconnect: PCI
    Description: AHCI Version 1.30 Supported

    VMware Virtual SATA Hard Drive:

    Capacity: 42.95 GB (42,949,672,960 bytes)
    Model: VMware Virtual SATA Hard Drive
    Revision: 1
    Serial Number: 1
    Native Command Queuing: Yes
    Queue Depth: 32
    Removable Media: Yes
    Detachable Drive: No
    BSD Name: disk0
    Medium Type: Rotational
    Partition Map Type: GPT (GUID Partition Table)
    Volumes:
    EFI:
    Capacity: 209.7 MB (209,715,200 bytes)
    BSD Name: disk0s1
    Content: EFI
    Volume UUID: 0E239BC6-F960-3107-89CF-1C97F78BB46B
    sane:
    Capacity: 42.09 GB (42,089,914,368 bytes)
    Available: 26.1 GB (26,099,613,696 bytes)
    Writable: Yes
    File System: Journaled HFS+
    BSD Name: disk0s2
    Mount Point: /
    Content: Apple_HFS
    Volume UUID: 28C031C0-60D3-34F4-82BD-B371B8DD7D35
    Recovery HD:
    Capacity: 650 MB (650,002,432 bytes)
    BSD Name: disk0s3
    Content: Apple_Boot
    Volume UUID: 46E79816-232B-3637-998A-5B8461FFACFA

    2、ioreg命令获取

    ioreg -rd1 -w0 -c AppleAHCIDiskDriver

    ioreg -rd1 -w0 -c IONVMeBlockStorageDevice | grep "Device Characteristics"

  • 相关阅读:
    云计算安全概述
    快照技术
    存储可靠性技术之--备份
    存储可靠性技术之 --RAID
    存储方式
    存储技术
    CentOS安装setup
    CentOS7安装iptables防火墙
    CentOS 7.0下使用yum安装MySQL
    The APR based Apache Tomcat Native library
  • 原文地址:https://www.cnblogs.com/amoy9812/p/12375759.html
Copyright © 2011-2022 走看看