Is there a way to prevent Windows from taking control of a hard drive?

6

2

I own a copy of SpinRite, a hard drive recovery and maintenance utility, that can't run under Windows because it requires such low-level access to the drive. Typically, you create a boot disc that runs SpinRite on top of FreeDOS in order to scan your drives. This means the computer is out of commission for that time. Unfortunately, theses scans can take anyware from several hours to several days depending on the size and condition of the drive and the level at which you run SpinRite.

I have an ESATA drive dock and I have been able to get SpinRite to work in a VMware Workstation VM by giving VMware direct access to the drive in the dock, thus allowing me to continue to use the host computer while the SpinRite VM cranks away. However, this only works with a drive that has not yet been partitioned. If the drive has been partitioned, Windows takes control of it and I am not able to give VMware direct access to it.

Is there some way to force Windows to relinquish control of a hard drive?

raven

Posted 2009-07-17T13:20:03.167

Reputation: 5 135

Answers

1

Remove the drive letter assignment from the volume manager in the control panel and reboot. (I have a German Windows so I can't tell you the exact name)

That way there's no high-level access possible to that drive and that might be just enough to allow VMware to access the drive.

Daniel Rikowski

Posted 2009-07-17T13:20:03.167

Reputation: 668

Doesn't work. VMware still can't get access to the drive. If the space is allocated, Windows owns it. – raven – 2009-07-17T23:20:20.973

1

If your can't obtain a lock, that says that the system is using the disk for some reason. It could be that you have some system files stored on the drive (pagefile, or user profiles), but most likely the problem is that the Windows Search Service is indexing the drive.

To see what handles (files) are open on your external drive

  • Download Handle. Save that to your C:\Windows folder.

  • Open a Command Prompt and type "handle E:" (replace E: with your drive letter)

  • That will show all of the files that are currently being accessed.

  • Use "handle -p ??? -c ???" command to force close each handle (runhandle -?` for help)

Chris Thompson

Posted 2009-07-17T13:20:03.167

Reputation: 4 765

0

Use the LockDismount utility referred to in this boot-land.net post to temporarily unmount the drive from the Windows volume manager.

RolKau

Posted 2009-07-17T13:20:03.167

Reputation: 826

0

This is a very old posting. Did you check the boot information/order in the CMOS setup? Is it possible that the boot sector of your locked drive was used during boot, then further loading passed to the Windows disk? This would make it look like the drive was not in use, but still lock the drive because it was used for boot. If so, try shuffling your hard disks and the boot order so your locked drive isn't used.

tahoar

Posted 2009-07-17T13:20:03.167

Reputation: 231

0

Use the disk management console to unmount the volumes on the drive.

Within disk management, right click on all partitions on the target drive, select the drive letter, and click "remove".

This will unmount the volume(s) and should allow your tools to have full access.

dss539

Posted 2009-07-17T13:20:03.167

Reputation: 281

right click on the disk, choose "offline". Now windows won't touch it, but programs like true crypt or VMware can still access it directly. – DanO – 2010-05-27T18:48:22.990

There is no "remove" option. – raven – 2009-07-17T22:36:40.127

0

  1. Start > Run > diskmgmt.msc
  2. Right-click drive on the bottom half of the screen after it loads
  3. Change Drive Letters and Paths
  4. Highlight the offending drive and click "Remove"

tsilb

Posted 2009-07-17T13:20:03.167

Reputation: 2 492

You might want to read the existing answers before posting. This was suggested already and it didn't work. – raven – 2009-07-18T20:17:18.853

Was making sure he was in the right dialog by giving the instructions more granularly. – tsilb – 2009-07-18T21:04:33.153

0

No.

It looks like the only solution to your problem is to make a bootable CD (or floppy) and boot from that to use the tool.

Josh Hunt

Posted 2009-07-17T13:20:03.167

Reputation: 20 095

0

This is mostly speculation, but have you tried disabling the volume (but not the whole device) in device manager?

Eric

Posted 2009-07-17T13:20:03.167

Reputation: 176