dismount-lock non-boot volume from cmd line?

J

JClark

Hello Group:
There are times when I can't do operations on a non-boot hard drive
because of open handles. If I run chkdsk on command line by changing
to that drive then using chkdsk command, then chkdsk offers to
dismount the drive and will do so. Problem is I have to wait until
chkdsk completes to get my drive dismounted or locked.
(I know you can use /x switch with chkdsk, but that doesn't save much
time.)
Is there any command I can use from the command line to dismount or
lock a non-boot hard drive without having to run chkdsk and wait for
it to complete? I figured if chkdsk can do it, maybe I can too.
I can't find anything on the MS support site or in the Reskit which
seems to apply ...(looked up "lock", "dismount", "volume").
Any advice greatly appreciated.
(This msg was posted to windows.2000.general without reply. Perhaps I
should have posted it here. Apologies if this isn't correct policy.)

Jack
 
M

Mark Zbikowski \(MSFT\)

For XP and Windows 2003 server, the fsutil command will work
for you.

You'
--
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.

ll have to write your own tool for Windows 2000.



For Windows 2000, you
 
Joined
Oct 19, 2009
Messages
1
Reaction score
0
It works it just says; Error: Access Denied.

Mark Zbikowski \(MSFT\) said:
For XP and Windows 2003 server, the fsutil command will work
for you.

You'
--
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.

ll have to write your own tool for Windows 2000.



For Windows 2000, you
"JClark" wrote in message
news:[email protected]...
> Hello Group:
> There are times when I can't do operations on a non-boot hard drive
> because of open handles. If I run chkdsk on command line by changing
> to that drive then using chkdsk command, then chkdsk offers to
> dismount the drive and will do so. Problem is I have to wait until
> chkdsk completes to get my drive dismounted or locked.
> (I know you can use /x switch with chkdsk, but that doesn't save much
> time.)
> Is there any command I can use from the command line to dismount or
> lock a non-boot hard drive without having to run chkdsk and wait for
> it to complete? I figured if chkdsk can do it, maybe I can too.
> I can't find anything on the MS support site or in the Reskit which
> seems to apply ...(looked up "lock", "dismount", "volume").
> Any advice greatly appreciated.
> (This msg was posted to windows.2000.general without reply. Perhaps I
> should have posted it here. Apologies if this isn't correct policy.)
>
> Jack
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top