You are not logged in.

#1 2017-07-26 22:58:02

barnabyh
Member
Registered: 2016-08-16
Posts: 71

[SOLVED] Missing initrd after upgrade from Waldorf- Colonel panic

Hi all,

I've done it, finally taken the plunge and upgraded trusty old Waldorf to now already old-stable Jessie via the Devuan repos. That shouldn't be part of the problem.

Issue is there's no initrd.img-3.16.0.4-686 in /boot so unsurprisingly it's not booting and on panic stations.

Old kernel 3.2.0.4 just goes to a blank screen after boot sequence has finished.
I should mention that the system is on an encrypted LVM , somehow the upgrade process missed creating an initrd.

I'm a bit past my fiddling days and short of time. Is there an easy way to sort this out like copying an initrd from a debian live cd into directory?
I've got a Puppy Slack live cd here which is good but it doesn't let you mount encrypted volumes AFAIK.

Appreciated. Thanks guys (and girls).

Last edited by barnabyh (2017-07-30 18:55:27)


From ArchBang to SlackBang | Project SlackBang - updated as we go along. | LXDE/LXQT for Slackware

Say no to bugs. - It's not a bug, it's a worm.

Offline

#2 2017-07-27 06:32:33

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] Missing initrd after upgrade from Waldorf- Colonel panic

barnabyh wrote:

Hi all

Hi barnabyh, how's tricks?

upgraded trusty old Waldorf to now already old-stable Jessie via the Devuan repos. That shouldn't be part of the problem.

So I take it that you read and followed all of the advice contained in https://www.debian.org/releases/jessie/ … ng.en.html, then?

There is quite a lot that can go wrong in the procedure.

Is there an easy way to sort this out like copying an initrd from a debian live cd into directory?

Chroot into the system from the live environment and update your initramfs; it may be that re-installing the kernel will also generate a new initramfs.

I've got a Puppy Slack live cd here which is good but it doesn't let you mount encrypted volumes AFAIK

Our next round of ISO images will contain the software needed but until then you can load up our current ISO image and use:

sudo apt install lvm2 cryptsetup

Then mount the encrypted volumes (I don't know how to do that, never used LVM or LUKS) with the root filesystem placed under /mnt then run:

sudo -i
for i in /proc /sys /dev /dev/pts; do mount --bind $i /mnt$i; done
chroot /mnt /bin/bash
update-initramfs -u
exit
exit
reboot

Offline

#3 2017-07-27 10:51:04

barnabyh
Member
Registered: 2016-08-16
Posts: 71

Re: [SOLVED] Missing initrd after upgrade from Waldorf- Colonel panic

Hi HoaS. Thank you, great guide.  I will follow later on today hopefully and update this thread accordingly.

Apart from that, life's ok. Going to start a new job on Tuesday.

Yes, I did look this up prior to the upgrade and followed it.

Last edited by barnabyh (2017-07-27 10:52:40)


From ArchBang to SlackBang | Project SlackBang - updated as we go along. | LXDE/LXQT for Slackware

Say no to bugs. - It's not a bug, it's a worm.

Offline

#4 2017-07-29 10:33:19

barnabyh
Member
Registered: 2016-08-16
Posts: 71

Re: [SOLVED] Missing initrd after upgrade from Waldorf- Colonel panic

To give an update, this process was successful. I followed instructions to mount an encrypted LVM from the Refracta project.

sudo cryptsetup luksOpen /dev/sdxY label  # then run lvdisplay to get the vg name and lv name
sudo vgchange -a y <volume_group_name> 
mount /dev/mapper/<vg_name-lv_name>  <mountpoint> 

umount <mountpoint>
sudo vgchange -a n <volume_group_name>
sudo cryptsetup luksClose label

In our case mount and umount also require the sudo command.

This went well and enabled me to finish the upgrade process, removing old packages with apt-get autoremove and setting up packages. It seems this step was not completed before. Duh, never had a Debian upgrade exiting on me before setting everything up.

However, it appears I have run into the 'activation/thin_check_executable' bug where boot loader is unable to find LVM volume.

I'll give this a few more tries but reinstalling may in the end be the quicker option.

Last edited by barnabyh (2017-07-29 10:48:05)


From ArchBang to SlackBang | Project SlackBang - updated as we go along. | LXDE/LXQT for Slackware

Say no to bugs. - It's not a bug, it's a worm.

Offline

#5 2017-07-31 20:50:49

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Re: [SOLVED] Missing initrd after upgrade from Waldorf- Colonel panic

@barnabyh:  You might consider editing the title of your OP and change Colonel to Kernel.

Offline

#6 2017-08-03 02:03:44

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,673
Website

Re: [SOLVED] Missing initrd after upgrade from Waldorf- Colonel panic

^a joke, maybe?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Online

#7 2017-08-03 03:04:28

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,901

Re: [SOLVED] Missing initrd after upgrade from Waldorf- Colonel panic

johnraff wrote:

^a joke, maybe?

Yes autocorrect can turn things hilariously indeed big_smile


Real Men Use Linux

Offline

Board footer

Powered by FluxBB