VirtualBox的动态大小硬盘原理是什么?

发布于 2024-09-28 21:13:35 字数 334 浏览 2 评论 0原文

您知道 TrueCrypt 项目吗?

它创建一个容器文件并对其进行格式化。
容器文件将被视为一个卷。
当我们对卷进行 I/O 操作时,I/O 将被加密。

顺便问一下,容器文件大小可以像virtualbox的动态硬盘(.vdi文件)一样灵活吗?

我制作了一个像 TrueCrypt 一样的 crypt 驱动程序。
但即使我尚未写入任何数据,我的容器文件也始终保留磁盘大小。

如何在 Windows 中实现此功能。
原理是什么。

谢谢。

Do you know TrueCrypt Project?

It makes a container file and formats it.
The container file will be seen as like a volume.
An we do I/O to the volume, the I/O will be crypted.

By the way, can the container file size be flexible like virtualbox's dynamic hard disk(.vdi file)?

I made a crypt driver like the TrueCrypt.
But my container file always hold disk size even if I don't write any data yet.

How can I implement this feature in Windows.
What is the principle.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

总攻大人 2024-10-05 21:13:35

原理很简单 - 当向 virtualbox 写入数据时,就会分配 virtualbox 硬盘的实际空间。还可以使用稀疏文件。

据我所知,TrueCrypt 会加密所有磁盘内容,在磁盘的每个扇区上执行写入操作(也是为了使加密更强),因此 afaik 不可能拥有动态调整大小的 truecrypt 磁盘。

通常,文件系统应支持动态调整大小,以便此功能有效工作。但是,对于常规文件系统(FAT、NTFS、extX 等),无需收缩,因为它们被设计为占用硬盘上专用的空间。

我们的 SolFS 产品提供了一个在设计时就考虑到调整大小的文件系统,并且它还支持 on-the-飞行加密,两者可以独立使用。 SolFS 的操作系统版本允许您创建虚拟磁盘,使用驱动器号可见。

The principle is simple - actual space for virtualbox's hard disk is allocated when something is written there. There can also be sparse files used.

TrueCrypt, as I know, encrypts all disk contents, performing writing on each sector of the disk (also to make encryption stronger), so afaik it's not possible to have a dynamically resizable truecrypt disk.

Normally file systems should support dynamic sizing in order for this feature to work efficiently. However, for regular file systems (FAT, NTFS, extX etc.) there's no need to be shrinkable as they were designed to occupy space, dedicated for them on hard disk.

Our SolFS product offers a file system that was designed with resizing in mind and it also supports on-the-fly encryption and both can be used independently of each other. And OS edition of SolFS lets you create a virtual disk, visible using drive letter.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文