mounting a freedos virtual box in Debian

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












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







share|improve this question






















  • 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














up vote
0
down vote

favorite












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







share|improve this question






















  • 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












up vote
0
down vote

favorite









up vote
0
down vote

favorite











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







share|improve this question














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









share|improve this question













share|improve this question




share|improve this question








edited Oct 14 '17 at 12:35

























asked Oct 14 '17 at 8:33









berkboy

11




11











  • 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
















  • 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















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




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




If your question has typo(s), edit it and correct them.
– Scott
Oct 14 '17 at 12:31










2 Answers
2






active

oldest

votes

















up vote
0
down vote













First command says freeDOS.vdi and second freeDOS.vhd






share|improve this answer




















  • 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

















up vote
0
down vote













  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






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f398081%2fmounting-a-freedos-virtual-box-in-debian%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    First command says freeDOS.vdi and second freeDOS.vhd






    share|improve this answer




















    • 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














    up vote
    0
    down vote













    First command says freeDOS.vdi and second freeDOS.vhd






    share|improve this answer




















    • 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












    up vote
    0
    down vote










    up vote
    0
    down vote









    First command says freeDOS.vdi and second freeDOS.vhd






    share|improve this answer












    First command says freeDOS.vdi and second freeDOS.vhd







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Oct 14 '17 at 9:05









    jdwolf

    2,392116




    2,392116











    • 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
















    • 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















    yes. sorry. it should say guestmount -a freeDOS.vhd -m /dev/sda1 /data/freeDOS
    – berkboy
    Oct 14 '17 at 9:32





    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




    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




    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












    up vote
    0
    down vote













    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






    share|improve this answer
























      up vote
      0
      down vote













      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






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        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






        share|improve this answer












        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







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 9 '17 at 17:20









        NGUYEN DUC TAM

        11




        11



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f398081%2fmounting-a-freedos-virtual-box-in-debian%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay