Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

btrfs recovery - howto?
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
btrfs recovery - howto?
19th Apr, 2015, 04:27 AM
Post: #1
ghaspias Offline
Registered
Posts: 4
Joined: Sep 2014
Reputation: 0
btrfs recovery - howto?
My xbian system, in an external usb hd, is in an unbootable state, and I think it is just a problem with btrfs. Since I have important work backed up in the system partition, a reinstall is not possible.
Usually, even if it is not bootable, I would have no problem pluging that disk in another linux system (or just boot xbian from sdcard) to recover the data. But when I connect that hd to either a laptop linux system (Fedora 21 live) or a fresh xbian running on RPi B+, both crash with kernel panics!

So, is it safe to try to recover this btrfs file system on a different (laptop) linux system? Does the different compression (I think I have lzo, but I'm not quite sure -- how to check it?) affect the prospect of normal recovery?

Thanks for any suggestion.
Find all posts by this user
Quote this message in a reply
27th Apr, 2015, 04:44 AM
Post: #2
ghaspias Offline
Registered
Posts: 4
Joined: Sep 2014
Reputation: 0
RE: btrfs recovery - howto? [partially solved]
(19th Apr, 2015 04:27 AM)ghaspias Wrote:  My xbian system, in an external usb hd, is in an unbootable state, and I think it is just a problem with btrfs. Since I have important work backed up in the system partition, a reinstall is not possible.
Usually, even if it is not bootable, I would have no problem pluging that disk in another linux system (or just boot xbian from sdcard) to recover the data. But when I connect that hd to either a laptop linux system (Fedora 21 live) or a fresh xbian running on RPi B+, both crash with kernel panics!

So, is it safe to try to recover this btrfs file system on a different (laptop) linux system? Does the different compression (I think I have lzo, but I'm not quite sure -- how to check it?) affect the prospect of normal recovery?

Thanks for any suggestion.

After some (not very extensive) research, I still can not mount my btrfs xbian partition (on external usb HDD) in writable mode. I have been trying to access that filesystem using an Ubuntu 15.04 live iso, as well as a Fedora 22 live and both xbian-stable and xbian-latest fresh sdcard installs. It does mount, but in just a few seconds triggers kernel bugs and the system becomes unresponsive.
Still, I have found that I can recover (apparently all of) my data using btrfs-restore. The main issue I had with this approach is that I was not able to create a regex to exclude some paths (using --path-regex) and I have not enough free space to restore everything, from all different snapshots. Anyway, using meld diff viewer to compare @/ and a previous snapshot, it seems that @/ is ok, and I was able to come up with a regex to restore only from a specified snapshot or even a specified subpath, to recover my /etc/, /var/log/ and /opt/.
Later I found that I could mount my filesystem in read-only mode, using
mount -o ro,recovery /dev/sdc4 /mnt
Even the 'recovery' flag seems to be unnecessary.
So, this should let me backup anything I want.

I am still trying th find how to
a) get my filesystem to mount read/write (ideal case)
b) create a new clean install of xbian, in the same usb partition, without touching the remaining partitions, and without being subject to the same problem again...
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 12th May, 2025, 05:36 AM Powered By MyBB, © 2002-2025 MyBB Group.