Results 1 to 8 of 8

Thread: error: sparse file not allowed (Btrfs)

  1. #1
    Join Date
    Nov 2012
    Location
    Thousand Oaks, CA, USA
    Beans
    323
    Distro
    Ubuntu Development Release

    error: sparse file not allowed (Btrfs)

    When do you guys think this will be fixed? It seems as though the problem has spanned as far back as Ubuntu 9.10.

  2. #2
    Join Date
    Dec 2004
    Location
    Manchester
    Beans
    2,082
    Distro
    Ubuntu Studio 13.04 Raring Ringtail

  3. #3
    Join Date
    Mar 2007
    Location
    Bristol, England
    Beans
    84
    Distro
    Ubuntu

    Re: error: sparse file not allowed (Btrfs)

    Yep think it is the same bug.

    It's been around a long time indeed, maybe one day it will get fixed

  4. #4
    Join Date
    Nov 2012
    Location
    Thousand Oaks, CA, USA
    Beans
    323
    Distro
    Ubuntu Development Release

    Re: error: sparse file not allowed (Btrfs)

    Quote Originally Posted by ssam View Post
    I believe so. I have a different architecture and Ubuntu version, but yep it's the same problem. I wonder why it still hasn't been fixed.

  5. #5
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    7,454
    Distro
    Ubuntu Development Release

    Re: error: sparse file not allowed (Btrfs)

    According to the bug report 1) It is a Grub bug. 2) it is possible to comment out some lines in a Grub configuration file. 3) a patch to the grub configuration file has been put forward so that a new install will detect if root ( / ) is on btrfs and comment out those lines part of the installation process

    date: 2013-01-28
    Short of implementing btrfs environment-block support for GRUB, we need a better workaround that doesn't involve manually hacking config files.

    The scripts in /etc/grub.d/ can determine the type of the root filesystem---we see this in /etc/grub.d/10_linux, assigning to GRUBFS---so there's no reason why the workaround Colin gave in comment 10 cannot be automated.


    I'm attaching a proof-of-concept patch, against /etc/grub.d/00_header as of Quantal, that conditionalizes inclusion of the grubenv code on the type of the root filesystem. If "/" is on btrfs, then a warning is printed, and an alternate bit of code is put into /boot/grub/grub.cfg.
    I use btrfs on my main saucy install and also on saucy+mir on Ubuntu and the flavours except Lubuntu which crashes the install if I try to install it on btrfs. This minor issue is no problem for me. And yet some see insignificant bugs like this as a symptom of all they see wrong with Ubuntu.

    The truth is without a snapshot management utility btrfs is not ready for being a Ubuntu default file system. So, btrfs still comes under the heading of "Experimental" as far as I am concerned. New installs are going in on Ext4. The vast number of users will never see this message. Those that do see it should accept that it is the price paid for experimenting.

    Regards.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  6. #6
    Join Date
    Nov 2012
    Location
    Thousand Oaks, CA, USA
    Beans
    323
    Distro
    Ubuntu Development Release

    Re: error: sparse file not allowed (Btrfs)

    I reported this bug to the Grub bug tracker. I hope somebody fixes it, finally.
    https://savannah.gnu.org/bugs/?39688

  7. #7
    Join Date
    May 2011
    Beans
    0

    Re: error: sparse file not allowed (Btrfs)

    I'm using and installing 13.10 and this error is clearly related with BTRFS as root/boot file system and usage of "GRUB_DEFAULT=saved" and "GRUB_SAVEDEFAULT=true" in /etc/default/grub.
    I can confirm this since appear in several installations I made, and appear ONLY the moment I want set a more flexible dual-boot system (Windows/Linux) with those 2 useful autosaving settings.
    BTRFS per se is not the problem (that one always saying the same "sparse file not allowed" was fixed in 12.10 or 13.04), but in conjunction with that grub options it POPS OUT AGAIN.

  8. #8
    Join Date
    Aug 2011
    Beans
    3

    Re: error: sparse file not allowed (Btrfs)

    using 12.04.4, same problem here

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •