# Sharing drive from Windows to Ubuntu on a VM

**URL:** <https://discourse.nodered.org/t/sharing-drive-from-windows-to-ubuntu-on-a-vm/61368>\
**Category:** General\
**Created:** [16 April 2022 11:34 UTC](https://discourse.nodered.org/t/sharing-drive-from-windows-to-ubuntu-on-a-vm/61368 "2022-04-16T11:34:37Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![SuperMan](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@SuperMan](https://discourse.nodered.org/u/SuperMan)\
**Post date:** [16 April 2022 11:34 UTC](https://discourse.nodered.org/t/sharing-drive-from-windows-to-ubuntu-on-a-vm/61368/1 "2022-04-16T11:34:37Z")

</div>

Hi friends,  
I’m newbie to Nodered. I’m currently running nodered on Ubuntu (normally and in docker) which is in a vm in Windows. I’m trying to map my network drive in windows to Ubuntu.

Trying to run Nodered in docker as a container ( using docker as it makes working on my projects easier)

Any help is appreciated 🙏🙏

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 April 2022 12:18 UTC](https://discourse.nodered.org/t/sharing-drive-from-windows-to-ubuntu-on-a-vm/61368/2 "2022-04-16T12:18:12Z")

</div>

Hi & welcome to the forum.

TBF, this isn't _really_ a node-red issue however, to get you on your way - check out [these results](https://www.google.com/search?q=map+network+drive+in+Ubuntu)

---

<div class="post-metadata">

**Author:** ![SuperMan](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@SuperMan](https://discourse.nodered.org/u/SuperMan)\
**Post date:** [16 April 2022 13:02 UTC](https://discourse.nodered.org/t/sharing-drive-from-windows-to-ubuntu-on-a-vm/61368/3 "2022-04-16T13:02:11Z")

</div>

@Steve-Mcl Can we do it on an offline system? And on docker is this possible?  
Doing my projects on cooperate network so can’t access to internet!!

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 April 2022 13:08 UTC](https://discourse.nodered.org/t/sharing-drive-from-windows-to-ubuntu-on-a-vm/61368/4 "2022-04-16T13:08:04Z")

</div>

> [@SuperMan](#):
>
> Can we do it on an offline system

Do what? Map to an LAN resource? Yes, so long as your ubuntu installation has the necessary components (smbfs) installed. If not, then the answer is again yes, see [this link](https://www.google.com/search?q=apt-get+install+local+package) - would need you to download the necessary from another machine & transfer it to the VM/Docker image - again, not really a question for this forum I'm afraid.

---

<div class="post-metadata">

**Author:** ![SuperMan](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@SuperMan](https://discourse.nodered.org/u/SuperMan)\
**Post date:** [16 April 2022 13:13 UTC](https://discourse.nodered.org/t/sharing-drive-from-windows-to-ubuntu-on-a-vm/61368/5 "2022-04-16T13:13:18Z")

</div>

I’ll try those methods tomorrow itself, I’m in Australia(so it’s night😋).

Thanks for your trouble Steve. Is that okay to ask you again if I’m stuck at some point?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [16 April 2022 16:33 UTC](https://discourse.nodered.org/t/sharing-drive-from-windows-to-ubuntu-on-a-vm/61368/6 "2022-04-16T16:33:36Z")

</div>

You can, of course run Docker directly in Windows as well if that helps.

---

<div class="post-metadata">

**Author:** ![Jean-Luc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jean-luc/32/89996_2.png) [@Jean-Luc](https://discourse.nodered.org/u/Jean-Luc)\
**Post date:** [16 April 2022 20:07 UTC](https://discourse.nodered.org/t/sharing-drive-from-windows-to-ubuntu-on-a-vm/61368/7 "2022-04-16T20:07:05Z")

</div>

And run Windows inside Hyper-V ? 😉

---

<div class="post-metadata">

**Author:** ![SuperMan](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@SuperMan](https://discourse.nodered.org/u/SuperMan)\
**Post date:** [17 April 2022 00:42 UTC](https://discourse.nodered.org/t/sharing-drive-from-windows-to-ubuntu-on-a-vm/61368/8 "2022-04-17T00:42:38Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/d/4d198d4d12946c9ef3d522f6bc5288193b4bbdf5.png)

Thanks guys, i got the drive from windows to get mapped on linux

---

<div class="post-metadata">

**Author:** ![SuperMan](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@SuperMan](https://discourse.nodered.org/u/SuperMan)\
**Post date:** [17 April 2022 00:45 UTC](https://discourse.nodered.org/t/sharing-drive-from-windows-to-ubuntu-on-a-vm/61368/9 "2022-04-17T00:45:26Z")

</div>

Also, while running Nodered on docker, error popping up when trying to access the files. Do i have to create a volume to get those directory and mount to Nodered?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/d/fd01909d6013234026e889e5b92314972630cfe8.png)

---

<div class="post-metadata">

**Author:** ![SuperMan](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@SuperMan](https://discourse.nodered.org/u/SuperMan)\
**Post date:** [17 April 2022 01:38 UTC](https://discourse.nodered.org/t/sharing-drive-from-windows-to-ubuntu-on-a-vm/61368/10 "2022-04-17T01:38:29Z")

</div>

docker run --name node\_red2 -p 1882:1880 -itd -v /home/control/:/mnt/shared nodered

This worked also with giving permissions, sudo chmod -R 777 /mnt/shared

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/6/16855b211140af9bebf756f0113ab13c6db155ff.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 May 2022 01:39 UTC](https://discourse.nodered.org/t/sharing-drive-from-windows-to-ubuntu-on-a-vm/61368/11 "2022-05-01T01:39:17Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
