Skip to content

UTM should warn before deleting orphaned drives #3587

@Guddler

Description

@Guddler

Describe the issue

UTM will delete an image file if it is renamed when you go into and back out of the disk settings. Guess how I know!

I was in the process of reclaiming disk space on my Windows disk by using sdelete in the guest and then manually cloning the disk with qemu-img as per the related issue below. I had got to the point of renaming the disk with a ".org" extension but had not run qemu-img yet. I wanted to just check something so I went into the disk settings for the VM and into the disk I was working on. I didn't do anything, and I even clicked "Cancel", not "Save" but as I came out of the disk settings, UTM deleted the renamed file. Sadly, the disk file was excluded from my daily backup due to it's size so it's time to reinstall Windows - my bad!

Sort of related issue: #3460

Configuration

  • UTM Version: 3.0.4 (46)
  • OS Version: 12.2
  • Intel or Apple Silicon? : Apple Silicon (M1 mini)

Debug log

qemu_debug.log

Upload VM

config.plist.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions