Как я могу проверить свой ssd с помощью lshw?

Я хочу попробовать проверить свой ssd с помощью lshw, на котором установлена ​​ОС, и игнорировать другие диски. Как я могу это сделать?

Я использовал эту команду ниже.

      sudo lshw -json -class disk -notime

мой вывод:

      [                           
  {
    "id" : "disk",
    "class" : "disk",
    "claimed" : true,
    "handle" : "GUID:6e790bb8-072c-4d50-8912-088f6e6d13a9",
    "description" : "ATA Disk",
    "product" : "Samsung SSD 860",
    "physid" : "0.0.0",
    "businfo" : "scsi@2:0.0.0",
    "logicalname" : "/dev/sdb",
    "dev" : "8:16",
    "version" : "3B6Q",
    "serial" : "S4FNNJ0MB08421X",
    "units" : "bytes",
    "size" : 500107862016,
    "configuration" : {
      "ansiversion" : "5",
      "guid" : "6e790bb8-072c-4d50-8912-088f6e6d13a9",
      "logicalsectorsize" : "512",
      "sectorsize" : "512"
    },
    "capabilities" : {
      "gpt-1.00" : "GUID Partition Table version 1.00",
      "partitioned" : "Partitioned disk",
      "partitioned:gpt" : "GUID partition table"
    }
  },
  {
    "id" : "disk",
    "class" : "disk",
    "claimed" : true,
    "handle" : "SCSI:03:00:00:00",
    "description" : "ATA Disk",
    "product" : "ST1000DM003-9YN1",
    "physid" : "0.0.0",
    "businfo" : "scsi@3:0.0.0",
    "logicalname" : "/dev/sdc",
    "dev" : "8:32",
    "version" : "CC4D",
    "serial" : "Z1D18LVB",
    "units" : "bytes",
    "size" : 1000204886016,
    "configuration" : {
      "ansiversion" : "5",
      "logicalsectorsize" : "512",
      "sectorsize" : "4096",
      "signature" : "0006fdc1"
    },
    "capabilities" : {
      "partitioned" : "Partitioned disk",
      "partitioned:dos" : "MS-DOS partition table"
    }
  },
  {
    "id" : "disk",
    "class" : "disk",
    "claimed" : true,
    "handle" : "SCSI:06:00:00:00",
    "description" : "SCSI Disk",
    "product" : "Expansion",
    "vendor" : "Seagate",
    "physid" : "0.0.0",
    "businfo" : "scsi@6:0.0.0",
    "logicalname" : "/dev/sde",
    "dev" : "8:64",
    "version" : "0707",
    "serial" : "NA8REA3P",
    "units" : "bytes",
    "size" : 500107861504,
    "configuration" : {
      "ansiversion" : "6",
      "logicalsectorsize" : "512",
      "sectorsize" : "4096",
      "signature" : "4434fb06"
    },
    "capabilities" : {
      "partitioned" : "Partitioned disk",
      "partitioned:dos" : "MS-DOS partition table"
    }
  }
]

Это должно быть так:

      [                           
  {
    "id" : "disk",
    "class" : "disk",
    "claimed" : true,
    "handle" : "GUID:6e790bb8-072c-4d50-8912-088f6e6d13a9",
    "description" : "ATA Disk",
    "product" : "Samsung SSD 860",
    "physid" : "0.0.0",
    "businfo" : "scsi@2:0.0.0",
    "logicalname" : "/dev/sdb",
    "dev" : "8:16",
    "version" : "3B6Q",
    "serial" : "S4FNNJ0MB08421X",
    "units" : "bytes",
    "size" : 500107862016,
    "configuration" : {
      "ansiversion" : "5",
      "guid" : "6e790bb8-072c-4d50-8912-088f6e6d13a9",
      "logicalsectorsize" : "512",
      "sectorsize" : "512"
    },
    "capabilities" : {
      "gpt-1.00" : "GUID Partition Table version 1.00",
      "partitioned" : "Partitioned disk",
      "partitioned:gpt" : "GUID partition table"
    }
  }
]

0 ответов

Другие вопросы по тегам