Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 



I am unable to run CHKDSK, it cannot lock or open volume for direct access.

RSS
Subscribe to Windows IT Pro | See More Storage Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A. When you run Check Disk (CHKDSK) or AutoChk on a partition on which NT is installed you may receive one of the following messages

  • Cannot lock volume for direct access
  • Cannot open volume for direct access

This can be caused by a 3rd party application locking the partition such as a virus checker or disk monitor tool. To correct disable any 3rd party services or devices that may be locking the partition.

  1. Start the Services control panel applet (Start - Settings - Control Panel - Services)
  2. Select the service and click Startup
  3. Set the startup type to Manual and click OK
  4. Repeat for any other services
  5. Start the Devices control panel applet (Start - Settings - Control Panel - Devices)
  6. Set the startup type to disabled for any 3rd-party devices who you think might be causing the lock problem but BE CAREFUL. If you are unsure the device you are disabling may stop system startup create a second hardware profile and test (see 'Q. How can I safely disable a device?').
  7. Restart the machine, the drive should no longer be locked

End of Article



Reader Comments
Way too complicated. Just run the following batch file from the cmd shell or from Scheduled Tasks to take care of the "Volume/Services running" issue:

@echo off

rem File: Chk_Disk.bat
rem Use: WinXP

rem Synopsis:
rem Chkdsk.exe will not run from the command-line becuase it thinks the
rem volume is mounted and there are file conflicts. So best to restart in order
rem for it to run. This also forces all running applications to be unloaded.

rem chkdsk
rem /f = Fix Issues Found
rem /v = Display Cleanup Info for NTFS Volumes
rem /r = Find bad sectors
echo y | chkdsk /f /v /r

rem shutdown
rem -r = Restart after shutdown
rem -f = Force shutdown of any running programs
rem -t = Forces shutdown in # of seconds shown (5 here)
shutdown -r -f -t 5

Tom Oliphint June 08, 2004


Excellent Article! This is for when chkdsk doesn't run as it is should. The comment from Todd is off track over complicated. Basically he tells you how to run chkdsk, which you already knew. Also, you don't need to create batch file to run a single command line "CHKDSK /F".

orzo July 28, 2004 (Article Rating: )


But what if "chkdsk /f" has no effect on reboot?

Anonymous User April 22, 2005 (Article Rating: )


I cannot fully post the fix because I only have 2000 characters to post, but please go to this site, http://www.geekstogo.com/forum/index.php?showtopic=88059 and lookup the user "chkdsk_helper". There you will find the solution to make chkdsk work properly.

guest March 16, 2007 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Confirmed: Battery Life Issues Not Windows 7's Fault

Microsoft on Monday issued a lengthy statement about the recent Windows 7 battery controversy, echoing my assessment from earlier in the day, but backing it up with hard, cold evidence. ...

Battery Life Issues Almost Certainly Not Windows 7's Fault

While Microsoft is still investigating a notebook battery life issue that was supposedly caused by Windows 7, some interesting trends have emerged. ...

Microsoft Warns of Windows Version Expirations

Microsoft warned that this year will see three out-of-date Windows versions slip into retirement. ...


Storage Whitepapers Turn to a Proven Server and Storage Migration Solution

The Impact of Disk Fragmentation on Servers

Take Control of Your Email: Understand the Business Reasons for Email Storage Management

Related Events Disk-to-Disk Grows Up

Deep Dive into Windows Server 2008 R2 presented by John Savill

Check out our list of Free Email Newsletters!

Storage eBooks A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Keeping Your Business Safe from Attack: Encryption and Certificate Services

Related Storage Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2010 Penton Media, Inc. Terms of Use | Privacy Statement