Skip to content
View in the app

A better way to browse. Learn more.

Learn more

How to auto mount NAS after boot?

Featured Replies

I am running a Plex Media Server on a headless Orange Pi PC Plus with Armbian Ubuntu server.

So far I’ve been able to configure fstab on the server to mount the NAS at boot. That seems to work fine.

However, the problem I have is when I have a power failure and everthing reboots at the same time, the server boots before my NAS. I then have to ssh in and run “sudo mount -a”.

Is there a way to have the server detect and mount the NAS whenever it’s available to the network?

2 hours ago, Nimbus78 said:

I am running a Plex Media Server on a headless Orange Pi PC Plus with Armbian Ubuntu server.

So far I’ve been able to configure fstab on the server to mount the NAS at boot. That seems to work fine.

However, the problem I have is when I have a power failure and everthing reboots at the same time, the server boots before my NAS. I then have to ssh in and run “sudo mount -a”.

Is there a way to have the server detect and mount the NAS whenever it’s available to the network?

you could try to create a script which does check the mounts and create a auto-mount in cron every minute if isnt mounted.
take a look here for commands:

https://serverfault.com/questions/50585/whats-the-best-way-to-check-if-a-volume-is-mounted-in-a-bash-script

Guest
This topic is now closed to further replies.

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.