Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to automount btrfs on 12.04-desktop-amd64.
During bootsplash, fstab failed to mount btrfs and asked skip or manually prepare.

On the rootshell, btrfs device scan and mount -a could automount properly.
It seems "btrfs device scan" was missing from bootstrap.

Where should I add the line to prepare bootstrap?

share|improve this question

Add device=/dev/sda1,/dev/sdb1 etc to the mount options (e.g. subvol=@,device=/dev...) depending on what your actual btrfs partitions are to grub.cfg.

Note that update-grub will overwrite this. You can monkeypatch /etc/grub.d/10_linux.

Theoretically initrd should do a btrfs device scan, and I think I've already seen bugs open for this. At any rate once I have a cleaner solution I will double check.

share|improve this answer

Edit /etc/initramfs-tools/modules and add:


And then run:

sudo update-initramfs -u
share|improve this answer
I'm experiencing the same issue as the original question owner. And your correction didn't work for me. – vaab Mar 19 '13 at 14:40

Definitively not the best solution, but the first one that works for me is to simply add mount -a to /etc/rc.local.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.