Vista : System restore / Transaction manager preventing dismount of disk.

I have a Vista virtual machine running on a Xen server.

I use Xen Center’s “Attach” functionality to attach the system disk from a different, stopped, Vista VM to my running VM.

The hardware appears, the disk is mounted and I have a new drive E:

But … when I use the “safely remove hardware” UI to get rid of the device I get the “Windows cannot stop your device because a program is still using it”.

This only happens when attaching a Vista system disk into a Vista VM.

After the “safely remove hardware” attempt, !handle shows the following kernel handles still owned by the system process.

$Extend$RmMetadata$TxfLog$TxfLog.blf {HarddiskVolume2}
$Extend$RmMetadata$TxfLog$TxfLogContainer00000000000000000001 {HarddiskVolume2}
$Extend$RmMetadata$TxfLog$TxfLogContainer00000000000000000002 {HarddiskVolume2}

\Device\HarddiskVolume2$Extend$RmMetadata$TxfLog$TxfLog {clfs}
\Device\HarddiskVolume2$Extend$RmMetadata$TxfLog$TxfLog {clfs}
\Device\HarddiskVolume2$Extend$RmMetadata$TxfLog$TxfLog {clfs}

\System Volume Information{3808876b-c176-4e48-b7ae-04046e6cc752} {HarddiskVolume2}
\System Volume Information{340a2055-7e29-11de-aca3-3a52f88720d9}{3808876b-c176-4e48-b7ae-04046e6cc752} {HarddiskVolume2}
\System Volume Information{0c943a7a-82ad-11de-9caa-3a52f88720d9}{3808876b-c176-4e48-b7ae-04046e6cc752} {HarddiskVolume2}
\System Volume Information{b7f59f88-8082-11de-a207-3a52f88720d9}{3808876b-c176-4e48-b7ae-04046e6cc752} {HarddiskVolume2}
\System Volume Information{0c943a80-82ad-11de-9caa-3a52f88720d9}{3808876b-c176-4e48-b7ae-04046e6cc752} {HarddiskVolume2}
\System Volume Information{33a18f47-8113-11de-926f-3a52f88720d9}{3808876b-c176-4e48-b7ae-04046e6cc752} {HarddiskVolume2}
\System Volume Information{21ac76ce-8219-11de-b0fc-3a52f88720d9}{3808876b-c176-4e48-b7ae-04046e6cc752} {HarddiskVolume2}
\System Volume Information{0c943a74-82ad-11de-9caa-3a52f88720d9}{3808876b-c176-4e48-b7ae-04046e6cc752} {HarddiskVolume2}

Does anyone know a way to either

a) when the disk is plugged, stop Vista treating it as special and not do the transaction manager etc. stuff?
or b) convince Vista to cleanly close these handles?

Thank you,


Jon