I have installed virtualbox in Debian 9. Then, I installed FreeDOS in the virtual box folling the tutorial in http://wiki.freedos.org/wiki/index.php/VirtualBox_-_Chapter_6. I have installed the libguestfs-tools and fuse.

Now, when I run guestmount -a freeDOS.vhd -m /dev/sda1 /data/freeDOS

I get this guestmount: access: freeDOS.vhd: No such file or directory

the command virt-filesystems --long --filesystems -a /data/freeDOS/freeDOS.vhd

gives this Name Type VFS Label Size Parent /dev/sda1 filesystem vfat FREEDOS2016 104752640 -

Any help on how to mount the freeDOS vhd to share it with Debian?

Many thanks

  • Have you considered dosbox.com ? There is a Debian version that might well suit your needs. – Peter David Carter Oct 14 '17 at 8:57
  • If your question has typo(s), edit it and correct them. – Scott Oct 14 '17 at 12:31

First command says freeDOS.vdi and second freeDOS.vhd

  • yes. sorry. it should say guestmount -a freeDOS.vhd -m /dev/sda1 /data/freeDOS – berkboy Oct 14 '17 at 9:32
  • welp I thought that was the source of your problem? – jdwolf Oct 14 '17 at 9:35
  • no. \i am afraid the problem still remains. for some reason guestmount does not recognize the *.vhd. I have read some forums and it seems that the guestmount mount *.img. But the freedos tutorial says the it can mount *.vhd – berkboy Oct 14 '17 at 9:42
  1. Load nbd module modprobe nbd max_part=16

  2. Map vhd/vdi to system

    qemu-nbd -c /dev/nbd0 image.qcow2

  3. View partition in vhd

    fdisk -l

  4. Mount the partition you want

    mount /dev/nbd0p1 /mnt

Video step by step: https://www.youtube.com/watch?v=zIpvNoJmVRs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.