How Virtual Box shared folder are handled 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'm on Windows 7 and I run a Debian VM under Vbox. On my Windows 7 I've the c:temp folder that I want to share. I added it :



enter image description here



I had an hard time to permanently mount that folder with Virtual box (had to install Guest Additions, etc.. ) but now it is solved. What I need to do is edit /etc/fstab file and add the following line :



temp /home/my_usr_name/an_existing_folder vboxsf defaults, _netdev 0 0


Now, after each boot, my folder is correctly mounted. But here is my question
what and where is temp ?



because, from my understanding, the line I added in fstab does the following :



mount -t vboxsf temp /home/my_usr_name/an_existing_folder 


Right ? And as a matter of fact, it works, my folder will be correctly mounted if I use it. but normally, with mount you use a device ? like dev/cdrom for example. Here I can't find that temp anywere on my Debian VM. I understand that this is the name I gived when configuring the Shared folder of VM, but how it is handled by VBox ? and how Debian find it ?



Note : For some reason, I don't have any folder like /media/sf_sharedfolder, I don't care and I don't want to solve that.







share|improve this question


























    up vote
    0
    down vote

    favorite












    I'm on Windows 7 and I run a Debian VM under Vbox. On my Windows 7 I've the c:temp folder that I want to share. I added it :



    enter image description here



    I had an hard time to permanently mount that folder with Virtual box (had to install Guest Additions, etc.. ) but now it is solved. What I need to do is edit /etc/fstab file and add the following line :



    temp /home/my_usr_name/an_existing_folder vboxsf defaults, _netdev 0 0


    Now, after each boot, my folder is correctly mounted. But here is my question
    what and where is temp ?



    because, from my understanding, the line I added in fstab does the following :



    mount -t vboxsf temp /home/my_usr_name/an_existing_folder 


    Right ? And as a matter of fact, it works, my folder will be correctly mounted if I use it. but normally, with mount you use a device ? like dev/cdrom for example. Here I can't find that temp anywere on my Debian VM. I understand that this is the name I gived when configuring the Shared folder of VM, but how it is handled by VBox ? and how Debian find it ?



    Note : For some reason, I don't have any folder like /media/sf_sharedfolder, I don't care and I don't want to solve that.







    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm on Windows 7 and I run a Debian VM under Vbox. On my Windows 7 I've the c:temp folder that I want to share. I added it :



      enter image description here



      I had an hard time to permanently mount that folder with Virtual box (had to install Guest Additions, etc.. ) but now it is solved. What I need to do is edit /etc/fstab file and add the following line :



      temp /home/my_usr_name/an_existing_folder vboxsf defaults, _netdev 0 0


      Now, after each boot, my folder is correctly mounted. But here is my question
      what and where is temp ?



      because, from my understanding, the line I added in fstab does the following :



      mount -t vboxsf temp /home/my_usr_name/an_existing_folder 


      Right ? And as a matter of fact, it works, my folder will be correctly mounted if I use it. but normally, with mount you use a device ? like dev/cdrom for example. Here I can't find that temp anywere on my Debian VM. I understand that this is the name I gived when configuring the Shared folder of VM, but how it is handled by VBox ? and how Debian find it ?



      Note : For some reason, I don't have any folder like /media/sf_sharedfolder, I don't care and I don't want to solve that.







      share|improve this question














      I'm on Windows 7 and I run a Debian VM under Vbox. On my Windows 7 I've the c:temp folder that I want to share. I added it :



      enter image description here



      I had an hard time to permanently mount that folder with Virtual box (had to install Guest Additions, etc.. ) but now it is solved. What I need to do is edit /etc/fstab file and add the following line :



      temp /home/my_usr_name/an_existing_folder vboxsf defaults, _netdev 0 0


      Now, after each boot, my folder is correctly mounted. But here is my question
      what and where is temp ?



      because, from my understanding, the line I added in fstab does the following :



      mount -t vboxsf temp /home/my_usr_name/an_existing_folder 


      Right ? And as a matter of fact, it works, my folder will be correctly mounted if I use it. but normally, with mount you use a device ? like dev/cdrom for example. Here I can't find that temp anywere on my Debian VM. I understand that this is the name I gived when configuring the Shared folder of VM, but how it is handled by VBox ? and how Debian find it ?



      Note : For some reason, I don't have any folder like /media/sf_sharedfolder, I don't care and I don't want to solve that.









      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 1 at 20:24

























      asked Apr 1 at 19:58









      snoob dogg

      1156




      1156




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted











          with mount you use a device?




          No. One provides a source, a.k.a. a "what" (alongside a "where" and a "vfstype", and some options). That does not have to be a block device name. It is something that only has meaning in conjunction with the type of filesystem.



          In the case of vboxsf mounts, the "what" is the name of the shared folder that you have specified in the VirtualBox configuration utility. The driver installed into Linux by the VirtualBox Guest Utilities knows how to reference that name, using a private communications channel between the guest environment and the host.



          It is not a network path. It is not something that you can locate in the guest operating system's filesystem.






          share|improve this answer




















          • thank you, did you know if there is a way to list them under Debian, just curious ?
            – snoob dogg
            Apr 1 at 22:16










          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%2f434895%2fhow-virtual-box-shared-folder-are-handled-in-debian%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted











          with mount you use a device?




          No. One provides a source, a.k.a. a "what" (alongside a "where" and a "vfstype", and some options). That does not have to be a block device name. It is something that only has meaning in conjunction with the type of filesystem.



          In the case of vboxsf mounts, the "what" is the name of the shared folder that you have specified in the VirtualBox configuration utility. The driver installed into Linux by the VirtualBox Guest Utilities knows how to reference that name, using a private communications channel between the guest environment and the host.



          It is not a network path. It is not something that you can locate in the guest operating system's filesystem.






          share|improve this answer




















          • thank you, did you know if there is a way to list them under Debian, just curious ?
            – snoob dogg
            Apr 1 at 22:16














          up vote
          1
          down vote



          accepted











          with mount you use a device?




          No. One provides a source, a.k.a. a "what" (alongside a "where" and a "vfstype", and some options). That does not have to be a block device name. It is something that only has meaning in conjunction with the type of filesystem.



          In the case of vboxsf mounts, the "what" is the name of the shared folder that you have specified in the VirtualBox configuration utility. The driver installed into Linux by the VirtualBox Guest Utilities knows how to reference that name, using a private communications channel between the guest environment and the host.



          It is not a network path. It is not something that you can locate in the guest operating system's filesystem.






          share|improve this answer




















          • thank you, did you know if there is a way to list them under Debian, just curious ?
            – snoob dogg
            Apr 1 at 22:16












          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted







          with mount you use a device?




          No. One provides a source, a.k.a. a "what" (alongside a "where" and a "vfstype", and some options). That does not have to be a block device name. It is something that only has meaning in conjunction with the type of filesystem.



          In the case of vboxsf mounts, the "what" is the name of the shared folder that you have specified in the VirtualBox configuration utility. The driver installed into Linux by the VirtualBox Guest Utilities knows how to reference that name, using a private communications channel between the guest environment and the host.



          It is not a network path. It is not something that you can locate in the guest operating system's filesystem.






          share|improve this answer













          with mount you use a device?




          No. One provides a source, a.k.a. a "what" (alongside a "where" and a "vfstype", and some options). That does not have to be a block device name. It is something that only has meaning in conjunction with the type of filesystem.



          In the case of vboxsf mounts, the "what" is the name of the shared folder that you have specified in the VirtualBox configuration utility. The driver installed into Linux by the VirtualBox Guest Utilities knows how to reference that name, using a private communications channel between the guest environment and the host.



          It is not a network path. It is not something that you can locate in the guest operating system's filesystem.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 1 at 21:59









          JdeBP

          28.2k459133




          28.2k459133











          • thank you, did you know if there is a way to list them under Debian, just curious ?
            – snoob dogg
            Apr 1 at 22:16
















          • thank you, did you know if there is a way to list them under Debian, just curious ?
            – snoob dogg
            Apr 1 at 22:16















          thank you, did you know if there is a way to list them under Debian, just curious ?
          – snoob dogg
          Apr 1 at 22:16




          thank you, did you know if there is a way to list them under Debian, just curious ?
          – snoob dogg
          Apr 1 at 22:16












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f434895%2fhow-virtual-box-shared-folder-are-handled-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