linux - 使用 power iso 提取 VMDK 文件

标签 linux extract linux-mint

我试图通过使用以下命令在 linux mint 中使用 poweriso 提取 vmdk 文件,

poweriso extract sample-disk1.vmdk / -od /home/local/test/VMDK/extracted/

但是,我收到以下错误,

PowerISO   Copyright(C) 2004-2008 PowerISO Computing, Inc
        Type poweriso -? for help

sample-disk1.vmdk: The file format is invalid or unsupported.

根据文档here power iso支持vmdk文件,

Support all popular virtual disc image files, such as VMWare Virtual Disc Images(*.vmdk), VirtualBox Virtual Disc Images(*.vdi), Virtual PC Virtual Disc Images(*.vdi).

如何使用 power iso 提取 vmdk 文件?

最佳答案

我提供的信息是我用来挂载 qcow2 镜像的,我希望这同样适用于 vmdk。

安装GuestFish

$> apt-get install libguestfs-tools

挂载qcow2镜像

$> guestfish
Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.

Type: 'help' for help on commands
'man' to read the manual
'quit' to quit the shell

><fs> add vAP.qcow2
><fs> run
><fs> list-filesystems 
   /dev/sda1: ext2
   /dev/sda2: ext2
   /dev/sda3: ext2
   /dev/sda4: reiserfs
><fs> mount /dev/sda2 /
><fs> ls /
     .ash_history
     .rnd
     .ssh
     ash_env
     bin
     boot
     bzImage
     custom
     defaults
     dev
><fs> umount /
><fs> exit

您可以使用复制输入和复制输出将文件从 vmdk 复制到主机,反之亦然

关于linux - 使用 power iso 提取 VMDK 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36544343/

相关文章:

linux - 在 KDE Linux Mint 12 上删除 RVM 以作为单用户重新安装 RVM

java - Spring batch FileItemWriter 没有在正确的路径创建文件

java - 从 "messy"Java 字符串中提取多种数据类型

linux - 从 crontab 重启 ea-tomcat85

regex - 正则表达式从 HTML 中提取所有文件

jquery - 从字符串 jQuery 中提取前 n 个单词,jQuery 中的 WordPress 样式摘录(x 单词数)

ruby-on-rails - 在终端输出上播放声音

linux - 无法更新适用于 Linux 的 Github 桌面(错误 : 429 Too Many Requests)

node.js - Node 应该使用什么环境变量来加载库?

linux - 长时间禁用中断/抢占会产生什么后果?