차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판다음 판 | 이전 판 | ||
| tech:smartctl [2022/11/16 12:39] – 제거됨 - 바깥 편집 (Unknown date) 127.0.0.1 | tech:smartctl [2022/11/30 15:04] (현재) – 172.70.49.203 | ||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| + | {{tag> | ||
| + | ====== | ||
| + | |||
| + | 디스크 정보 조회 | ||
| + | sudo smartctl -i /dev/sda1 | ||
| + | |||
| + | 자가진단 결과 조회. PASSED이면 정상 | ||
| + | sudo smartctl -H /dev/sda1 | ||
| + | |||
| + | SMART값 상세 조회 | ||
| + | sudo smartctl -a /dev/sda1 | ||
| + | | ||
| + | 스마트 숏 테스트 (1분 내외) | ||
| + | smartctl -t short /dev/sdb | ||
| + | |||
| + | 스마트 롱 테스트 ( 373분) | ||
| + | smartctl -t long /dev/sdb | ||
| + | |||
| + | 첫 베드섹터 출력 | ||
| + | smartctl -l selftest /dev/sbd | ||
| + | =====파일시스템검사/ | ||
| + | fsck / | ||
| + | |||
| + | =====배드섹터 파괴하기===== | ||
| + | |||
| + | 해당 섹터를 지워버림. | ||
| + | hdparm --write-sector | ||
| + | |||
| + | =====기타===== | ||
| + | |||
| + | ====현재 보류 중인 섹터 수(Current_Pending_Sector)==== | ||
| + | |||
| + | [[Current_Pending_Sector]]는 디스크에서 재매핑 대기 중인 불안정한 섹터의 현재 수를 표시하는 S.M.A.R.T 매개변수임. 이 섹터를 나중에 성공적으로 읽으면 카운트가 감소함. 드라이브가 영향을 받은 섹터의 데이터 읽기를 다시 시도하는 데 실패하면 이러한 섹터는 예비 드라이브 공간에 재할당된다. 섹터가 재할당되면 현재 보류 중인 섹터 수는 감소하고 재할당된 섹터 수(Reallocated_Event_Count)는 증가함. | ||
| + | |||
| + | 이 수치가 계속 증가한다면, | ||
| + | |||
| + | 이 수치가 상당히 낮고 급격하게 증가하지 않는다면, | ||
| + | |||
| + | ===복구=== | ||
| + | 제로필(Zero fill) 포맷로 해당 섹터에 ' | ||
| + | |||
| + | 이후 복구될 수도 있고, | ||
| + | 일시적으로 에러가 없어진 것일 수도 있다. | ||
| + | ====Reallocated_Event_Count==== | ||
| + | |||
| + | 드라이브가 영향을 받은 섹터의 데이터 읽기를 다시 시도하여 실패하고, | ||
| + | |||
| + | |||
| + | |||
| + | ID# | ||
| + | 1|Raw_Read_Error_Rate | ||
| + | 2|Throughput_Performance | ||
| + | 3|Spin_Up_Time | ||
| + | 4|Start_Stop_Count | ||
| + | 5|Reallocated_Sector_Ct | ||
| + | 7|Seek_Error_Rate | ||
| + | 8|Seek_Time_Performance | ||
| + | 9|Power_On_Hours | ||
| + | | ||
| + | | ||
| + | 192|Power-Off_Retract_Count 0x0032 | ||
| + | 193|Load_Cycle_Count | ||
| + | 194|Temperature_Celsius | ||
| + | 196|Reallocated_Event_Count 0x0032 | ||
| + | 197|Current_Pending_Sector | ||
| + | 198|Offline_Uncorrectable | ||
| + | 199|UDMA_CRC_Error_Count | ||
| + | |||
| + | |||
| + | |||
| + | ID# ATTRIBUTE_NAME | ||
| + | 1 Raw_Read_Error_Rate | ||
| + | 3 Spin_Up_Time | ||
| + | 4 Start_Stop_Count | ||
| + | 5 Reallocated_Sector_Ct | ||
| + | 7 Seek_Error_Rate | ||
| + | 9 Power_On_Hours | ||
| + | 10 Spin_Retry_Count | ||
| + | 11 Calibration_Retry_Count 0x0032 | ||
| + | 12 Power_Cycle_Count | ||
| + | 192 Power-Off_Retract_Count 0x0032 | ||
| + | 193 Load_Cycle_Count | ||
| + | 194 Temperature_Celsius | ||
| + | 196 Reallocated_Event_Count 0x0032 | ||
| + | 197 Current_Pending_Sector | ||
| + | 198 Offline_Uncorrectable | ||
| + | 199 UDMA_CRC_Error_Count | ||
| + | 200 Multi_Zone_Error_Rate | ||
| + | |||
| + | |||
| + | smartctl -f hex,id -a /dev/sda | ||
| + | ID를 16진수로 출력. | ||
| + | |||
| + | < | ||
| + | ID# ATTRIBUTE_NAME | ||
| + | 0x05 Reallocated_Sector_Ct | ||
| + | 0x09 Power_On_Hours | ||
| + | 0x0c Power_Cycle_Count | ||
| + | 0xb1 Wear_Leveling_Count | ||
| + | 0xb3 Used_Rsvd_Blk_Cnt_Tot | ||
| + | 0xb5 Program_Fail_Cnt_Total | ||
| + | 0xb6 Erase_Fail_Count_Total | ||
| + | 0xb7 Runtime_Bad_Block | ||
| + | 0xbb Reported_Uncorrect | ||
| + | 0xbe Airflow_Temperature_Cel 0x0032 | ||
| + | 0xc3 Hardware_ECC_Recovered | ||
| + | 0xc7 UDMA_CRC_Error_Count | ||
| + | 0xeb Unknown_Attribute | ||
| + | 0xf1 Total_LBAs_Written | ||
| + | </ | ||
| + | |||