Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unexposing a snapshot in XP (Volume Shadow Copy)

Microsoft provides a way of mounting a read-only snapshot as a volume using their vshadow program. However, it does not provide a way to unmount the snapshot (I wonder what would happen if I deleted the snapshot?). Going through the documentation on MSDN I found UnexposeSnapshot Method, and added the ability to use it in the vshadow. However, it says that it's only supported for Vista and Server 2008 machines. Is there anyway around this? The XP configuration for vshadow won't compile. It would be really bizarre if Microsoft wrote a way to mount volume shadow copies in XP and server 2003, yet didn't provide a way to unmount them.

Any ideas?

like image 715
Malfist Avatar asked Apr 06 '09 18:04

Malfist


1 Answers

Use Windows' built-in mount management utility mountvol.exe.

On API level, you should be able to use DeleteVolumeMountPoint.

like image 138
Tobiesque Avatar answered Oct 14 '22 03:10

Tobiesque