1

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

berkboy
  • 11
  • 2

2 Answers2

1

First command says freeDOS.vdi and second freeDOS.vhd

jdwolf
  • 4,887
  • 1
  • 13
  • 28
  • yes. sorry. it should say guestmount -a freeDOS.vhd -m /dev/sda1 /data/freeDOS – berkboy Oct 14 '17 at 09:32
  • welp I thought that was the source of your problem? – jdwolf Oct 14 '17 at 09: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 09:42
0
  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