# Rclone Centos Mount at startup & shows the share mounted empty

**URL:** <https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695>\
**Category:** Help and Support\
**Created:** [July 6, 2020, 9:16am UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695 "2020-07-06T09:16:48Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaled](https://forum.rclone.org/letter_avatar_proxy/v4/letter/j/958977/32.png) [@Jaled](https://forum.rclone.org/u/Jaled)\
**Post date:** [July 6, 2020, 9:16am UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/1 "2020-07-06T09:16:48Z")

</div>

#### What is the problem you are having with rclone?

how can i mount shares drives on Centos Servers at startup¿?

#### What is your rclone version (output from `rclone version`)

rclone v1.51.0

- os/arch: linux/amd64
- go version: go1.13.7

#### Which OS you are using and how many bits (eg Windows 7, 64 bit)

#### Which cloud storage system are you using? (eg Google Drive)

rclone v1.51.0

- os/arch: linux/amd64
- go version: go1.13.7

#### The command you were trying to run (eg `rclone copy /tmp remote:tmp`)

``rclone mount --allow-non-empty --allow-other "DATA - dept01" /TEST1 &`  
Paste command here

```auto

#### The rclone config contents with secrets removed.  
<!-- You should use 3 backticks to begin and end your paste to make it readable. -->

```

Paste config here

```auto

#### A log from the command with the `-vv` flag  
<!-- You should use 3 backticks to begin and end your paste to make it readable. Or use a service such as https://pastebin.com or https://gist.github.com/ -->

```

Paste log here

```auto

```

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [July 6, 2020, 4:07pm UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/2 "2020-07-06T16:07:42Z")

</div>

> [@Jaled](#):
>
> how can i mount shares drives on Centos Servers at startup

Using systemd is recommended. If you search the forum you'll find many examples.

---

<div class="post-metadata">

**Author:** ![Jaled](https://forum.rclone.org/letter_avatar_proxy/v4/letter/j/958977/32.png) [@Jaled](https://forum.rclone.org/u/Jaled)\
**Post date:** [July 7, 2020, 7:29am UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/3 "2020-07-07T07:29:10Z")

</div>

Hi Nick

Thank you for your answer, but my issue the share are data but once mounted on the Linux server is empty, i try to mounted with all these options but i´ve the same:  
rclone mount -vv --vfs-cache-max-size 10G --vfs-cache-mode full --allow-non-empty --allow-other "LMES - TEST - FI - Treasury" /TEST1 &

result:  
2020/07/07 09:27:24 DEBUG : rclone: Version "v1.51.0" starting with parameters ["rclone" "mount" "-vv" "--vfs-cache-max-size" "10G" "--vfs-cache-mode" "full" "--allow-non-empty" "--allow-other" "LMES - TEST - FI - Treasury" "/TEST1"]  
2020/07/07 09:27:24 DEBUG : Using config file from "/usr/local/lm/tools/rclone/config\_file/rclone.conf"  
2020/07/07 09:27:24 DEBUG : Local file system at /root/LMES - TEST - FI - Treasury: Mounting on "/TEST1"  
2020/07/07 09:27:24 INFO : Local file system at /root/LMES - TEST - FI - Treasury: poll-interval is not supported by this remote  
2020/07/07 09:27:24 DEBUG : vfs cache root is "/root/.cache/rclone/vfs/local/root/LMES - TEST - FI - Treasury"  
2020/07/07 09:27:24 DEBUG : Adding path "vfs/forget" to remote control registry  
2020/07/07 09:27:24 DEBUG : Adding path "vfs/refresh" to remote control registry  
2020/07/07 09:27:24 DEBUG : Adding path "vfs/poll-interval" to remote control registry  
2020/07/07 09:27:24 DEBUG : : Root:  
2020/07/07 09:27:24 DEBUG : : \>Root: node=/, err=

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [July 7, 2020, 2:51pm UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/4 "2020-07-07T14:51:16Z")

</div>

hello,

`--allow-non-empty` is generally not a good flag to use for mounts.

what is the remote you are trying to mount?  
a remote needs a `:` in it, and i do not see that the in `"LMES - TEST - FI - Treasury"`

---

<div class="post-metadata">

**Author:** ![Jaled](https://forum.rclone.org/letter_avatar_proxy/v4/letter/j/958977/32.png) [@Jaled](https://forum.rclone.org/u/Jaled)\
**Post date:** [July 8, 2020, 7:31am UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/5 "2020-07-08T07:31:18Z")

</div>

> [@asdffdsa](#):
>
> what is the remote you are trying to mount

Hi  
i trying to mount a share drive with things inside, i try to remount it without the flag --allow-non-empty but the result it's same , is empty:  
#rclone mount -vv --vfs-cache-max-size 10G --vfs-cache-mode full --allow-other "LMES - TEST - FI - Treasury" /TEST1 &

many thanks

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [July 8, 2020, 12:55pm UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/6 "2020-07-08T12:55:07Z")

</div>

> [@asdffdsa](#):
>
> what is the remote you are trying to mount?  
> a remote needs a `:` in it, and i do not see that the in `"LMES - TEST - FI - Treasury"`

what is the name of the remote  
can do you `rclone listremotes` and post the output?

---

<div class="post-metadata">

**Author:** ![Jaled](https://forum.rclone.org/letter_avatar_proxy/v4/letter/j/958977/32.png) [@Jaled](https://forum.rclone.org/u/Jaled)\
**Post date:** [July 8, 2020, 1:15pm UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/7 "2020-07-08T13:15:15Z")

</div>

Hi

the remote share drive is a valid directory:

# rclone listremotes

LMES - TEST - FI - Treasury:  
LMES - Technology:

thanks

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [July 8, 2020, 1:24pm UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/8 "2020-07-08T13:24:53Z")

</div>

so need to use one of those remotes, make sure to include the `:`  
remotes need to have a colon character **:**

[https://rclone.org/docs/#copying-files-or-directories-with-in-the-names](https://rclone.org/docs/#copying-files-or-directories-with-in-the-names)  
" rclone uses `:` to mark a remote name"

rclone mount -vv --vfs-cache-max-size 10G --vfs-cache-mode full --allow-other "LMES - TEST - FI - Treasury:" /TEST1 &

---

<div class="post-metadata">

**Author:** ![Jaled](https://forum.rclone.org/letter_avatar_proxy/v4/letter/j/958977/32.png) [@Jaled](https://forum.rclone.org/u/Jaled)\
**Post date:** [July 8, 2020, 1:44pm UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/9 "2020-07-08T13:44:30Z")

</div>

Ok, does work fine ....  
many many thanks .

Bye

---

<div class="post-metadata">

**Author:** ![Jaled](https://forum.rclone.org/letter_avatar_proxy/v4/letter/j/958977/32.png) [@Jaled](https://forum.rclone.org/u/Jaled)\
**Post date:** [July 8, 2020, 1:54pm UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/10 "2020-07-08T13:54:58Z")

</div>

any idea to do that mount on /etc/fstab to mount automatically on startup¿?

thanks

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [July 8, 2020, 2:05pm UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/11 "2020-07-08T14:05:19Z")

</div>

i am not a linux expert but i am sure you can search the internet.

i know many rclone users use `systemd`, so you can search to forum for that.

---

<div class="post-metadata">

**Author:** ![Jaled](https://forum.rclone.org/letter_avatar_proxy/v4/letter/j/958977/32.png) [@Jaled](https://forum.rclone.org/u/Jaled)\
**Post date:** [July 8, 2020, 2:09pm UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/12 "2020-07-08T14:09:34Z")

</div>

yes but what is the correct syntax for that, i know very well the Linux system but i'm not able to look the correct syntax.

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [July 8, 2020, 3:16pm UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/13 "2020-07-08T15:16:35Z")

</div>

as i suggested, search the forum for `systemd`

> **[rclone/rclone](https://github.com/rclone/rclone/wiki/Systemd-rclone-mount)**
>
> "rsync for cloud storage" - Google Drive, Amazon Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Cloudfiles, Google Cloud Storage, Yandex Files - rclone/rclone

---

<div class="post-metadata">

**Author:** ![Jaled](https://forum.rclone.org/letter_avatar_proxy/v4/letter/j/958977/32.png) [@Jaled](https://forum.rclone.org/u/Jaled)\
**Post date:** [July 9, 2020, 7:55am UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/14 "2020-07-09T07:55:42Z")

</div>

these servers are CentOs 6 and 7, i tested the mount on /etc/fstab but doesn't work, i put it in /etc/rc.local file does work , but my idea is put it in /etc/fstab, my problem is look the correct syntax.

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [July 9, 2020, 1:22pm UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/15 "2020-07-09T13:22:26Z")

</div>

For CentOS 6 and 7, you should use systemd like noted above. The link shared has an example and if you have a question on how to use it, please ask.

---

<div class="post-metadata">

**Author:** ![Jaled](https://forum.rclone.org/letter_avatar_proxy/v4/letter/j/958977/32.png) [@Jaled](https://forum.rclone.org/u/Jaled)\
**Post date:** [July 9, 2020, 2:03pm UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/16 "2020-07-09T14:03:02Z")

</div>

Thank you for help me, in my opinion is easier to do the automount in /etc/rc.local than to create a service in the system.

# cat /etc/rc.local

rclone mount -vv --vfs-cache-max-size 10G --vfs-cache-mode full --allow-other "LMES - TEST - FI - Treasury:" /TEST1 &

does work fine

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [July 9, 2020, 2:18pm UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/17 "2020-07-09T14:18:00Z")

</div>

Sure, but you can't stop / start it nor does it track failures.

That also doesn't allow for the networking services to start up as that's why systemd is a better solution.

If that works and meets your requirements though, by all means use it.

---

<div class="post-metadata">

**Author:** ![Jaled](https://forum.rclone.org/letter_avatar_proxy/v4/letter/j/958977/32.png) [@Jaled](https://forum.rclone.org/u/Jaled)\
**Post date:** [July 10, 2020, 8:47am UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/18 "2020-07-10T08:47:10Z")

</div>

Ok  
many thanks everyone.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [September 9, 2020, 4:47am UTC](https://forum.rclone.org/t/rclone-centos-mount-at-startup-shows-the-share-mounted-empty/17695/19 "2020-09-09T04:47:12Z")

</div>

Closed on September 9, 2020, 4:47am UTC

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