DISKCHEC.1
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- .TH DISKCHECK 1
- .SH NAME
- diskcheck - check a disk for bad sectors
- .SH SYNOPSIS
- fBdiskcheck fIdevice fIstart fIcountfR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH EXAMPLES
- .EX "diskcheck /dev/at0 0 1200" "Check 1.2 MB diskette"
- .EX "diskcheck /dev/at0 100 50" "Check blocks 100 to 149"
- .SH DESCRIPTION
- .PP
- fIDiskcheckfR checks a disk for bad sectors by reading in each sector,
- writing a known bit pattern onto it, reading it back in and comparing with
- what was written. This check is then done a second time. Bad sectors are
- reported. After each sector is tested, the original sector is restored.
- Only use this program on unmounted partitions.
- Killing it part way through may result in lost data.
- .SH "SEE ALSO"
- .BR format (1).