mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-08 23:14:06 +08:00
29 lines
2.1 KiB
HTML
29 lines
2.1 KiB
HTML
<h1 id="vdfuse">vdfuse</h1>
|
||
<p>VirtualBox软件挂载VDI分区文件工具</p>
|
||
<h2 id="补充说明">补充说明</h2>
|
||
<p><strong>vdfuse命令</strong> 是VirtualBox软件挂载VDI分区文件的一个工具,VirtualBox是一款能创建虚拟机的开源软件,vdi是它的默认磁盘格式。</p>
|
||
<h3 id="什么是virtualbox">什么是VirtualBox</h3>
|
||
<p>VirtualBox是一款功能强大的x86虚拟机软件,它不仅具有丰富的特色,而且性能也很优异。更可喜的是,VirtualBox于数日前走向开源,成为了一个发布在GPL许可之下的自由软件。VirtualBox可以在Linux和Windows主机中运行,并支持在其中安装Windows (NT 4.0、2000、XP、Server 2003、Vista)、DOS/Windows 3.x、Linux (2.4 和 2.6)、OpenBSD等系列的客户操作系统。</p>
|
||
<p><strong>在Ubuntu中安装vdfuse,打开终端,输入:</strong></p>
|
||
<pre><code class="language-bash">sudo apt-get install virtualbox-fuse</code></pre>
|
||
<h3 id="语法">语法</h3>
|
||
<pre><code class="language-bash">vdfuse [options] -f image-file mountpoint</code></pre>
|
||
<h3 id="选项">选项</h3>
|
||
<pre><code class="language-bash">-h 帮助
|
||
-r 只读
|
||
-t 类型 (VDI, VMDK, VHD, or raw; default: auto)
|
||
-f 镜像文件
|
||
-a 允许所有用户读取
|
||
-w 允许所有用户都写
|
||
-g 前台运行
|
||
-v 输出反馈
|
||
-d debug模式</code></pre>
|
||
<p>注意:必须编辑一下<code>/etc/fuse.confand</code>,去掉 “user_allow_other” 前面的注释符号(#),否则不能正确运行。</p>
|
||
<h3 id="实例">实例</h3>
|
||
<p>使用如下如下语句挂载.vdi文件:</p>
|
||
<pre><code class="language-bash">sudo vdfuse -f /path/to/file.vdi /path/to/mountpoint</code></pre>
|
||
<p><code>/path/to/mountpoint</code>应该包含如下文件EntireDisk、Partition1等,如果只有一个文件,你可能需要这样挂载:</p>
|
||
<pre><code class="language-bash">mount /path/to/mountpoint/Partition1 /path/to/someother/mountpoint</code></pre>
|
||
<p>文件系统就挂载到<code>/path/to/someother/mountpoint</code>了。</p>
|
||
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
|