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

4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel?
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel?
21st May, 2019, 06:03 AM
Post: #2
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: 4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel?
(18th May, 2019 09:04 AM)Gyuunduh Wrote:  I'm sorry for not being able to access the log files for exact commands or error messages i've ran and had before running into problems. Also I feel I'm a bit out of me depth in here, having learnt to tinker with Linux a bit with Xbian but having no proper understanding of cmdline.txt or boot blocks, I only know how to use btrfs-auto-snapshots. Anyway here goes:

I have been running an Xbian installation at least one year old, not paying any attention to filesystem compressions or messing with them as everything has been working just fine. The latest kernel update on my Raspberry Pi 2 (4.19.42+ I guess) didn't work, apt-get upgrade gave me an error message saying: "you have LZ4 compression enabled, but this is not longer supported by kernel v4.19.42+"

The advice apt-get gave me was to run apt-get --remove-compression or apt-get --recompress or something like that that had compression in it. I dont' recall that exactly and I can't check what it was because the log files are out of my reach now.

I ran the command, and an ASCII visualization of the process showed up. It failed at 75 %, error message saying something about there not being enough space, running out of kilobytes maybe (that sounded legit, I had something like 4 GB of free space on 100+ GB SD card).

I tried running apt-get upgrade again anyway after that and this time it proceeded to unpack and install the newer

That was really bad idea Sad

Quote:kernel. But after reboot Xbian boots into recovery console, failing to mount root, telling me:
"wrong fs type, bad option, bad superblock on /dev/mmcblk0p2, missing codepage or helper program or other error." And later: "The root partition as specified in cmdline.txt or boot.src.txt is now mounted under /rootsfs", and that the directory is totally empty.

There is no way to get access to your files from recovery console, because installed kernel does not support LZ4 compression anymore. That's the bad news.

The good news is, your data is still present, what you need is an older kernel, but you can't install the kernel from recovery console.

So, one way could be install XBian on a fresh sd-card, boot from that card and install older kernel. Then you can get access to your old installation by using an usb sd-card reader plugging into an usb port of your Pi

Quote:I'm pretty sure it has something to do with the kernel being upgraded to a version that doesn't support LZ4 compression but the file system still being compressed and thus being unaccessible.

That's right. The command you run was xbian-storager compress, but for proper work you need at least 50% of free disk space. You do not have this, so command failed

Quote:Is there any way to revert to an older kernel that still supports the compression, so I can access my Xbian filesystem? Or is the problem somewhere else?

Anyway, I'd be really grateful for help, because right now it seems that I can't access any files on my Xbian.

Yes, first solution see above

Another solution would be, install XBian on a fresh sd-card, boot from that card and install older kernel. Then copy the content of this boot partition to that old boot partition and now you can boot again from your old card (backing up the boot partition first would be a good idea).

If you can boot now, you should install older kernel again and after that, you have to lock this kernel to prevent it from overwritten.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - Gyuunduh - 18th May, 2019, 09:04 AM
RE: 4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - Nachteule - 21st May, 2019 06:03 AM
RE: 4.19.42+ kernel broke the file system, LZ4 issue, how to revert to previ kernel? - Nachteule - 21st May, 2019, 06:35 AM
RE: 4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - Nachteule - 21st May, 2019, 06:41 AM
RE: 4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - Gyuunduh - 21st May, 2019, 08:41 AM
RE: 4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - Nachteule - 21st May, 2019, 10:21 PM
RE: 4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - Gyuunduh - 22nd May, 2019, 12:45 AM
RE: 4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - Nachteule - 22nd May, 2019, 01:12 AM
RE: 4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - Gyuunduh - 22nd May, 2019, 07:45 AM
RE: 4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - Nachteule - 22nd May, 2019, 10:19 PM
4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - ikke - 24th Jul, 2019, 06:28 AM
RE: 4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - Nachteule - 24th Jul, 2019, 06:38 AM
4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - ikke - 24th Jul, 2019, 02:26 PM
4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - ikke - 24th Jul, 2019, 04:49 PM
RE: 4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - Nachteule - 25th Jul, 2019, 02:29 AM
RE: 4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - edralzar - 18th Dec, 2019, 04:01 AM
RE: 4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - Nachteule - 18th Dec, 2019, 04:11 AM
RE: 4.19.42+ kernel broke the file system, LZ4 issue, how to revert to prev kernel? - edralzar - 18th Dec, 2019, 07:33 PM

Possibly Related Threads...
Thread: Author Replies Views: Last Post
  problems with new kernel update rafhtl 5 10,468 1st Sep, 2019 06:24 AM
Last Post: Nachteule
  How can I add lz4-patch to kernel? suhm 8 25,847 12th Jan, 2017 11:40 PM
Last Post: jyviko
  Kernel 4.4 for RPI2 duno 4 13,760 29th Jan, 2016 03:48 AM
Last Post: duno
  Kernel 3.18.6+ Test (Pi 1 only) f1vefour 13 32,713 28th Feb, 2015 06:45 AM
Last Post: f1vefour
Question [RPi] Staging xbian-package-kernel (3.17.7-ck2+) CurlyMo 5 14,653 13th Feb, 2015 12:33 AM
Last Post: f1vefour
  xbian kernel source package eph 4 27,683 19th Dec, 2014 08:34 PM
Last Post: eph
  [IDEA] Kernel for Wolfson Dunnie 3 12,799 6th Nov, 2014 10:24 PM
Last Post: f1vefour
  Latest RPI kernel doesn't support zram Killerbee 2 11,769 14th Dec, 2013 12:47 AM
Last Post: Killerbee
  KERNEL 3.12 question zarboz 5 16,319 16th Nov, 2013 10:23 AM
Last Post: zarboz
  TP-Link TL-WN725N version 2 with 3.8 Kernel kyle_l88 8 43,876 10th Sep, 2013 10:11 AM
Last Post: mk01

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

Current time: 23rd May, 2025, 05:30 AM Powered By MyBB, © 2002-2025 MyBB Group.