I've installed xbian distro on RPi.

I want to edit the files in my SD card using my computer, Ubuntu 14.04.

However, when I insert the SD card, the Ubuntu cannot mount the Xbian partition, and gives the following error:

Error: Unable to mount xbian partition

and when I type dmesg | tail , it gives the following:

Error Messages

Now what should I do to access the contents of xbian partition on SD card!?

  • If at all possible, please copy & paste terminal contents (use "code block" formatting), instead of images. Text is searchable; images are not (at least, not by the search here). – derobert Jun 5 '15 at 17:40

It'd appear you're using a compression algorithm that has been patched in to the Xbian kernel, but not the Ubuntu kernel. It looks like Xbian patched in and defaulted to lv4.

That patch hasn't made it to the mainline kernel (see, e.g., [1] and [2].) So you'd probably have to rebuild your Ubuntu kernel with the Xbian LZ4 patch (the only way you wouldn't is if someone else has already done it, and you just download/install it).

It looks like you can find the LZ4 patch at the Xbian kernel github. Look inside the version matching your kernel version for lz4.patch.

  • 1
    @mchid Nope, that won't add it to the kernel. It's the in-kernel btrfs code that can't handle the LZ4 compression. – derobert Jun 5 '15 at 18:44
  • Thanks @derobert for your detailed reply. Actually, I'm new to linux, and I don't know how to do all these stuff! Is there any other alternative to access the contents of this SD card? – Omid1989 Jun 5 '15 at 20:25
  • @Omid1989 I think the only other ways are things like boot up the Pi (or whatever) from the SD card, and set it up as an NFS server. Or recreate the filesystem without that compression option. (Note recreating the filesystem deletes all the data on it.) – derobert Jun 5 '15 at 22:02
  • Thanks @derobert for your help. It seems that currently the only way to access btrfs/lz4 partition of Xbian is through another Xbian machine!! – Omid1989 Jun 7 '15 at 6:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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