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

The name of the pictureThe name of the pictureThe name of the pictureClash 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?










share|improve this question





















  • 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










  • 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















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?










share|improve this question





















  • 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










  • 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













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?










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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 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










  • 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











  • 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










  • 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
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

Trouble downloading packages list due to a “Hash sum mismatch” error

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

How do I move numbers in filenames, in a batch renaming operation?