开发者

How I could to unmount active partition?

开发者 https://www.devze.com 2023-03-31 11:01 出处:网络
I try to use function DeleteVolumeMountPoint(L\"C:\\\\\"), but I have not access, and it\'s right. But I need to delete active partition, and I\'m search way to do it. Please, could you give me exampl

I try to use function DeleteVolumeMountPoint(L"C:\\"), but I have not access, and it's right. But I need to delete active partition, and I'm search way to do it. Please, could you give me example to delete this partition开发者_Go百科 (unmount it). Operation Systems XP/Vista/7.


The problem is that you cannot unmount the active partition Windows is running on. You should do such operation in a more "native" way like Fdisk does or at reboot.

There are some programs also from SysInternals that calling the native NT Apis perform page file defrag, for example, during the boot time.

The disk management program included in Windows NT/XP/Vista does not allow you to do this either if I remember well.

NT Native APIs


As I suspect the system (the operating system itself) has all of its files on this partition, several of them must be actually in use. I doubt you can unmount this system partition.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号