How to get rid of the “scanning for btrfs file systems” at start-up?











up vote
23
down vote

favorite
3












After upgrading from Ubuntu 12.04 to Ubuntu 12.10, I get a message "scanning for btrfs file systems" at starting-up. I don't have any BTRFS filesystem. It delays the booting for about 15 seconds.



How can I get rid of this?










share|improve this question
























  • I uninstalled btrfs to find out, that the scan for btrfs is not the reason for the delay. after removing btrfs it still hangs but one line earlyer at Begin: Running /scripts/local-premount
    – rubo77
    May 9 at 17:09












  • There is also btrfs superblock scanning in every partition in libblkid - github.com/karelzak/util-linux/blob/master/libblkid/src/… git.kernel.org/pub/scm/utils/util-linux/util-linux.git/tree/…
    – osgx
    Oct 21 at 12:56















up vote
23
down vote

favorite
3












After upgrading from Ubuntu 12.04 to Ubuntu 12.10, I get a message "scanning for btrfs file systems" at starting-up. I don't have any BTRFS filesystem. It delays the booting for about 15 seconds.



How can I get rid of this?










share|improve this question
























  • I uninstalled btrfs to find out, that the scan for btrfs is not the reason for the delay. after removing btrfs it still hangs but one line earlyer at Begin: Running /scripts/local-premount
    – rubo77
    May 9 at 17:09












  • There is also btrfs superblock scanning in every partition in libblkid - github.com/karelzak/util-linux/blob/master/libblkid/src/… git.kernel.org/pub/scm/utils/util-linux/util-linux.git/tree/…
    – osgx
    Oct 21 at 12:56













up vote
23
down vote

favorite
3









up vote
23
down vote

favorite
3






3





After upgrading from Ubuntu 12.04 to Ubuntu 12.10, I get a message "scanning for btrfs file systems" at starting-up. I don't have any BTRFS filesystem. It delays the booting for about 15 seconds.



How can I get rid of this?










share|improve this question















After upgrading from Ubuntu 12.04 to Ubuntu 12.10, I get a message "scanning for btrfs file systems" at starting-up. I don't have any BTRFS filesystem. It delays the booting for about 15 seconds.



How can I get rid of this?







ubuntu boot btrfs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 7 '13 at 8:00









a CVn

16.6k851103




16.6k851103










asked Jun 7 '13 at 4:13









cnvzmxcvmcx

277128




277128












  • I uninstalled btrfs to find out, that the scan for btrfs is not the reason for the delay. after removing btrfs it still hangs but one line earlyer at Begin: Running /scripts/local-premount
    – rubo77
    May 9 at 17:09












  • There is also btrfs superblock scanning in every partition in libblkid - github.com/karelzak/util-linux/blob/master/libblkid/src/… git.kernel.org/pub/scm/utils/util-linux/util-linux.git/tree/…
    – osgx
    Oct 21 at 12:56


















  • I uninstalled btrfs to find out, that the scan for btrfs is not the reason for the delay. after removing btrfs it still hangs but one line earlyer at Begin: Running /scripts/local-premount
    – rubo77
    May 9 at 17:09












  • There is also btrfs superblock scanning in every partition in libblkid - github.com/karelzak/util-linux/blob/master/libblkid/src/… git.kernel.org/pub/scm/utils/util-linux/util-linux.git/tree/…
    – osgx
    Oct 21 at 12:56
















I uninstalled btrfs to find out, that the scan for btrfs is not the reason for the delay. after removing btrfs it still hangs but one line earlyer at Begin: Running /scripts/local-premount
– rubo77
May 9 at 17:09






I uninstalled btrfs to find out, that the scan for btrfs is not the reason for the delay. after removing btrfs it still hangs but one line earlyer at Begin: Running /scripts/local-premount
– rubo77
May 9 at 17:09














There is also btrfs superblock scanning in every partition in libblkid - github.com/karelzak/util-linux/blob/master/libblkid/src/… git.kernel.org/pub/scm/utils/util-linux/util-linux.git/tree/…
– osgx
Oct 21 at 12:56




There is also btrfs superblock scanning in every partition in libblkid - github.com/karelzak/util-linux/blob/master/libblkid/src/… git.kernel.org/pub/scm/utils/util-linux/util-linux.git/tree/…
– osgx
Oct 21 at 12:56










6 Answers
6






active

oldest

votes

















up vote
15
down vote



accepted










The btrfs-tools package adds an action to the initramfs to load the btrfs module. If you purge that package (sudo apt-get purge btrfs-tools), followed by an update-initramfs -ukall if the uninstallation doesn't do it already, that should go away (though I've not tested it). If it doesn't, you can always blacklist the brtfs module in /etc/modprobe.d.






share|improve this answer

















  • 1




    Doing this on Ubuntu server 16.04 apt gives me "The following packages will be REMOVED: btrfs-tools* ubuntu-server*". Hmm, I'd like to keep the server though...
    – elomage
    Apr 29 '17 at 21:02






  • 1




    @elomage, ubuntu-server is just a meta-package that is used to pull packages typically found on server-style installations as dependencies. By removing it (provided no other package are removed as a result), you're not removing any software.
    – Stéphane Chazelas
    Apr 30 '17 at 7:55










  • Thanks. Improved my elementary Juno startup times.
    – Jürgen Hörmann
    Nov 16 at 21:03


















up vote
6
down vote













On Ubuntu 18.04 you can uninstall btrfs-support with



apt purge btrfs-progs


But that probably wouldn't save you much boot time. On my system the reason was, that I don't have a swap partition but on boot it is searched for such for about 30 seconds (while displaying the btrfs-scan).



You can remove the swap check with




  • open /etc/initramfs-tools/conf.d/resume

  • replace RESUME=UUID=xxx with RESUME=none

  • issue sudo update-initramfs -u

  • reboot your system


source: https://askubuntu.com/a/1034952/34298






share|improve this answer






























    up vote
    4
    down vote













    Btrfs isn’t too much stable to be used as deafult file-system. Most Linux distributions, probable all, are still using ext4 as primary file-system. So, you can completely remove it from your computer. Try the given command:



    sudo apt-get purge btrfs-tools


    This command will remove btrfs-tools from your computer. You may need to wait some minutes to complete the process. Your initramfs should be updated automatically but if not happen, do it by this command:



    sudo update-initramfs -ukall


    Then make a grub update:



    sudo update-grub


    All is well. Now make a restart. Hope your Ubuntu will start successfully this time.



    Reference: http://www.ugcoder.com/disable-scanning-for-btrfs-file-systems-in-ubuntu/



    Let me know if you have some questions still.






    share|improve this answer























    • The package is not installed on my system. So i tried echo "blacklist btrfs">>/etc/modprobe.d/blacklist.conf But no effect. still scanning for btrfs on boot
      – rubo77
      May 9 at 17:02


















    up vote
    3
    down vote













    I saw this as well on 18.04 during boot. Since



    /usr/share/initramfs-tools/scripts/local-premount/btrfs


    calls for the scan, you can workaround this issue by dealing with that file. Since I wasn't using btrfs regularly, I purged the file through



    sudo apt purge btrfs-progs





    share|improve this answer





















    • To get rid of that message, you need to do sudo update-initramfs -ukall as well. But still, that doesn't help much, the boot process then hangs at the step before saying Begin: Running /scripts/local-premount
      – rubo77
      May 10 at 6:36




















    up vote
    1
    down vote













    It is the btrfs kernel module that does the scanning (for filesystems scanning multiple devices).



    I have not found an indication that this is configurable, so your only options seems to be removing that module from your kernel (modprobe -r btrfs) assuming your kernel supports that.






    share|improve this answer

















    • 1




      I tried, but it seems like this has no effect on Ubuntu 18.04
      – rubo77
      May 9 at 17:00


















    up vote
    -1
    down vote













    The script which starts the search looks for the existence of btrfs.
    Simply renaming the executable /sbin/btrfs to p.e /sbin/btrfs.save (as sudo) will eliminate the search , gaining some 10-20 seconds in the boot-process!






    share|improve this answer



















    • 2




      it is not recommended to just delete system files. better uninstall the btrfs too with apt purge btrfs-tools
      – rubo77
      May 10 at 6:38











    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: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    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%2f78535%2fhow-to-get-rid-of-the-scanning-for-btrfs-file-systems-at-start-up%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    6 Answers
    6






    active

    oldest

    votes








    6 Answers
    6






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    15
    down vote



    accepted










    The btrfs-tools package adds an action to the initramfs to load the btrfs module. If you purge that package (sudo apt-get purge btrfs-tools), followed by an update-initramfs -ukall if the uninstallation doesn't do it already, that should go away (though I've not tested it). If it doesn't, you can always blacklist the brtfs module in /etc/modprobe.d.






    share|improve this answer

















    • 1




      Doing this on Ubuntu server 16.04 apt gives me "The following packages will be REMOVED: btrfs-tools* ubuntu-server*". Hmm, I'd like to keep the server though...
      – elomage
      Apr 29 '17 at 21:02






    • 1




      @elomage, ubuntu-server is just a meta-package that is used to pull packages typically found on server-style installations as dependencies. By removing it (provided no other package are removed as a result), you're not removing any software.
      – Stéphane Chazelas
      Apr 30 '17 at 7:55










    • Thanks. Improved my elementary Juno startup times.
      – Jürgen Hörmann
      Nov 16 at 21:03















    up vote
    15
    down vote



    accepted










    The btrfs-tools package adds an action to the initramfs to load the btrfs module. If you purge that package (sudo apt-get purge btrfs-tools), followed by an update-initramfs -ukall if the uninstallation doesn't do it already, that should go away (though I've not tested it). If it doesn't, you can always blacklist the brtfs module in /etc/modprobe.d.






    share|improve this answer

















    • 1




      Doing this on Ubuntu server 16.04 apt gives me "The following packages will be REMOVED: btrfs-tools* ubuntu-server*". Hmm, I'd like to keep the server though...
      – elomage
      Apr 29 '17 at 21:02






    • 1




      @elomage, ubuntu-server is just a meta-package that is used to pull packages typically found on server-style installations as dependencies. By removing it (provided no other package are removed as a result), you're not removing any software.
      – Stéphane Chazelas
      Apr 30 '17 at 7:55










    • Thanks. Improved my elementary Juno startup times.
      – Jürgen Hörmann
      Nov 16 at 21:03













    up vote
    15
    down vote



    accepted







    up vote
    15
    down vote



    accepted






    The btrfs-tools package adds an action to the initramfs to load the btrfs module. If you purge that package (sudo apt-get purge btrfs-tools), followed by an update-initramfs -ukall if the uninstallation doesn't do it already, that should go away (though I've not tested it). If it doesn't, you can always blacklist the brtfs module in /etc/modprobe.d.






    share|improve this answer












    The btrfs-tools package adds an action to the initramfs to load the btrfs module. If you purge that package (sudo apt-get purge btrfs-tools), followed by an update-initramfs -ukall if the uninstallation doesn't do it already, that should go away (though I've not tested it). If it doesn't, you can always blacklist the brtfs module in /etc/modprobe.d.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jun 7 '13 at 7:45









    Stéphane Chazelas

    295k54556898




    295k54556898








    • 1




      Doing this on Ubuntu server 16.04 apt gives me "The following packages will be REMOVED: btrfs-tools* ubuntu-server*". Hmm, I'd like to keep the server though...
      – elomage
      Apr 29 '17 at 21:02






    • 1




      @elomage, ubuntu-server is just a meta-package that is used to pull packages typically found on server-style installations as dependencies. By removing it (provided no other package are removed as a result), you're not removing any software.
      – Stéphane Chazelas
      Apr 30 '17 at 7:55










    • Thanks. Improved my elementary Juno startup times.
      – Jürgen Hörmann
      Nov 16 at 21:03














    • 1




      Doing this on Ubuntu server 16.04 apt gives me "The following packages will be REMOVED: btrfs-tools* ubuntu-server*". Hmm, I'd like to keep the server though...
      – elomage
      Apr 29 '17 at 21:02






    • 1




      @elomage, ubuntu-server is just a meta-package that is used to pull packages typically found on server-style installations as dependencies. By removing it (provided no other package are removed as a result), you're not removing any software.
      – Stéphane Chazelas
      Apr 30 '17 at 7:55










    • Thanks. Improved my elementary Juno startup times.
      – Jürgen Hörmann
      Nov 16 at 21:03








    1




    1




    Doing this on Ubuntu server 16.04 apt gives me "The following packages will be REMOVED: btrfs-tools* ubuntu-server*". Hmm, I'd like to keep the server though...
    – elomage
    Apr 29 '17 at 21:02




    Doing this on Ubuntu server 16.04 apt gives me "The following packages will be REMOVED: btrfs-tools* ubuntu-server*". Hmm, I'd like to keep the server though...
    – elomage
    Apr 29 '17 at 21:02




    1




    1




    @elomage, ubuntu-server is just a meta-package that is used to pull packages typically found on server-style installations as dependencies. By removing it (provided no other package are removed as a result), you're not removing any software.
    – Stéphane Chazelas
    Apr 30 '17 at 7:55




    @elomage, ubuntu-server is just a meta-package that is used to pull packages typically found on server-style installations as dependencies. By removing it (provided no other package are removed as a result), you're not removing any software.
    – Stéphane Chazelas
    Apr 30 '17 at 7:55












    Thanks. Improved my elementary Juno startup times.
    – Jürgen Hörmann
    Nov 16 at 21:03




    Thanks. Improved my elementary Juno startup times.
    – Jürgen Hörmann
    Nov 16 at 21:03












    up vote
    6
    down vote













    On Ubuntu 18.04 you can uninstall btrfs-support with



    apt purge btrfs-progs


    But that probably wouldn't save you much boot time. On my system the reason was, that I don't have a swap partition but on boot it is searched for such for about 30 seconds (while displaying the btrfs-scan).



    You can remove the swap check with




    • open /etc/initramfs-tools/conf.d/resume

    • replace RESUME=UUID=xxx with RESUME=none

    • issue sudo update-initramfs -u

    • reboot your system


    source: https://askubuntu.com/a/1034952/34298






    share|improve this answer



























      up vote
      6
      down vote













      On Ubuntu 18.04 you can uninstall btrfs-support with



      apt purge btrfs-progs


      But that probably wouldn't save you much boot time. On my system the reason was, that I don't have a swap partition but on boot it is searched for such for about 30 seconds (while displaying the btrfs-scan).



      You can remove the swap check with




      • open /etc/initramfs-tools/conf.d/resume

      • replace RESUME=UUID=xxx with RESUME=none

      • issue sudo update-initramfs -u

      • reboot your system


      source: https://askubuntu.com/a/1034952/34298






      share|improve this answer

























        up vote
        6
        down vote










        up vote
        6
        down vote









        On Ubuntu 18.04 you can uninstall btrfs-support with



        apt purge btrfs-progs


        But that probably wouldn't save you much boot time. On my system the reason was, that I don't have a swap partition but on boot it is searched for such for about 30 seconds (while displaying the btrfs-scan).



        You can remove the swap check with




        • open /etc/initramfs-tools/conf.d/resume

        • replace RESUME=UUID=xxx with RESUME=none

        • issue sudo update-initramfs -u

        • reboot your system


        source: https://askubuntu.com/a/1034952/34298






        share|improve this answer














        On Ubuntu 18.04 you can uninstall btrfs-support with



        apt purge btrfs-progs


        But that probably wouldn't save you much boot time. On my system the reason was, that I don't have a swap partition but on boot it is searched for such for about 30 seconds (while displaying the btrfs-scan).



        You can remove the swap check with




        • open /etc/initramfs-tools/conf.d/resume

        • replace RESUME=UUID=xxx with RESUME=none

        • issue sudo update-initramfs -u

        • reboot your system


        source: https://askubuntu.com/a/1034952/34298







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited May 16 at 21:38

























        answered May 11 at 17:25









        rubo77

        7,2902468130




        7,2902468130






















            up vote
            4
            down vote













            Btrfs isn’t too much stable to be used as deafult file-system. Most Linux distributions, probable all, are still using ext4 as primary file-system. So, you can completely remove it from your computer. Try the given command:



            sudo apt-get purge btrfs-tools


            This command will remove btrfs-tools from your computer. You may need to wait some minutes to complete the process. Your initramfs should be updated automatically but if not happen, do it by this command:



            sudo update-initramfs -ukall


            Then make a grub update:



            sudo update-grub


            All is well. Now make a restart. Hope your Ubuntu will start successfully this time.



            Reference: http://www.ugcoder.com/disable-scanning-for-btrfs-file-systems-in-ubuntu/



            Let me know if you have some questions still.






            share|improve this answer























            • The package is not installed on my system. So i tried echo "blacklist btrfs">>/etc/modprobe.d/blacklist.conf But no effect. still scanning for btrfs on boot
              – rubo77
              May 9 at 17:02















            up vote
            4
            down vote













            Btrfs isn’t too much stable to be used as deafult file-system. Most Linux distributions, probable all, are still using ext4 as primary file-system. So, you can completely remove it from your computer. Try the given command:



            sudo apt-get purge btrfs-tools


            This command will remove btrfs-tools from your computer. You may need to wait some minutes to complete the process. Your initramfs should be updated automatically but if not happen, do it by this command:



            sudo update-initramfs -ukall


            Then make a grub update:



            sudo update-grub


            All is well. Now make a restart. Hope your Ubuntu will start successfully this time.



            Reference: http://www.ugcoder.com/disable-scanning-for-btrfs-file-systems-in-ubuntu/



            Let me know if you have some questions still.






            share|improve this answer























            • The package is not installed on my system. So i tried echo "blacklist btrfs">>/etc/modprobe.d/blacklist.conf But no effect. still scanning for btrfs on boot
              – rubo77
              May 9 at 17:02













            up vote
            4
            down vote










            up vote
            4
            down vote









            Btrfs isn’t too much stable to be used as deafult file-system. Most Linux distributions, probable all, are still using ext4 as primary file-system. So, you can completely remove it from your computer. Try the given command:



            sudo apt-get purge btrfs-tools


            This command will remove btrfs-tools from your computer. You may need to wait some minutes to complete the process. Your initramfs should be updated automatically but if not happen, do it by this command:



            sudo update-initramfs -ukall


            Then make a grub update:



            sudo update-grub


            All is well. Now make a restart. Hope your Ubuntu will start successfully this time.



            Reference: http://www.ugcoder.com/disable-scanning-for-btrfs-file-systems-in-ubuntu/



            Let me know if you have some questions still.






            share|improve this answer














            Btrfs isn’t too much stable to be used as deafult file-system. Most Linux distributions, probable all, are still using ext4 as primary file-system. So, you can completely remove it from your computer. Try the given command:



            sudo apt-get purge btrfs-tools


            This command will remove btrfs-tools from your computer. You may need to wait some minutes to complete the process. Your initramfs should be updated automatically but if not happen, do it by this command:



            sudo update-initramfs -ukall


            Then make a grub update:



            sudo update-grub


            All is well. Now make a restart. Hope your Ubuntu will start successfully this time.



            Reference: http://www.ugcoder.com/disable-scanning-for-btrfs-file-systems-in-ubuntu/



            Let me know if you have some questions still.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 15 '15 at 14:40









            Community

            1




            1










            answered Apr 8 '15 at 10:14









            Md. Maksudur Rahman Khan

            414




            414












            • The package is not installed on my system. So i tried echo "blacklist btrfs">>/etc/modprobe.d/blacklist.conf But no effect. still scanning for btrfs on boot
              – rubo77
              May 9 at 17:02


















            • The package is not installed on my system. So i tried echo "blacklist btrfs">>/etc/modprobe.d/blacklist.conf But no effect. still scanning for btrfs on boot
              – rubo77
              May 9 at 17:02
















            The package is not installed on my system. So i tried echo "blacklist btrfs">>/etc/modprobe.d/blacklist.conf But no effect. still scanning for btrfs on boot
            – rubo77
            May 9 at 17:02




            The package is not installed on my system. So i tried echo "blacklist btrfs">>/etc/modprobe.d/blacklist.conf But no effect. still scanning for btrfs on boot
            – rubo77
            May 9 at 17:02










            up vote
            3
            down vote













            I saw this as well on 18.04 during boot. Since



            /usr/share/initramfs-tools/scripts/local-premount/btrfs


            calls for the scan, you can workaround this issue by dealing with that file. Since I wasn't using btrfs regularly, I purged the file through



            sudo apt purge btrfs-progs





            share|improve this answer





















            • To get rid of that message, you need to do sudo update-initramfs -ukall as well. But still, that doesn't help much, the boot process then hangs at the step before saying Begin: Running /scripts/local-premount
              – rubo77
              May 10 at 6:36

















            up vote
            3
            down vote













            I saw this as well on 18.04 during boot. Since



            /usr/share/initramfs-tools/scripts/local-premount/btrfs


            calls for the scan, you can workaround this issue by dealing with that file. Since I wasn't using btrfs regularly, I purged the file through



            sudo apt purge btrfs-progs





            share|improve this answer





















            • To get rid of that message, you need to do sudo update-initramfs -ukall as well. But still, that doesn't help much, the boot process then hangs at the step before saying Begin: Running /scripts/local-premount
              – rubo77
              May 10 at 6:36















            up vote
            3
            down vote










            up vote
            3
            down vote









            I saw this as well on 18.04 during boot. Since



            /usr/share/initramfs-tools/scripts/local-premount/btrfs


            calls for the scan, you can workaround this issue by dealing with that file. Since I wasn't using btrfs regularly, I purged the file through



            sudo apt purge btrfs-progs





            share|improve this answer












            I saw this as well on 18.04 during boot. Since



            /usr/share/initramfs-tools/scripts/local-premount/btrfs


            calls for the scan, you can workaround this issue by dealing with that file. Since I wasn't using btrfs regularly, I purged the file through



            sudo apt purge btrfs-progs






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Apr 30 at 8:04









            m1st0

            311




            311












            • To get rid of that message, you need to do sudo update-initramfs -ukall as well. But still, that doesn't help much, the boot process then hangs at the step before saying Begin: Running /scripts/local-premount
              – rubo77
              May 10 at 6:36




















            • To get rid of that message, you need to do sudo update-initramfs -ukall as well. But still, that doesn't help much, the boot process then hangs at the step before saying Begin: Running /scripts/local-premount
              – rubo77
              May 10 at 6:36


















            To get rid of that message, you need to do sudo update-initramfs -ukall as well. But still, that doesn't help much, the boot process then hangs at the step before saying Begin: Running /scripts/local-premount
            – rubo77
            May 10 at 6:36






            To get rid of that message, you need to do sudo update-initramfs -ukall as well. But still, that doesn't help much, the boot process then hangs at the step before saying Begin: Running /scripts/local-premount
            – rubo77
            May 10 at 6:36












            up vote
            1
            down vote













            It is the btrfs kernel module that does the scanning (for filesystems scanning multiple devices).



            I have not found an indication that this is configurable, so your only options seems to be removing that module from your kernel (modprobe -r btrfs) assuming your kernel supports that.






            share|improve this answer

















            • 1




              I tried, but it seems like this has no effect on Ubuntu 18.04
              – rubo77
              May 9 at 17:00















            up vote
            1
            down vote













            It is the btrfs kernel module that does the scanning (for filesystems scanning multiple devices).



            I have not found an indication that this is configurable, so your only options seems to be removing that module from your kernel (modprobe -r btrfs) assuming your kernel supports that.






            share|improve this answer

















            • 1




              I tried, but it seems like this has no effect on Ubuntu 18.04
              – rubo77
              May 9 at 17:00













            up vote
            1
            down vote










            up vote
            1
            down vote









            It is the btrfs kernel module that does the scanning (for filesystems scanning multiple devices).



            I have not found an indication that this is configurable, so your only options seems to be removing that module from your kernel (modprobe -r btrfs) assuming your kernel supports that.






            share|improve this answer












            It is the btrfs kernel module that does the scanning (for filesystems scanning multiple devices).



            I have not found an indication that this is configurable, so your only options seems to be removing that module from your kernel (modprobe -r btrfs) assuming your kernel supports that.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jun 7 '13 at 5:37









            Anthon

            59.8k17102163




            59.8k17102163








            • 1




              I tried, but it seems like this has no effect on Ubuntu 18.04
              – rubo77
              May 9 at 17:00














            • 1




              I tried, but it seems like this has no effect on Ubuntu 18.04
              – rubo77
              May 9 at 17:00








            1




            1




            I tried, but it seems like this has no effect on Ubuntu 18.04
            – rubo77
            May 9 at 17:00




            I tried, but it seems like this has no effect on Ubuntu 18.04
            – rubo77
            May 9 at 17:00










            up vote
            -1
            down vote













            The script which starts the search looks for the existence of btrfs.
            Simply renaming the executable /sbin/btrfs to p.e /sbin/btrfs.save (as sudo) will eliminate the search , gaining some 10-20 seconds in the boot-process!






            share|improve this answer



















            • 2




              it is not recommended to just delete system files. better uninstall the btrfs too with apt purge btrfs-tools
              – rubo77
              May 10 at 6:38















            up vote
            -1
            down vote













            The script which starts the search looks for the existence of btrfs.
            Simply renaming the executable /sbin/btrfs to p.e /sbin/btrfs.save (as sudo) will eliminate the search , gaining some 10-20 seconds in the boot-process!






            share|improve this answer



















            • 2




              it is not recommended to just delete system files. better uninstall the btrfs too with apt purge btrfs-tools
              – rubo77
              May 10 at 6:38













            up vote
            -1
            down vote










            up vote
            -1
            down vote









            The script which starts the search looks for the existence of btrfs.
            Simply renaming the executable /sbin/btrfs to p.e /sbin/btrfs.save (as sudo) will eliminate the search , gaining some 10-20 seconds in the boot-process!






            share|improve this answer














            The script which starts the search looks for the existence of btrfs.
            Simply renaming the executable /sbin/btrfs to p.e /sbin/btrfs.save (as sudo) will eliminate the search , gaining some 10-20 seconds in the boot-process!







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited May 13 '14 at 14:11









            Raphael Ahrens

            6,81352845




            6,81352845










            answered May 13 '14 at 13:53









            stockman eric

            1




            1








            • 2




              it is not recommended to just delete system files. better uninstall the btrfs too with apt purge btrfs-tools
              – rubo77
              May 10 at 6:38














            • 2




              it is not recommended to just delete system files. better uninstall the btrfs too with apt purge btrfs-tools
              – rubo77
              May 10 at 6:38








            2




            2




            it is not recommended to just delete system files. better uninstall the btrfs too with apt purge btrfs-tools
            – rubo77
            May 10 at 6:38




            it is not recommended to just delete system files. better uninstall the btrfs too with apt purge btrfs-tools
            – rubo77
            May 10 at 6:38


















             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f78535%2fhow-to-get-rid-of-the-scanning-for-btrfs-file-systems-at-start-up%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            List directoties down one level, excluding some named directories and files

            list processes belonging to a network namespace

            list systemd RuntimeDirectory mounts