이런 세상..

[LINUX] DISK Badblocks 테스트 본문

> [IT]/>> Testing

[LINUX] DISK Badblocks 테스트

GANWI 2020. 1. 28. 10:01

[1] 비파괴 모드 (랜덤 패턴)

# badblocks -vsn /dev/sdb1
Checking for bad blocks in non-destructive read-write mode
From block 0 to 401593
Testing with random pattern: Pass completed, 0 bad blocks found.

 

[2] 파괴 모드 (ALL 패턴: 0~1000 블록까지 검사)

# badblocks -vsw /dev/sdb1 1000 0
Checking for bad blocks in read-write mode
From block 0 to 1000
Testing with pattern 0xaa: done
Reading and comparing: done
Testing with pattern 0x55: done
Reading and comparing: done
Testing with pattern 0xff: done
Reading and comparing: done
Testing with pattern 0x00: done
Reading and comparing: done
Pass completed, 0 bad blocks found.

 

[3] 테스트 모드 (0xff 패턴)

badblocks -t 0xff -o b_found_bad.txt -vsw /dev/sdb 2>b_test_result.txt

 // 찾은 badblock 결과: b_found_bad.txt

 // 테스트 결과: b_test_result.txt

Comments