VirtualBox的动态大小硬盘原理是什么?
您知道 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
原理很简单 - 当向 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.