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?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
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).
sudo update-initramfs -u
(create the file if it does not exist and just add
RESUME=none in it)
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
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:
All is well. Now make a restart. Hope your Ubuntu will start successfully this time.
Let me know if you have some questions still.
At least with server versions of ubuntu
btrfs-tools is not loaded by default and thus this unwanted scan is not an issue. The issue arises when you install a distro that has tools which have
btrfs-tools as a dependency like the popular
timeshift which is included with mint. That creates the issue. If you can live without
timeshift then just remove
btrfs-tools per other posts and you should be good to go (it will remove
timeshift and update initramfs automatically).
BUT if you are like me use
qt-fsarchiver or need
timeshift then you can't just remove btrfs-tools as it is a dependency of both. If you remove it you will remove them. :(.
So this is what I did.
sudo modprobe -r btrfs echo blacklist btrfs | sudo tee -a /etc/modprobe.d/blacklist-btrfs.conf sudo update-initramfs -u
now reboot and watch to see if the btrfs scan was disabled.
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.