Skip to content

tristanlifn/Disk-initialization-and-checking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Check and initialize disk

This tool is designed to make it easy to check a disk for bad sectors.

It is intended for use with uninitialized drives, and uses "diskpart" to enable and create a partition, so "chksdk" can scan it.

Usage

Edit the ps1 file, and change $diskNum to the number of the disk you want to check.

Change $chkdskCmd to either /x or /r depending on if you want to do a quick scan, or a slow, but detailed scan.

Change $diskLetter to the letter you want assigned to the disk, REMEMBER to put a : after the letter.

Check results

to see the results of the command, you can check the log folder, automatically created in the same3 directory as the ps1 file. the output is in a txt file named the serial number of the drive.

About

A small script to check a disk for bad sectors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors