btrfs recovery - howto?
|
27th Apr, 2015, 04:44 AM
Post: #2
|
|||
|
|||
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. 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... |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
btrfs recovery - howto? - ghaspias - 19th Apr, 2015, 04:27 AM
RE: btrfs recovery - howto? [partially solved] - ghaspias - 27th Apr, 2015 04:44 AM
|