在 Linux 中创建和修改 VDI 磁盘映像的内容

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7752621/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 06:40:29  来源:igfitidea点击:

Create and modify the contents of a VDI disk image in Linux

linuxvirtualboxntfsvdi

提问by Jonathan Williamson

Is there any way I can create a Virtual Box disk image (.vdi) that is NTFS formatted and copy a set of files to it prior to attaching it to an already configured instance as a second disk using VBoxManage?

有什么方法可以创建一个 NTFS 格式的 Virtual Box 磁盘映像 (.vdi) 并在使用 VBoxManage 将它附加到已配置的实例作为第二个磁盘之前将一组文件复制到它?

采纳答案by Shamit Verma

Yes, you will have to:

是的,您必须:

  1. "Aattch" the VDI file as another disk device
  2. "Mount" NTFS partitions in that VDI file
  1. “附加” VDI 文件作为另一个磁盘设备
  2. 在该 VDI 文件中“挂载”NTFS 分区

Ways of doing that are described in this post:

在这篇文章中描述了这样做的方法:

https://serverfault.com/questions/210684/how-do-you-mount-a-vdi-image-on-linux

https://serverfault.com/questions/210684/how-do-you-mount-a-vdi-image-on-linux