# Syncing removable media folder

**URL:** https://forum.syncthing.net/t/syncing-removable-media-folder/1893
**Category:** Support
**Created:** [February 26, 2015, 10:52am UTC](https://forum.syncthing.net/t/syncing-removable-media-folder/1893 "2015-02-26T10:52:11Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Sciamano72](https://forum.syncthing.net/user_avatar/forum.syncthing.net/sciamano72/32/3137_2.png) [@Sciamano72](https://forum.syncthing.net/u/Sciamano72)
#### Post date: [February 26, 2015, 10:52am UTC](https://forum.syncthing.net/t/syncing-removable-media-folder/1893/1 "2015-02-26T10:52:11Z")

</div>

Hello, I’m currently using syncthing on my laptop and on a RaspberryPi (as an always-on server).

I have this pendrive where I keep important files, that I want to be kept in sync with a folder on the server (RPi).

I’ve mounted the pendrive on my laptop and setup the sync with the RPi. Everything works correctly.

But, when I unmount the pendrive, obviously the folder to be synced is not there anymore, and syncthing reacts by “stopping” it (It would say “STOPPED” and give an error: “Error: lstat /media/luca/KINGSTON/Documenti”)

If I mount the pendrive again, syncthing will not notice this, and the folder will stay stopped unless I restart syncthing on the laptop. Is there any way to make syncthing realize the folder is now mounted again, and make it sync automatically (without the need to restart it)?

Thanks

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [February 26, 2015, 11:04am UTC](https://forum.syncthing.net/t/syncing-removable-media-folder/1893/2 "2015-02-26T11:04:52Z")

</div>

Currently no. This is

> <https://github.com/syncthing/syncthing/issues/420>
>
> Hi there,
> I am running into a small issue on my linux machine when I include a repo that is not mounted...

---

<div class="post-metadata">

### Author: ![Sciamano72](https://forum.syncthing.net/user_avatar/forum.syncthing.net/sciamano72/32/3137_2.png) [@Sciamano72](https://forum.syncthing.net/u/Sciamano72)
#### Post date: [February 26, 2015, 1:03pm UTC](https://forum.syncthing.net/t/syncing-removable-media-folder/1893/3 "2015-02-26T13:03:05Z")

</div>

I knew it couldn’t be a new issue, but I couldn’t find it when I searched. I understand it’s not top priority, but is there any chance we can see this new enhancement added to syncthing anytime soon? Thanks and keep up the great work! Luca

---

<div class="post-metadata">

### Author: ![idef1x](https://forum.syncthing.net/user_avatar/forum.syncthing.net/idef1x/32/975_2.png) [@idef1x](https://forum.syncthing.net/u/idef1x)
#### Post date: [March 6, 2015, 8:12pm UTC](https://forum.syncthing.net/t/syncing-removable-media-folder/1893/4 "2015-03-06T20:12:25Z")

</div>

I am trying to working around this one myself using the API, but I trying to restart syncthing seems to fail ☹What I do is the following:

1. I check with :

```
curl -s X-API-Key:<api key> http://127.0.0.1:8080/rest/model?folder=<foldername> |grep "folder path missing" > /dev/null

```

if the folder is missing and then I try to restart syncthing with: 2) restartcommand:

```
curl -s POST X-API-Key:<api key> http://127.0.0.1:8080/rest/restart

```

then I get the result:

```
<html><body>
In maintenance
</body></html>
CSRF Error

```

and syncthing didn’t restart…any idea what I am doing wrong? I am not used to curl to much yet and not with API’s like these in general so I am probably doing something basically wrong 😊

---

<div class="post-metadata">

### Author: ![Sciamano72](https://forum.syncthing.net/user_avatar/forum.syncthing.net/sciamano72/32/3137_2.png) [@Sciamano72](https://forum.syncthing.net/u/Sciamano72)
#### Post date: [April 23, 2015, 12:42pm UTC](https://forum.syncthing.net/t/syncing-removable-media-folder/1893/5 "2015-04-23T12:42:13Z")

</div>

I just wanted to **thank** the developers for adding this feature in v11.0! 🙂So, **THANK YOU!!**

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [May 12, 2017, 12:57pm UTC](https://forum.syncthing.net/t/syncing-removable-media-folder/1893/6 "2017-05-12T12:57:45Z")

</div>


