vmareWorkstation-extract-vmdk-filesystem

Reference blog post - CSDN-BugM (author) - mount vmdk as a hard disk to another virtual machine of linux system

1. Run wmware-workstation as an administrator

2. Map the target vmdk file to a linux virtual machine

insert image description here
Select the Add button on the bottom left

insert image description here
insert image description here
insert image description here
The path of the added file can check the situation of the virtual machine that needs to be added, such as the path in the upper right corner here (some folders will have multiple vmdk files, which can be determined according to this method):

insert image description here

3. The file system for mounting vmdk files under linux

1. Check hard disk status

sudo fdisk -l

Find the hard disk you just added (maybe you can find it by the size of the disk you just allocated, or the newly added ones are in /dev/sdb and other directories). The
Devices below is
the next target to be hung. Note that the Type in the lower right corner of the figure below determines
the parameters of the file system for subsequent mount commands Mount
insert image description here

sudo mkdir /mnt/freebsd
sudo mount -t ufs -o ufstype=ufs2 /dev/sdb1 /mnt/freebsd
# 如果是linux系统的文件系统,可能需要将-t 参数的内容指定为-t ext4

insert image description here

Guess you like

Origin blog.csdn.net/weixin_52111404/article/details/131390104