Forum archive
Mounting vmdk to access the filesystem of a VM
Hello,
I am trying to accesss the file system of a turnkey. There a vmware-mount utility that is easy to use as
mkdir mount_test
vmware-mount turnkey-wordpress-11.2-lucid-x86.vmdk 1 mount_test
once it is mounted i was expecting to see the standard file system structure i.e /usr/ /home /bin etc but instead I see :
/grub
/lost+found
config-2.6.32-33-generic-pae
initrd.img-2.6.32-33-generic-pae
System.map-2.6.32-33-generic-pae
vmlinuz-2.6.32-33-generic-pae
the grub folder seems to have some linux commands
I suppose that the generic-pae files are some type of images that I also have to mount in order to access the actual files in the file system. It seems that some are the the linux kernel image, but propably some of the gereric-pae is the actual file system image.
Since I am not that experience, If anyone understands something, and can enlight me even a litle bit I would very thankfull.
Thanks in advance
Kostas
I've never used vmware-mount before, so I can't give you any tips. All I can say is its going to be a little difficult to get to the rootfs, as the VM builds contain a raw disk, which has 2 partitions, one for the boot partition and the other for the rootfs. Additionally, the rootfs is setup with LVM, having 2 VG's, one for the root, and the other swap. Everything is possible, but is it worth the effort?
Bottom line, if all you want is access to the rootfs, I'd suggest you get the ISO build, and use TKLPatch to unpack it:
When TKLPatch extracts the ISO, it will generate a cdroot (bootloader and compressed rootfs), and rootfs (the uncompressed root filesystem).
Hope the above helps.