Bypassing auto mount at boot time

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have set several folders to mount at startup into fstab. This works fine.



However, I would like to be able to bypass the mounting process in some occasions.
Typically, when I know the remote folders are not available.



Is there a mean to bypass the auto mounting process at boot time?



I thank you for your help.







share|improve this question




















  • Usually you can add the mounting option “nofail” to do exactly that. It will try to mount, but if the partition or share is not available, it will simply skip mounting it. If this is what you are looking for, I can convert this comment to an answer.
    – Phoenix
    Jan 14 at 0:52











  • @Phoenix it seems to work. Thank you.
    – Sebastien
    Jan 14 at 16:27










  • Perfect. I added a proper answer for you as well now.
    – Phoenix
    Jan 14 at 16:46














up vote
0
down vote

favorite












I have set several folders to mount at startup into fstab. This works fine.



However, I would like to be able to bypass the mounting process in some occasions.
Typically, when I know the remote folders are not available.



Is there a mean to bypass the auto mounting process at boot time?



I thank you for your help.







share|improve this question




















  • Usually you can add the mounting option “nofail” to do exactly that. It will try to mount, but if the partition or share is not available, it will simply skip mounting it. If this is what you are looking for, I can convert this comment to an answer.
    – Phoenix
    Jan 14 at 0:52











  • @Phoenix it seems to work. Thank you.
    – Sebastien
    Jan 14 at 16:27










  • Perfect. I added a proper answer for you as well now.
    – Phoenix
    Jan 14 at 16:46












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have set several folders to mount at startup into fstab. This works fine.



However, I would like to be able to bypass the mounting process in some occasions.
Typically, when I know the remote folders are not available.



Is there a mean to bypass the auto mounting process at boot time?



I thank you for your help.







share|improve this question












I have set several folders to mount at startup into fstab. This works fine.



However, I would like to be able to bypass the mounting process in some occasions.
Typically, when I know the remote folders are not available.



Is there a mean to bypass the auto mounting process at boot time?



I thank you for your help.









share|improve this question











share|improve this question




share|improve this question










asked Jan 13 at 21:14









Sebastien

31




31











  • Usually you can add the mounting option “nofail” to do exactly that. It will try to mount, but if the partition or share is not available, it will simply skip mounting it. If this is what you are looking for, I can convert this comment to an answer.
    – Phoenix
    Jan 14 at 0:52











  • @Phoenix it seems to work. Thank you.
    – Sebastien
    Jan 14 at 16:27










  • Perfect. I added a proper answer for you as well now.
    – Phoenix
    Jan 14 at 16:46
















  • Usually you can add the mounting option “nofail” to do exactly that. It will try to mount, but if the partition or share is not available, it will simply skip mounting it. If this is what you are looking for, I can convert this comment to an answer.
    – Phoenix
    Jan 14 at 0:52











  • @Phoenix it seems to work. Thank you.
    – Sebastien
    Jan 14 at 16:27










  • Perfect. I added a proper answer for you as well now.
    – Phoenix
    Jan 14 at 16:46















Usually you can add the mounting option “nofail” to do exactly that. It will try to mount, but if the partition or share is not available, it will simply skip mounting it. If this is what you are looking for, I can convert this comment to an answer.
– Phoenix
Jan 14 at 0:52





Usually you can add the mounting option “nofail” to do exactly that. It will try to mount, but if the partition or share is not available, it will simply skip mounting it. If this is what you are looking for, I can convert this comment to an answer.
– Phoenix
Jan 14 at 0:52













@Phoenix it seems to work. Thank you.
– Sebastien
Jan 14 at 16:27




@Phoenix it seems to work. Thank you.
– Sebastien
Jan 14 at 16:27












Perfect. I added a proper answer for you as well now.
– Phoenix
Jan 14 at 16:46




Perfect. I added a proper answer for you as well now.
– Phoenix
Jan 14 at 16:46










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










If you like to make a partition or network share optional, you can define the mount option nofail comma-separated to the other options you have defined.



What will happen is, the system will still attempt to mount the partition/share, but if it is not available or not accessible for whatever reason, it will silently fail and continue to boot the system.



The fstab entry would look something like this:



/dev/sdc2 /mnt/your_partition ext4 defaults,nofail 1 2





share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f416911%2fbypassing-auto-mount-at-boot-time%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    If you like to make a partition or network share optional, you can define the mount option nofail comma-separated to the other options you have defined.



    What will happen is, the system will still attempt to mount the partition/share, but if it is not available or not accessible for whatever reason, it will silently fail and continue to boot the system.



    The fstab entry would look something like this:



    /dev/sdc2 /mnt/your_partition ext4 defaults,nofail 1 2





    share|improve this answer
























      up vote
      1
      down vote



      accepted










      If you like to make a partition or network share optional, you can define the mount option nofail comma-separated to the other options you have defined.



      What will happen is, the system will still attempt to mount the partition/share, but if it is not available or not accessible for whatever reason, it will silently fail and continue to boot the system.



      The fstab entry would look something like this:



      /dev/sdc2 /mnt/your_partition ext4 defaults,nofail 1 2





      share|improve this answer






















        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        If you like to make a partition or network share optional, you can define the mount option nofail comma-separated to the other options you have defined.



        What will happen is, the system will still attempt to mount the partition/share, but if it is not available or not accessible for whatever reason, it will silently fail and continue to boot the system.



        The fstab entry would look something like this:



        /dev/sdc2 /mnt/your_partition ext4 defaults,nofail 1 2





        share|improve this answer












        If you like to make a partition or network share optional, you can define the mount option nofail comma-separated to the other options you have defined.



        What will happen is, the system will still attempt to mount the partition/share, but if it is not available or not accessible for whatever reason, it will silently fail and continue to boot the system.



        The fstab entry would look something like this:



        /dev/sdc2 /mnt/your_partition ext4 defaults,nofail 1 2






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 14 at 16:46









        Phoenix

        1262




        1262






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f416911%2fbypassing-auto-mount-at-boot-time%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay