You can also use tools such as 'swatch' to monitor the messages file for any error messages that might indicate a disk problem and then mail you. To check your hard drive for errors, run the elevated command prompt (with administrator permissions).
#HOW TO RUN A DISK CHECK ON A DRIVE HOW TO#
I'm in the middle of looking at maybe using nagios and nrpe to remotely monitor aspects of my Linux systems from a central console (I'm looking at how to extact info from the HPASM daemons now using SNMP). If you have HPSIM on your site then even better - because that can do it for you if you configure it correctly. If you're feeling adventurous you might be able to do something with SNMP to get it to send out traps when a fault occurs. These together will allow you to view the internal disk status.
![how to run a disk check on a drive how to run a disk check on a drive](https://www.thewindowsclub.com/wp-content/uploads/2019/05/CheckDrive-Hard-disk-Information.png)
Enter Y when asked whether you wish to run chkdsk on restarting the computer. Make sure you include the spaces indicated. Type 'chkdsk c: /f /r' without the quotes and hit ENTER. HPSMH and the associated daemons will allow you to see the status of attached storage such as an MSA. Select Start, Run, type cmd and press ENTER. HPASM's cpqimlview will let you see any alerts raised by ILO. If the disks are internal, you can use the HP tools such as HPASM and HPSMH. Replace C: with the letter of the drive you’d like to run a disk check. You can run the chkdsk command to run the disk check.
#HOW TO RUN A DISK CHECK ON A DRIVE WINDOWS#
In Windows 7, click on Start, navigate to Accessories, right-click on Command Prompt and select Run as administrator.
![how to run a disk check on a drive how to run a disk check on a drive](http://1.bp.blogspot.com/-7jz9tTBOpAk/Tupfk51J43I/AAAAAAAAAOE/Y3ZYAjAI89M/w1200-h630-p-k-nu/scandisk.jpg)
Note If you want to perform a detailed test of the hard drive, you can select the Scan for and attempt recovery of bad sectors check box.
As with the previous command, the volume is the letter of the drive you'd like to repair. In the Check DiskTo repair errors and scan for bad sectors, type 'chkdsk 'volume': /r' and press enter. To repair errors without scanning for any bad sectors, type 'chkdsk volume :/r' and press enter, where 'volume' is the letter of the drive you'd like to scan, whether it's C or D, or otherwise.
Step four: Things begin to get a little more technical here, but you'll need to type 'chkdsk' followed by a specific command to repair any errors you may encounter. In the Check DiskStep three: When the Command Prompt window appears, you only need to type 'chkdsk' to begin the scanning process.
![how to run a disk check on a drive how to run a disk check on a drive](https://i2.wp.com/techtrickz.com/wp-content/uploads/2010/07/Checkdrive.jpg)
Step two: Enter 'cmd' into the box and search. Step one: Go to the Start Menu once you've successfully booted your machine and search for the 'run' application. You can either use Recovery Mode, or the original installation medium to boot and then run Command Prompt in order to run Chkdsk this way. Chkdsk can also be run using Command Prompt, if running it from the operating system is not feasible.