[问题]能不能挂载虚拟磁盘?[自行解决]

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
头像
ghostry
帖子: 1532
注册时间: 2008-07-23 20:08
来自: http://www.ghostry.cn
送出感谢: 0
接收感谢: 1 次
联系:

[问题]能不能挂载虚拟磁盘?[自行解决]

#1

帖子 ghostry » 2008-09-20 21:42

想复制虚拟机里的文件,但是有不想开虚拟机了,我内存很小,开虚拟机得等半天。能不能把虚拟磁盘挂载到一个目录下边来用呢?

代码: 全选

$ vmware-mount -h
vmware-mount: invalid option -- 'h'
VMware DiskMount Utility version 7.0.1, build-227600

Usage: vmware-mount diskPath [partition num] mountPoint
       vmware-mount [option] [opt args]

There are two modes for mounting disks.  If no option is
specified, we mount individual partitions from virtual disks
independently.  The filesystem on the partition will be
accessible at the mount point specified.

The -f option mounts a flat representation of a disk on a
user-specified mount point.  The user must explicitly unmount
the disk when finished.  A disk may not be in both modes at once.

Options: -p <diskID>      list all partitions on a disk
         -l <diskID>      list all mounted partitions on a disk
         -L               list all mounted disks
         -d <mountPoint>  cleanly unmount this partition
                          (closes disk if it is the last partition)
         -f <diskPath> <mountPoint> mount a flat representation of the disk
                          at "mountPoint/flat."
         -k <diskID>      unmount all partitions and close disk
         -K <diskID>      force unmount all partitions and close disk
         -x               unmount all partitions and close all disks
         -X               force unmount all partitions and close all disks
上次由 ghostry 在 2010-06-08 13:06,总共编辑 1 次。
http://www.ghostry.cn狂网技术工作室,组网建站,平面设计,java项目,空间域名.
好心人点这里进去注册并且用一次,给我增加点流量http://tinyurl.com/272ncjl
电脑配置:
公司:880G/II250/1TB/2G1333/
家:785G+/II245+/1TB/2G677/
头像
ghostry
帖子: 1532
注册时间: 2008-07-23 20:08
来自: http://www.ghostry.cn
送出感谢: 0
接收感谢: 1 次
联系:

#2

帖子 ghostry » 2008-09-21 10:28

不能吗?
http://www.ghostry.cn狂网技术工作室,组网建站,平面设计,java项目,空间域名.
好心人点这里进去注册并且用一次,给我增加点流量http://tinyurl.com/272ncjl
电脑配置:
公司:880G/II250/1TB/2G1333/
家:785G+/II245+/1TB/2G677/
头像
想入非非
论坛版主
帖子: 8078
注册时间: 2008-07-14 22:42
来自: Beijing
送出感谢: 0
接收感谢: 0
联系:

Re: [问题]能不能挂载虚拟磁盘?

#3

帖子 想入非非 » 2008-09-21 20:19

虚拟机的磁盘好像只有相应的虚拟机才能够识别。。。 :evil:
Ubuntu User
头像
ofewiofewo
帖子: 547
注册时间: 2007-06-02 14:56
送出感谢: 0
接收感谢: 0

Re: [问题]能不能挂载虚拟磁盘?

#4

帖子 ofewiofewo » 2008-09-21 20:29

回复

回到 “虚拟机和虚拟化”