linux下查看硬盘型号、大小等信息 您所在的位置:网站首页 怎么查看电脑硬盘类型和大小啊 linux下查看硬盘型号、大小等信息

linux下查看硬盘型号、大小等信息

2024-07-11 14:33| 来源: 网络整理| 查看: 265

1.查看硬盘型号

   fdisk -l      //查看你的硬盘编号,如sda,sdb 等 

 

[root@root  web]# fdisk -l

Disk /dev/sda: 300.0 GB, 299966445568 bytes, 585871964 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 262144 bytes / 262144 bytes Disk label type: dos Disk identifier: 0x000aaaaa

   Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048     1026047      512000   83  Linux /dev/sda2         1026048    33794047    16384000   82  Linux swap / Solaris /dev/sda3        33794048    34818047      512000    6  FAT16 /dev/sda4        34818048   585871359   275526656    5  Extended /dev/sda5        34820096   585871359   275525632   83  Linux

硬盘的读写是以sector扇区为单位,1扇区是512bytes;操作系统是对硬盘的读写是以block块为单位 1块是 8 * 512bytes = 4K

2.查详细硬盘信息

  smartctl --all /d



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有