我如何卸载活动分区?
我尝试使用函数DeleteVolumeMountPoint(L"C:\\")
,但我无法访问,这是正确的。但我需要删除活动分区,我正在寻找方法来做到这一点。请给我一个删除这个分区(卸载它)的例子。操作系统 XP/Vista/7。
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 (unmount it). Operation Systems XP/Vista/7.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于我怀疑系统(操作系统本身)的所有文件都位于该分区上,因此其中一些文件肯定正在实际使用中。我怀疑你可以卸载这个系统分区。
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.
问题是您无法卸载运行 Windows 的活动分区。您应该像 Fdisk 那样或在重新启动时以更“本机”的方式执行此类操作。
还有一些来自 SysInternals 的程序,例如在启动时调用本机 NT API 执行页面文件碎片整理。
如果我没记错的话,Windows NT/XP/Vista 中包含的磁盘管理程序也不允许您执行此操作。
NT 本机 API
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