Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Automatic mounting of remote SMB shares after PC restarting?

Featured Replies

Sorry if this question could maybe be solved if I was in front of the Unraid server. At the moment, I'm thousands kms away.

 

My next step in setting up the office Unraid server is to create users and shares, transfer data to the Unraid shares, schedule for future similar transfer and set up online backups.

As I will create my transfer tasks with User scripts and with Rsync command, here is my question (assuming that the Unraid server stay on during the night and that Rsync command will be run for the 2nd time) :

In the situation that the office PC (on the same network, from where the remote SMB share was created) shut down at the end of day and restart next morning, will this SMB share be automatically (without human intervention) re-mounted to Unraid server? 
 

If not, what could be the solution to do such thing?

Thanks for your help.

Mounting of a remote share is generally handled by the Unassigned Devices plugin. You should probably ask questions about that on the plugin's support thread :

 

But the share should pop back up when available if you set it to automount.

  • Author

thanks a lot @ChatNoir, you guided me to the right place I think. I will study this and i hope it will make sense for me.

  • 3 years later...
On 6/2/2022 at 1:57 PM, sunshine59 said:

thanks a lot @ChatNoir, you guided me to the right place I think. I will study this and i hope it will make sense for me.

Did you sort it out? Mine is not mounting even after 30 minutes remote share came online.

  • Community Expert
3 hours ago, Gayanll said:

Did you sort it out? Mine is not mounting even after 30 minutes remote share came online.

You are likely to get more informed feedback if you attach your system's diagnostics zip file to your next post in this thread (or maybe create a new thread as your problem may be different).

It is always a good idea to do this to allow us to see the current state of your system and so we can see logs and configuration information.

  • Community Expert

To mount an UD share the host has to be up at the time you click the mount button / it gets automounted at server/array start, but once it's mounted it stays so even if the host goes down and comes back up.

If you try to start a container that accesses the remote mount while the remote is offline it'll fail, so don't start/restart containers that use them if offline.

For the backup scenario in the first post better use something designed for it like urbackup.

Edited by Kilrah

  • Community Expert
On 6/1/2022 at 7:04 PM, sunshine59 said:

will this SMB share be automatically (without human intervention) re-mounted to Unraid server? 

To automatically reconnect a PC to your Unraid server, use a Windows Credential. See here for how to do that:

https://forums.unraid.net/topic/191221-some-musings-on-smb-and-samba-and-unraid-and-windows/#findComment-1561583

EDIT: This will connect the PC to server. It will not connect the Unraid server to the PC. Reconnecting to a 'server' that is being taken down regularly is a bit of a problem. You might need a shell script to actually be able to force that to happen.

Edited by Frank1940

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.