Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 would like to install btrfs-restore on Kubuntu 12.04

apt-cache search btrfs-restore returns nothing.

Google "ubuntu download OR install btrfs-restore" returns nothing useful.

Also, where do I get btrfs help? I'm not getting any replies on #btrfs on (Correction: I was too impatient. #btrfs was very helpful!)

UPDATE: the previously accepted answer no longer works, so I unselected it as the answer. The PPA dmitrij.ledkov/ppa is missing now. Thanks to Pkunk at #btrfs, I posted a new solution below.

share|improve this question
up vote 2 down vote accepted

ppa:dmitrij.ledkov is missing now, so the prior solution doesn't exactly work (although the idea is the same).

Use these steps:

  1. check the "other versions" under
  2. at the time of this answer, has a current version of btrfs-tools for Ubuntu 12.04 LTS. Install using the next steps.
  3. sudo add-apt-repository ppa:yofel/btrfs
  4. sudo apt-get update
  5. if installing new: sudo apt-get install btrfs-tools
  6. if upgrading: sudo apt-get --show-upgraded dist-upgrade (or similar)
share|improve this answer

1. Getting btrfs-restore

btrfs-restore is part of recent btrfs-tools packages in Ubuntu; unfortunately the one in Precise dates from 2010 and doesn't contain btrfs-restore.

The solution is to add the package from a PPA; this PPA is from the maintainer of btrfs-tools for Ubuntu, and contains the same version that is currently in 12.10 Alpha.

sudo apt-add-repository ppa:dmitrij.ledkov/ppa
sudo apt-get update
sudo apt-get install btrfs-tools

Alternately, you can directly install the Quantal debs with dpkg -i: for i386 or amd64

2. Getting btrfs support

IME, unless you are trying to recover data from a hard-drive which is going to blow up within the hour (or similar exigency), your best bet for informed support is the official btrfs mailing list.

share|improve this answer
One other option is to just install from git source: see – MountainX Jul 3 '12 at 13:41

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.