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

[SOLVED] Btrfs is broken
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: Btrfs is broken
27th Oct, 2018, 04:54 AM (This post was last modified: 27th Oct, 2018 04:57 AM by Nachteule.)
Post: #3
Nachteule Offline
Administrator
******
Posts: 2,406
Joined: Dec 2014
Reputation: 122
RE: Btrfs is broken
(26th Oct, 2018 06:28 PM)chochis Wrote:  So, after a few seconds the filesystem is on read_only so I cannot restore btrfs from a snapshot.

Terminal
xbian@xbian ~ $ sudo btrfs-auto-snapshot list root
Error: unable to mount the filesystem

Is there any way I can put to work a snapshot from ubuntu?

The main problem is that XBian is using LZ4 as compression which is not included in standard distributions. So It's not possible without a patched kernel

In the future (or should I say since one week), LZ4 compression has been suspended since it does not work stable since kernel 4.15, see this commit and starting with kernel 4.18, the LZ4 patch has been removed completely

Quote:I've downloaded the script btrfs-auto-snapshot but I cannot make it work for a /media partition in ubuntu. I am not fully confident with what it does when "restoring".

FYI: you do not need btrfs-auto-snapshot to restore a snapshot. Just mount sd (if your kernel allows this - see above), move into ./root subvol and you will see all the snapshots you have. A rename of @ to @-bad and then any @... to @ will revert the subvol to that snapshot

To repair a broken BTRFS fs, the common way is to turn into the rescue mode (included in initramfs, so it need to be enabled) and then run btrfs check /dev/mmcblk0p2
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Btrfs is broken - chochis - 26th Oct, 2018, 06:28 PM
RE: Btrfs is broken - chochis - 27th Oct, 2018, 12:18 AM
RE: Btrfs is broken - Nachteule - 27th Oct, 2018, 04:59 AM
RE: Btrfs is broken - Nachteule - 27th Oct, 2018 04:54 AM
RE: Btrfs is broken - Exnor - 13th Nov, 2018, 07:14 AM
RE: Btrfs is broken - Nachteule - 13th Nov, 2018, 07:27 AM
RE: Btrfs is broken - Exnor - 13th Nov, 2018, 08:36 AM
RE: Btrfs is broken - Nachteule - 13th Nov, 2018, 09:32 AM
RE: Btrfs is broken - Exnor - 14th Nov, 2018, 04:33 AM
RE: Btrfs is broken - Nachteule - 14th Nov, 2018, 05:17 AM
RE: Btrfs is broken - Exnor - 15th Nov, 2018, 08:33 AM
RE: Btrfs is broken - Nachteule - 15th Nov, 2018, 08:53 AM
RE: Btrfs is broken - Exnor - 16th Nov, 2018, 04:16 AM
RE: Btrfs is broken - Nachteule - 16th Nov, 2018, 04:46 AM
RE: Btrfs is broken - Exnor - 17th Nov, 2018, 04:44 AM
RE: Btrfs is broken - Nachteule - 17th Nov, 2018, 05:04 AM
RE: Btrfs is broken - Exnor - 17th Nov, 2018, 05:29 AM
RE: Btrfs is broken - Nachteule - 17th Nov, 2018, 06:53 AM
RE: Btrfs is broken - Exnor - 17th Nov, 2018, 07:00 AM

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

Current time: 9th Jun, 2025, 06:57 PM Powered By MyBB, © 2002-2025 MyBB Group.