ディスクがSSDかHDDかを確認する方法

ディスクがSSDかHDDかを確認する方法

ディスクがソリッドステートドライブかハードドライブかを知りたいです。

lshwインストールされていません。このようにしましたが、yum install lshwlshwというパッケージがないと言いました。どのバージョンなのか不明http://pkgs.repoforge.org/lshw/私のCentOSではうまくいきます。

オンラインで検索しましたが、ドライブがSSDかHDDかを確認する方法を説明するものはありません。まずフォーマットする必要がありますか?

結果fdisk -l:

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00074f7d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          14      103424   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              14         536     4194304   82  Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3             536       14594   112921600   83  Linux

Disk /dev/sdc: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/sdb: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/sdd: 480.1 GB, 480103981056 bytes
255 heads, 63 sectors/track, 58369 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

ベストアンサー1

LinuxはSSDを自動的に検出し、~からカーネルバージョン 2.6.29 は、以下sdaから確認できます。

cat /sys/block/sda/queue/rotational

1ハードドライブと0SSDを購入する必要があります。

ディスクがハードウェア(RAIDコントローラなど)によってエミュレートされた論理デバイスの場合、機能しない可能性があります。

バラよりこの回答SSDパーティション、ファイルシステムに関する追加情報...

おすすめ記事