# Agent/CLI mounting

**URL:** <https://forum.odrive.com/t/agent-cli-mounting/6980>\
**Category:** Troubleshooting\
**Created:** [November 30, 2019, 5:54pm UTC](https://forum.odrive.com/t/agent-cli-mounting/6980 "2019-11-30T17:54:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![srodriguez](https://forum.odrive.com/letter_avatar_proxy/v4/letter/s/9d8465/32.png) [@srodriguez](https://forum.odrive.com/u/srodriguez)\
**Post date:** [November 30, 2019, 5:54pm UTC](https://forum.odrive.com/t/agent-cli-mounting/6980/1 "2019-11-30T17:54:16Z")

</div>

Hi,

Thank you for this how to.  
I did the 6 steps and everything is working fine 🙂

I do have a question about how to mount an existing folder.  
Basically, you do the 6 steps, the computer restart.  
So you have your odrive folder and some files not sync yet.

How to restart from there?

Thanks in advance  
Best regards  
Stephane

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [December 1, 2019, 3:58pm UTC](https://forum.odrive.com/t/agent-cli-mounting/6980/2 "2019-12-01T15:58:38Z")

</div>

Hi @srodriguez,  
Are you wanting to mount an additional folder in the agent? You can do so by using the `mount` command and targeting a local folder. You will need a Premium subscription to have more than one mount, however.

---

<div class="post-metadata">

**Author:** ![srodriguez](https://forum.odrive.com/letter_avatar_proxy/v4/letter/s/9d8465/32.png) [@srodriguez](https://forum.odrive.com/u/srodriguez)\
**Post date:** [December 1, 2019, 5:13pm UTC](https://forum.odrive.com/t/agent-cli-mounting/6980/3 "2019-12-01T17:13:02Z")

</div>

Hi @Tony,

I have premium account, but no I don’t want to add a new folder.  
I just want to restart the odrive agent and to to resume the sync.

I thought the explanation was clear enough…☹  
Let me try again, after a PC reboot, the odrive agent is down.  
When you restart it, there is no folder mounted.  
So if you mount with the mount command an existing odrive folder and start a sync it will not work, it will not restart from where you were.

So each time, I delete the previous odrive mount folder, create a new one, do a mount, sync, then copy the files to the new folder and restart the sync…

My question: is there a way to restart from a previous mounted odrive folder ?  
Or each time, you have to start from scratch?

thanks in advance  
Best regards  
Stephane

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [December 1, 2019, 9:03pm UTC](https://forum.odrive.com/t/agent-cli-mounting/6980/4 "2019-12-01T21:03:57Z")

</div>

Hi @srodriguez,  
Once a mount is created is should be saved in the local odrive config so that it is available the next time (and every time after) the agent is started. All you should have to do is start the agent and it will sync the mount you had previously setup.

Can you tell me what operating system you are running?  
Is it possible in your OS configuration that the local files that odrive creates are being removed on reboot?

---

<div class="post-metadata">

**Author:** ![srodriguez](https://forum.odrive.com/letter_avatar_proxy/v4/letter/s/9d8465/32.png) [@srodriguez](https://forum.odrive.com/u/srodriguez)\
**Post date:** [December 11, 2019, 8:51pm UTC](https://forum.odrive.com/t/agent-cli-mounting/6980/5 "2019-12-11T20:51:52Z")

</div>

Hi @Tony,

Thank you for the clarification.  
During my test the odrive was under a docker container.  
Each time I was restarting the container, I was not able to sync again because the folder was not in the odrive folder, and as the folder was already there, I was also not able to remount it.

I will do more testing to stop/start container and I will check if by just starting the agent again, everything is working.

So far, you can close this one. And thank you for your excellent support.

Kind regards  
Stephane

---

<div class="post-metadata">

**Author:** ![mail.arvind85](https://forum.odrive.com/user_avatar/forum.odrive.com/mail.arvind85/32/4878_2.png) [@mail.arvind85](https://forum.odrive.com/u/mail.arvind85)\
**Post date:** [December 16, 2019, 9:57am UTC](https://forum.odrive.com/t/agent-cli-mounting/6980/6 "2019-12-16T09:57:52Z")

</div>

Hi,  
I am on Linux. I have installed Odrive and still learning my way around it.

1. How can I mount drives from Google Drive (These appear under the ‘Computers’ tab on Google drive)?

2. Can I create a new file in the local mount folder and expect it to be pushed to Google Drive?

Thanks,  
Arvind

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [December 16, 2019, 4:22pm UTC](https://forum.odrive.com/t/agent-cli-mounting/6980/7 "2019-12-16T16:22:44Z")

</div>

Hi @mail.arvind85,

1. For the Computers tab, take a look at this post:

> [@New Google Backup and Sync and odrive root to different folders](https://forum.odrive.com/t/new-google-backup-and-sync-and-odrive-root-to-different-folders/2788/8):
>
> Update: With support for Google’s new “shortcuts”, odrive can gain access to the “Computers” folders by creating shortcuts from the “Computers” folders to your main Google Drive. Old reply: Hi @jtrudel246, Unfortunately Google still doesn’t seem to have provided an API method for discovering the folders that exist outside of the main Google Drive folder or Team Drives. If anyone knows otherwise, or comes across an addition to the API that allows this, pleas…

1. Yes, odrive will automatically upload files that are created or updated locally in an odrive folder. It will periodically scan for new files, but you can force odrive to look in a location by using the `refresh` command.

---

<div class="post-metadata">

**Author:** ![mail.arvind85](https://forum.odrive.com/user_avatar/forum.odrive.com/mail.arvind85/32/4878_2.png) [@mail.arvind85](https://forum.odrive.com/u/mail.arvind85)\
**Post date:** [December 17, 2019, 5:01am UTC](https://forum.odrive.com/t/agent-cli-mounting/6980/8 "2019-12-17T05:01:39Z")

</div>

Thank you for your response!
