ZealOS/just_mnt.sh

10 lines
294 B
Bash
Raw Normal View History

2021-07-02 00:53:42 +01:00
#!/bin/bash
echo "mounting..."
sudo modprobe nbd
#sudo qemu-nbd -c dev/nbd0 ~/VirtualBox\ VMs/ZealOS/ZealOS.vdi #Replace with path to disk
sudo qemu-nbd -c dev/nbd0 ~/vmware/ZealOS/ZealOS.vmdk #Replace with path to disk
2021-07-02 00:53:42 +01:00
sudo partprobe /dev/nbd0
sudo mount /dev/nbd0p1 /mnt
echo "mounted .vdi"