# How to detect a mounted share folder is still connected

**URL:** <https://discourse.nodered.org/t/how-to-detect-a-mounted-share-folder-is-still-connected/65400>\
**Category:** Industrial\
**Created:** [21 July 2022 05:37 UTC](https://discourse.nodered.org/t/how-to-detect-a-mounted-share-folder-is-still-connected/65400 "2022-07-21T05:37:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dinesh](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@dinesh](https://discourse.nodered.org/u/dinesh)\
**Post date:** [21 July 2022 05:37 UTC](https://discourse.nodered.org/t/how-to-detect-a-mounted-share-folder-is-still-connected/65400/1 "2022-07-21T05:37:07Z")

</div>

Hi

Is there a way for node red to detect if the mounted share folder is disconnected.

The folder is mounted to a linux based device CIFS-Install which has node red installed in it

When I use the read file node,it doesnt seem to give any error. Is there a way to monitor. The mounted share folder maybe empty but I still want to know if the folder is still connected.

Thank you

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [21 July 2022 07:34 UTC](https://discourse.nodered.org/t/how-to-detect-a-mounted-share-folder-is-still-connected/65400/2 "2022-07-21T07:34:55Z")

</div>

The way i usually do it - is to have the mount point have a file in there named UNMOUNTED

If the CIFS folder is not mounted then this file will exist on the local (NR) filesystem

Once i mount the CIFS folder into that location it will no longer see that UnMounted file

You can also extend if further by having a file called MOUNTED in the CIFS share - so when it is succesfully mounted this file will exist to NR

Craig

---

<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:** [19 September 2022 07:35 UTC](https://discourse.nodered.org/t/how-to-detect-a-mounted-share-folder-is-still-connected/65400/3 "2022-09-19T07:35:36Z")

</div>

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