# Read file from smb folder

**URL:** <https://discourse.nodered.org/t/read-file-from-smb-folder/67935>\
**Category:** General\
**Created:** [19 September 2022 16:16 UTC](https://discourse.nodered.org/t/read-file-from-smb-folder/67935 "2022-09-19T16:16:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giamma](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@Giamma](https://discourse.nodered.org/u/Giamma)\
**Post date:** [19 September 2022 16:16 UTC](https://discourse.nodered.org/t/read-file-from-smb-folder/67935/1 "2022-09-19T16:16:35Z")

</div>

Hi,  
on my Raspberry Pi4 (so raspberry standard) I have a directory shared with smb.  
I'd like to read from my pc with ubuntu the file TemperatureData.log but I cannot set correctly the smb node ....

configuration node smb 01

![02](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/3/c3aa22e0bcfd226001c4a29907114cac17bf9842.png)

configuration node smb 02

![03](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/c/1c7f0acc8ff932e5f10dc953da4da29a9913eb75.png)

error

 ![err](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/7/6781d2cf994deb82ceb11f3fbfafecc8b8ddc809.png)

Can you help me?

I also have an httpStatic on my Raspberry and I could move the file into this directory if it helps ....

If there is another solution to read the file that's fine too ...

---

<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:** [19 September 2022 19:33 UTC](https://discourse.nodered.org/t/read-file-from-smb-folder/67935/2 "2022-09-19T19:33:48Z")

</div>

Rather than trying to access an SMB: URI, use Raspbian to mount the folder and then it will just look like any other folder on the device.

---

<div class="post-metadata">

**Author:** ![Giamma](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@Giamma](https://discourse.nodered.org/u/Giamma)\
**Post date:** [20 September 2022 04:32 UTC](https://discourse.nodered.org/t/read-file-from-smb-folder/67935/3 "2022-09-20T04:32:05Z")

</div>

Ok, I succeeded and now works fine. Thank you ...

This is the instruction to mount Raspberry smb shared folder in ubuntu:

```auto
sudo mount -t cifs -o vers=3.0,username=[insert_username],password=[insert_pwd] //192.168.1.28/[name_folder_raspberry] /[path_destination_folder_ubuntu]

```

---

<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:** [4 October 2022 04:33 UTC](https://discourse.nodered.org/t/read-file-from-smb-folder/67935/4 "2022-10-04T04:33:02Z")

</div>

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