Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 80ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login Register
m

mount

Recently created Least recently created Recently updated Least recently updated
scusi

scusi / Vhdx on Desinfect

Last active 6 months ago Vhdx desinfect mount

https://0x41414141.de/blog/2021-12-31-vhdx-on-desinfect/

0 0 4
1 #!/bin/bash
2 #
3 # This script takes one argument, which is the mountpoint where the VHDX image was mounted.
4 # Note: this is the second argument used when executing mount_vhdx.sh
5
6 MOUNT_POINT="$1"
7
8 #unmount & remove nbd module
9 sudo umount "$MOUNT_POINT" && sudo qemu-nbd -d /dev/nbd0 && sudo rmmod nbd