我注意到我的Ubuntu非常卡顿,但只有在我第一次加载到内存后,卡顿完全停止。我进行了一些测试,我猜测我的笔记本硬盘之一出了问题。
我猜我需要更换硬盘,有没有一些命令可以查看硬盘的详细规格,以便我可以在网上购买?
我不想打开笔记本电脑,找到规格,然后当新硬盘到达时再次打开它。
我猜我需要更换硬盘,有没有一些命令可以查看硬盘的详细规格,以便我可以在网上购买?
我不想打开笔记本电脑,找到规格,然后当新硬盘到达时再次打开它。
smartctl
命令来自smartmontools
软件包,这正是您所需要的。
% sudo smartctl -i /dev/sda
smartctl 6.2 2013-07-26 r3841 [i686-linux-3.13.0-24-generic] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: SAMSUNG SpinPoint M7
Device Model: SAMSUNG HM250HI
Serial Number: <snip>
LU WWN Device Id: 5 0024e9 203520f1d
Firmware Version: 2AC101C4
User Capacity: 250,059,350,016 bytes [250 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 6
SATA Version is: SATA 2.6, 3.0 Gb/s
Local Time is: Thu May 15 21:49:09 2014 MYT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
sudo apt-get install lshw
H.D.D规格命令:
lshw -class disk -class storage
% sudo hdparm -I /dev/sda ~
/dev/sda:
ATA device, with non-removable media
Model Number: WDC WD10JPCX-24UE4T0
Serial Number: WD-WXR1E24A7U0E
Firmware Revision: 01.01A01
Transport: Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
Supported: 9 8 7 6 5
Likely used: 9
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 1953525168
Logical Sector size: 512 bytes
Physical Sector size: 4096 bytes
Logical Sector-0 offset: 0 bytes
device size with M = 1024*1024: 953869 MBytes
device size with M = 1000*1000: 1000204 MBytes (1000 GB)
cache/buffer size = 16384 KBytes
Nominal Media Rotation Rate: 5400
lsblk -o MODEL,SIZE,NAME -d
MODEL SIZE NAME
Samsung SSD 850 232.9G sda
Samsung SSD 850 931.5G sdb
$ lsblk
默认情况下,lsblk命令将以树状格式列出所有块设备。输入lsblk --help以查看更多选项。