Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add fuse utility #54

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

add fuse utility #54

wants to merge 7 commits into from

Conversation

oliverkurth
Copy link
Contributor

@oliverkurth oliverkurth commented Mar 21, 2024

This adds a utility to mount a vmdk file as a raw disk image in read-only mode. The raw disk image can then be used with kpartx, or partfs (see https://github.com/braincorp/partfs) to access partitions, which can then be mounted. Example:

$ touch vmdk
$ vmdk-fuse --file=$(pwd)/minimal.vmdk ./vmdk
before fuse_main
$ ls -l
total 456800
-rw-r--r-- 1 okurth okurth  467756544 Mar 23 17:35 minimal.vmdk
-rw-r--r-- 1 okurth okurth 8589934592 Mar 23 17:35 vmdk     
$ mkdir partfs
$ partfs -o dev=./vmdk ./partfs/
$ ls -l partfs/
total 0
-rw-r--r-- 1 okurth okurth   10485760 Mar 23 17:35 p1
-rw-r--r-- 1 okurth okurth 7586430464 Mar 23 17:35 p2
-rw-r--r-- 1 okurth okurth  134217728 Mar 23 17:35 p3
-rw-r--r-- 1 okurth okurth  428867584 Mar 23 17:35 p4
-rw-r--r-- 1 okurth okurth  428867584 Mar 23 17:35 p5
$ mkdir p2
$ fuse2fs ./partfs/p2 ./p2 -o fakeroot,ro
Mounting read-only.
$ ls p2
bin  boot  dev  etc  extra  home  lib  lib64  lost+found  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
$ 

@oliverkurth oliverkurth force-pushed the topc/okurth/vmdk-fuse branch from e893e76 to 30d0f97 Compare March 21, 2024 20:21
@oliverkurth oliverkurth marked this pull request as draft March 23, 2024 18:02
@oliverkurth oliverkurth force-pushed the topc/okurth/vmdk-fuse branch 3 times, most recently from 4a3428f to 41195a1 Compare July 9, 2024 21:57
@oliverkurth oliverkurth force-pushed the topc/okurth/vmdk-fuse branch from 41195a1 to 2bcf6b2 Compare July 9, 2024 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants