Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

How I recovered LiveUSB with persistence after broken kernel upgrade

Report Bugs, Issues and non- package Requests
Post Reply
User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 4284
Joined: Wed Apr 11, 2018 5:09 pm

How I recovered LiveUSB with persistence after broken kernel upgrade

#1

Post by fehlix » Thu Jun 20, 2019 11:12 am

As this is urgent here my survival howto:

Recover LiveUSB with persistence after broken kernel update

I could reproduce the issue after recent broken kernel upgrade with ending up with a not working LiveUSB.
And could also recover without loosing persistence data.

The only way to resolve the issue without loosing persistence data was this:

1. install another kernel
2. run live-remaster
3. update live-kernel-updater

TO 1: install another kernel
Boot with LiveUSB without persistence, so you have a working system:

I tried both of those kernel successfully kernel:
4.9.176-antix and 5.1.5-antix
Probaly 4.20.12-antix would work also.

Get the deb packages
E.g. for 4.9.176 kernel:
with terminal run:
first update pakage list:

Code: Select all

sudo apt update

Code: Select all

sudo apt download linux-image-4.9.176-antix.1-amd64-smp
and

Code: Select all

sudo apt download linux-headers-4.9.176-antix.1-amd64-smp
For kernel 5.1.5 it would like this:

Code: Select all

sudo apt download linux-image-5.1.5-antix.1-amd64-smp
sudo apt download linux-headers-5.1.5-antix.1-amd64-smp
For kernel 4.20 it would like this:

Code: Select all

sudo apt download linux-image-4.20.12-antix.1-amd64-smp
sudo apt download linux-headers-4.20.12-antix.1-amd64-smp
Copy the downloader linux image and header packages onto USBStick
Create new directory

Code: Select all

sudo mkdir  /live/boot-dev/antiX/deb/
and copy both downloaded deb's into

Code: Select all

sudo cp linux*.deb /live/boot-dev/antiX/deb
(alternativly copy the deb's into Live-USB-storage)

Reboot now with persistence enabled, as we are going to repair rootfs with persistence.
Boot int console runlevel 3 by adding 3 as boot parameter.
Log into console as normale user.

After login the new linux-kernel are already installed:
Navigate to /live/boot-dev/antiX and rename/remove deb-folder to something else like deb-installed,
so they wont installed on every boot.

EDIT: If the linux-*.deb have been copied to Live-USB-storage, do install manually like, e.g.
navigate to Live-usb-storage folder and run

Code: Select all

sudo apt install ./linux-*.deb 
Now run

Code: Select all

sudo live-remaster
after finished
update live-initrd by running

Code: Select all

sudo live-kernel-updater
Now I could reboot into my LiveUSB with all persistence data and installed apps working
HTH
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 11902
Joined: Sun Dec 16, 2007 1:17 pm

Re: How I recovered LiveUSB with persistence after broken kernel upgrade

#2

Post by dolphin_oracle » Thu Jun 20, 2019 11:44 am

Nice.work fehlix!
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-18.3
lenovo s21e - antiX-19 beta 2 (live-USB)
FYI: mx "test" repo is not the same thing as debian testing repo.

Nilso
Forum Novice
Forum  Novice
Posts: 31
Joined: Wed Jun 19, 2019 1:33 am

Re: How I recovered LiveUSB with persistence after broken kernel upgrade

#3

Post by Nilso » Fri Jun 21, 2019 1:00 am

Want to try this later, just one question which Kernel would you advise to use and what are the pros and cons of them ?

Code: Select all

System:    Host: mx1 Kernel: 4.19.0-5-amd64 x86_64 bits: 64 compiler: gcc v: 6.3.0 
           Desktop: Xfce 4.12.3 Distro: MX-18.3_x64 Continuum May 26  2019 
           base: Debian GNU/Linux 9 (stretch) 
Machine:   Type: Desktop Mobo: ASUSTeK model: P6T DELUXE V2 v: Rev 1.xx serial: <filter> 
           BIOS: American Megatrends v: 1108 date: 09/21/2010 
CPU:       Topology: Quad Core model: Intel Core i7 920 bits: 64 type: MT MCP arch: Nehalem 
           rev: 5 L2 cache: 8192 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 57598 
           Speed: 2158 MHz min/max: 1600/2668 MHz Core speeds (MHz): 1: 2160 2: 2160 3: 2160 
           4: 2281 5: 2277 6: 2160 7: 2160 8: 2283 
Graphics:  Device-1: NVIDIA GT200b [GeForce GTX 275] vendor: LeadTek Research driver: nvidia 
           v: 340.107 bus ID: 02:00.0 
           Display: x11 server: X.Org 1.19.2 driver: nvidia resolution: 1280x1024~60Hz 
           OpenGL: renderer: GeForce GTX 275/PCIe/SSE2 v: 3.3.0 NVIDIA 340.107 
           direct render: Yes 
Audio:     Device-1: Intel 82801JI HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus ID: 00:1b.0 
           Device-2: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo bus ID: 8-4:3 
           Sound Server: ALSA v: k4.19.0-5-amd64 
Network:   Device-1: Marvell 88E8056 PCI-E Gigabit Ethernet vendor: ASUSTeK driver: sky2 v: 1.30 
           port: b800 bus ID: 04:00.0 
           IF: eth1 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           Device-2: Marvell 88E8056 PCI-E Gigabit Ethernet vendor: ASUSTeK driver: sky2 v: 1.30 
           port: d800 bus ID: 06:00.0 
           IF-ID-1: eth0 state: down mac: <filter> 
Drives:    Local Storage: total: 1.85 TiB used: 263.3 MiB (0.0%) 
           ID-1: /dev/sda vendor: Samsung model: HD103UJ size: 931.51 GiB 
           ID-2: /dev/sdb vendor: Samsung model: HD103UJ size: 931.51 GiB 
           ID-3: /dev/sdc type: USB vendor: SanDisk model: Ultra size: 28.64 GiB 
RAID:      Hardware-1: Intel SATA Controller [RAID mode] driver: ahci v: 3.0 bus ID: 00:1f.2 
Partition: ID-1: / size: 4.59 GiB used: 263.3 MiB (5.6%) fs: overlay source: ERR-102 
Sensors:   System Temperatures: cpu: 44.0 C mobo: N/A gpu: nvidia temp: 56 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 40% 
Repos:     Active apt repos in: /etc/apt/sources.list.d/antix.list 
           1: deb http://iso.mxrepo.com/antix/stretch stretch main
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://ftp.de.debian.org/debian/ stretch-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://ftp.de.debian.org/debian/ stretch main contrib non-free
           2: deb http://security.debian.org/ stretch/updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ stretch main non-free
           No active apt repos in: /etc/apt/sources.list.d/various.list 
Info:      Processes: 223 Uptime: 15m Memory: 5.81 GiB used: 1.00 GiB (17.3%) Init: SysVinit 
           runlevel: 5 Compilers: gcc: 6.3.0 Shell: bash v: 4.4.12 inxi: 3.0.33 

Code: Select all

$ uname -a
Linux mx1 4.19.0-5-amd64 #1 SMP Debian 4.19.37-2~mx17+1 (2019-05-15) x86_64 GNU/Linux
Last edited by Nilso on Fri Jun 21, 2019 1:07 pm, edited 1 time in total.

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 4791
Joined: Sun May 27, 2007 5:37 am

Re: How I recovered LiveUSB with persistence after broken kernel upgrade

#4

Post by asqwerth » Fri Jun 21, 2019 1:19 am

Nilso wrote:
Fri Jun 21, 2019 1:00 am
Want to try this later, just one question which Kernel would you advise to use and what are the pros and cons of them ?
It would help the experts (who might be asleep right now) if you set out the details of your hardware.

Easy way to provide said details:
Click on MX Tools >> Quick System Info, and paste the (already clipboarded) contents of the text output in this thread.


If you have new hardware you might need a newer kernel for your graphics card, wireless, CPU, etc.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

Nilso
Forum Novice
Forum  Novice
Posts: 31
Joined: Wed Jun 19, 2019 1:33 am

Re: How I recovered LiveUSB with persistence after broken kernel upgrade

#5

Post by Nilso » Fri Jun 21, 2019 2:08 am

Yes indeed, forgot about that, will give those details later when I'm back from work and am on my Pc.

User avatar
Richard
Posts: 2754
Joined: Fri Dec 12, 2008 10:31 am

Re: How I recovered LiveUSB with persistence after broken kernel upgrade

#6

Post by Richard » Fri Jun 21, 2019 2:27 am

Imagine the 4.9 kernel is probably the most stable.
LT: MX18.3: Thinkpad T430: DualCore, Intel i5-3320M, Ivy Bridge; 8GB RAM; 4.19.0-5-amd64; 119GB SSD 840PRO, Intel Graphics-Audio-Network
NB: MX18.1, antiX19b2full-xfce: AsusTek EeePC 1005HA: Intel DualCore Atom N270, 1GB RAM, 4.19.0-1-686, 150GB HDD

Nilso
Forum Novice
Forum  Novice
Posts: 31
Joined: Wed Jun 19, 2019 1:33 am

Re: How I recovered LiveUSB with persistence after broken kernel upgrade

#7

Post by Nilso » Fri Jun 21, 2019 1:08 pm

added HW-Info to my question regarding Kernel, see above

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 4791
Joined: Sun May 27, 2007 5:37 am

Re: How I recovered LiveUSB with persistence after broken kernel upgrade

#8

Post by asqwerth » Fri Jun 21, 2019 8:41 pm

Hmmm, don't know anything about RAID.

Nor what Nvidia drivers you'll need.

But since you're not on the latest hardware, i agree with Richard that installing the Debian Stable 4.9 kernel (4.9.0-5) is a good bet.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
TTwrs
Forum Novice
Forum  Novice
Posts: 22
Joined: Fri Oct 12, 2018 5:32 pm

Re: How I recovered LiveUSB with persistence after broken kernel upgrade

#9

Post by TTwrs » Sat Jun 22, 2019 12:13 pm

This what I have now on MX-18.3:

$ uname -a
Linux mx1 4.19.0-5-amd64 #1 SMP Debian 4.19.37-2~mx17+1 (2019-05-15) x86_64 GNU/Linux

As far as I know the kernel was never updated. Is this what came with 18.3 and, if so, is this the 'problem' kernel?

FYI, everything seems to be working okay and I did do a remaster a while ago. I run from a live flashdrive with persistence enabled at all times.

Will any fixes appear in the repos? Tnx.

User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 4284
Joined: Wed Apr 11, 2018 5:09 pm

Re: How I recovered LiveUSB with persistence after broken kernel upgrade

#10

Post by fehlix » Sat Jun 22, 2019 12:22 pm

TTwrs wrote:
Sat Jun 22, 2019 12:13 pm
This what I have now on MX-18.3:

$ uname -a
Linux mx1 4.19.0-5-amd64 #1 SMP Debian 4.19.37-2~mx17+1 (2019-05-15) x86_64 GNU/Linux
This kernel is fine. Mean while we fixed the issue : See Kernel issue resolved
referencing to Blog post here https://mxlinux.org/blog/our-recent-kernel-problem/
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Post Reply

Return to “Bugs and Non-Package Requests Forum”