Linux檢視硬碟使用時間等資訊

2021-09-01 19:20:56 字數 2650 閱讀 8822

檢視硬碟資訊的很多命令,都需要root許可權,如果普通使用者無法看到資訊,請切換至root:

1、檢視硬碟使用時間等資訊

硬碟使用時間很重要,硬碟理論壽命是3萬小時以上寫道

smartctl -a /dev/sda

home page is

=== start of read smart data section ===

smart attributes data structure revision number: 16

vendor specific smart attributes with thresholds:

id# attribute_name flag value worst thresh type updated when_failed raw_value

1 raw_read_error_rate 0x002f 200 200 051 pre-fail always - 0

3 spin_up_time 0x0027 141 141 021 pre-fail always - 3908

4 start_stop_count 0x0032 100 100 000 old_age always - 22

5 reallocated_sector_ct 0x0033 200 200 140 pre-fail always - 0

7 seek_error_rate 0x002e 200 200 000 old_age always - 0

9 power_on_hours 0x0032 082 082 000 old_age always - 13677

10 spin_retry_count 0x0032 100 253 000 old_age always - 0

11 calibration_retry_count 0x0032 100 253 000 old_age always - 0

12 power_cycle_count 0x0032 100 100 000 old_age always - 20

192 power-off_retract_count 0x0032 200 200 000 old_age always - 16

193 load_cycle_count 0x0032 200 200 000 old_age always - 5

194 temperature_celsius 0x0022 097 069 000 old_age always - 46

196 reallocated_event_count 0x0032 200 200 000 old_age always - 0

197 current_pending_sector 0x0032 200 200 000 old_age always - 0

198 offline_uncorrectable 0x0030 200 200 000 old_age offline - 0

199 udma_crc_error_count 0x0032 200 200 000 old_age always - 0

200 multi_zone_error_rate 0x0008 200 200 000 old_age offline - 0

2、檢視硬碟是否有壞道寫道

badblocks -v /dev/sda

正在檢查從 0 到 156290903的塊

checking for bad blocks (read-only test): 完成

pass completed, 0 bad blocks found.

3、檢視硬碟分割槽寫道

fdisk -l

disk /dev/sda: 160.0 gb, 160041885696 bytes

255 heads, 63 sectors/track, 19457 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: 0x81728172

device boot start end blocks id system

/dev/sda1 * 1 26 204800 83 linux

partition 1 does not end on cylinder boundary.

/dev/sda2 26 4870 38912000 83 linux

/dev/sda3 4870 5132 2097152 82 linux swap / solaris

/dev/sda4 5132 19458 115075072 83 linux

4、檢視已掛在分割槽使用情況寫道

df -h

檔案系統 容量 已用 可用 已用%% 掛載點

/dev/sda2 37g 4.8g 30g 14% /

tmpfs 466m 552k 466m 1% /dev/shm

/dev/sda1 194m 28m 156m 16% /boot

/dev/sda4 109g 13g 91g 13% /home

Linux檢視硬碟使用時間等資訊

檢視硬碟資訊的很多命令,都需要root許可權,如果普通使用者無法看到資訊,請切換至root 1 檢視硬碟使用時間等資訊 硬碟使用時間很重要,硬碟理論壽命是3萬小時以上 2 檢視硬碟是否有壞道寫道 badblocks v dev sda 正在檢查從 0 到 156290903的塊 checking f...

使用時間服務

時間服務用於提供公信的時間資訊。一般的 時間服務無所謂,對於商務和軍事就很有用了。比如 商務 網際網路軟體許可過期,電子合同什麼時候算是違約,稅務部門什麼時候開始算你滯報金 軍事 記得以前電影總看見 3 00總攻開始,大家對時。不過現在都已經資訊化了,計算機不能掏出一塊omega,然後扭表針。方法 ...

管理時間,合理使用時間!

時間管理的敵人 吃雞 王者榮耀 朋友圈 抖音 微博 負能量 抱怨 煩躁 急功急利 委屈 苦勞的心態 佛系 安於現狀 時間管理的朋友 克服拖延 保持專注 重視計畫 安排優先順序 今日事今日畢 利用碎片時間 拖延症 自我調節失敗。在能夠預料後果有害的情況下,仍然把計畫要做的事情往後推遲的一種行動。克服拖...