Skip to content

How to mount disk image created by multipass to recover data #3688

Answered by andrei-toterman
mores asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, @mores! Sorry to hear that you lost access to the files. If you want to investigate the root cause further, I suggest you open an issue in this repository, with as many details as possible that could help us figure out why it happened. Nevertheless, here is how you can recover the files from an instance:

  • Make a copy of the image of the VM (repalce <instance-name> with the actual name of the instance):
    sudo cp /var/root/Library/Application\ Support/multipassd/qemu/vault/instances/<instance-name>/*.img ~
    
  • Now you need access to a Linux machine. This can be just another functional Multipass instance that has enough disk space to be able to contain that img file.
  • Copy that img file to …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mores
Comment options

Answer selected by mores
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants