re run mount -a in crontab everyday to ensure Synology NAS is mounted?

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
Scenario: Ubuntu 16.04 backs up local drives every night to NAS. But since ubuntu boots faster than the NAS, should there be a systemwide restart after a power failure, the NAS wont be mounted because it was not initialized when the fstab was run.
What is the best way to deal with this? I suppose a few minute delay before trying to mount the NAS volume would do the trick, but how?
boot fstab nas
add a comment |Â
up vote
0
down vote
favorite
Scenario: Ubuntu 16.04 backs up local drives every night to NAS. But since ubuntu boots faster than the NAS, should there be a systemwide restart after a power failure, the NAS wont be mounted because it was not initialized when the fstab was run.
What is the best way to deal with this? I suppose a few minute delay before trying to mount the NAS volume would do the trick, but how?
boot fstab nas
What is the contents of /etc/fstab? Adding timeo bg retry options should address that.
â stumblebee
Feb 26 at 5:02
You could just add the option ofnofailto the mount line so that if it is down it doesn't hang during boot. I also use this option for external USB drives that I prefer to have an actual mount point.
â Terrance
Feb 26 at 5:19
fstab entry: 192.168.0.41:/volume1/nvrnas2 /media/nas nfs defaults 0 0
â Paul
Feb 26 at 14:24
While changing mount options in fstab would address Ubuntu booting before NAS, It would not remount if NAS went down and came back up again. Autofs may be a better option for you since it automatically mounts directories on an as-needed basis. If at boot is your only concern then replace the "defaults" option with "bg, timeo=600 " in fstab See the NFS Manpage for details on those options.
â stumblebee
Feb 27 at 3:17
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Scenario: Ubuntu 16.04 backs up local drives every night to NAS. But since ubuntu boots faster than the NAS, should there be a systemwide restart after a power failure, the NAS wont be mounted because it was not initialized when the fstab was run.
What is the best way to deal with this? I suppose a few minute delay before trying to mount the NAS volume would do the trick, but how?
boot fstab nas
Scenario: Ubuntu 16.04 backs up local drives every night to NAS. But since ubuntu boots faster than the NAS, should there be a systemwide restart after a power failure, the NAS wont be mounted because it was not initialized when the fstab was run.
What is the best way to deal with this? I suppose a few minute delay before trying to mount the NAS volume would do the trick, but how?
boot fstab nas
boot fstab nas
asked Feb 26 at 3:30
Paul
1
1
What is the contents of /etc/fstab? Adding timeo bg retry options should address that.
â stumblebee
Feb 26 at 5:02
You could just add the option ofnofailto the mount line so that if it is down it doesn't hang during boot. I also use this option for external USB drives that I prefer to have an actual mount point.
â Terrance
Feb 26 at 5:19
fstab entry: 192.168.0.41:/volume1/nvrnas2 /media/nas nfs defaults 0 0
â Paul
Feb 26 at 14:24
While changing mount options in fstab would address Ubuntu booting before NAS, It would not remount if NAS went down and came back up again. Autofs may be a better option for you since it automatically mounts directories on an as-needed basis. If at boot is your only concern then replace the "defaults" option with "bg, timeo=600 " in fstab See the NFS Manpage for details on those options.
â stumblebee
Feb 27 at 3:17
add a comment |Â
What is the contents of /etc/fstab? Adding timeo bg retry options should address that.
â stumblebee
Feb 26 at 5:02
You could just add the option ofnofailto the mount line so that if it is down it doesn't hang during boot. I also use this option for external USB drives that I prefer to have an actual mount point.
â Terrance
Feb 26 at 5:19
fstab entry: 192.168.0.41:/volume1/nvrnas2 /media/nas nfs defaults 0 0
â Paul
Feb 26 at 14:24
While changing mount options in fstab would address Ubuntu booting before NAS, It would not remount if NAS went down and came back up again. Autofs may be a better option for you since it automatically mounts directories on an as-needed basis. If at boot is your only concern then replace the "defaults" option with "bg, timeo=600 " in fstab See the NFS Manpage for details on those options.
â stumblebee
Feb 27 at 3:17
What is the contents of /etc/fstab? Adding timeo bg retry options should address that.
â stumblebee
Feb 26 at 5:02
What is the contents of /etc/fstab? Adding timeo bg retry options should address that.
â stumblebee
Feb 26 at 5:02
You could just add the option of
nofail to the mount line so that if it is down it doesn't hang during boot. I also use this option for external USB drives that I prefer to have an actual mount point.â Terrance
Feb 26 at 5:19
You could just add the option of
nofail to the mount line so that if it is down it doesn't hang during boot. I also use this option for external USB drives that I prefer to have an actual mount point.â Terrance
Feb 26 at 5:19
fstab entry: 192.168.0.41:/volume1/nvrnas2 /media/nas nfs defaults 0 0
â Paul
Feb 26 at 14:24
fstab entry: 192.168.0.41:/volume1/nvrnas2 /media/nas nfs defaults 0 0
â Paul
Feb 26 at 14:24
While changing mount options in fstab would address Ubuntu booting before NAS, It would not remount if NAS went down and came back up again. Autofs may be a better option for you since it automatically mounts directories on an as-needed basis. If at boot is your only concern then replace the "defaults" option with "bg, timeo=600 " in fstab See the NFS Manpage for details on those options.
â stumblebee
Feb 27 at 3:17
While changing mount options in fstab would address Ubuntu booting before NAS, It would not remount if NAS went down and came back up again. Autofs may be a better option for you since it automatically mounts directories on an as-needed basis. If at boot is your only concern then replace the "defaults" option with "bg, timeo=600 " in fstab See the NFS Manpage for details on those options.
â stumblebee
Feb 27 at 3:17
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1009806%2fre-run-mount-a-in-crontab-everyday-to-ensure-synology-nas-is-mounted%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
What is the contents of /etc/fstab? Adding timeo bg retry options should address that.
â stumblebee
Feb 26 at 5:02
You could just add the option of
nofailto the mount line so that if it is down it doesn't hang during boot. I also use this option for external USB drives that I prefer to have an actual mount point.â Terrance
Feb 26 at 5:19
fstab entry: 192.168.0.41:/volume1/nvrnas2 /media/nas nfs defaults 0 0
â Paul
Feb 26 at 14:24
While changing mount options in fstab would address Ubuntu booting before NAS, It would not remount if NAS went down and came back up again. Autofs may be a better option for you since it automatically mounts directories on an as-needed basis. If at boot is your only concern then replace the "defaults" option with "bg, timeo=600 " in fstab See the NFS Manpage for details on those options.
â stumblebee
Feb 27 at 3:17