Subscribe to Windows IT Pro
July 03, 1999 12:00 AM

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

Windows IT Pro
InstantDoc ID #14614
Rating: (7)

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

Related Content:

ARTICLE TOOLS

Comments
  • guest
    5 years ago
    Mar 16, 2007

    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.

  • Anonymous User
    7 years ago
    Apr 22, 2005

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

  • orzo
    8 years ago
    Jul 28, 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".

  • Tom Oliphint
    8 years ago
    Jun 08, 2004

    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

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.