[BlueOnyx:21655] Re: Aventurin{e} 6108R & BlueOnyx: Sceptre / Meltdown and Kernels

Michael Stauber mstauber at blueonyx.it
Mon Jan 8 20:42:44 -05 2018


Hi Steffan,

> After a reboot i only got a blincking cursor.

Outch. That's not good. I'm sorry to hear that.

Boot off the 6108R ISO (or the 5208R ISO will do as well if in a pinch)
and boot into "Rescue Mode". You find that in the ISO boot menu. Just be
*really* sure not to start the OS reinstall.

The "Rescue Mode" loads a minimal Linux off the ISO and allows you to
mount your disks. It'll ask you if you want network (you can say yes,
but then you need to configure it) and if you want your disks mounted.
Says "Yes" on the question about the disks.

Eventually you get to a root prompt. Run this command:

chroot /mnt/sysimage/

Then check if /etc/grub.conf is a symbolic link that points to
/boot/grub/grub.conf. And make sure that /boot/grub/grub.conf has the
proper information about your kernels.

The actual content of yours might be a bit different, but it should look
roughly similar to this:

~]# cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/sysvg-root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title OpenVZ (2.6.32-042stab127.2)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-042stab127.2 ro
root=/dev/mapper/sysvg-root rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=us
LANG=en_US rd_LVM_LV=sysvg/swap rd_NO_MD SYSFONT=latarcyrheb-sun16
crashkernel=auto rd_LVM_LV=sysvg/root rd_NO_DM rhgb quiet biosdevname=0
        console=tty0 console=ttyS0,38400
        initrd /initramfs-2.6.32-042stab127.2.img
title OpenVZ (2.6.32-042stab126.2)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-042stab126.2 ro
root=/dev/mapper/sysvg-root rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=us
LANG=en_US rd_LVM_LV=sysvg/swap rd_NO_MD SYSFONT=latarcyrheb-sun16
crashkernel=auto rd_LVM_LV=sysvg/root rd_NO_DM rhgb quiet biosdevname=0
        console=tty0 console=ttyS0,38400
        initrd /initramfs-2.6.32-042stab126.2.img
title OpenVZ (2.6.32-042stab117.14)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-042stab117.14 ro
root=/dev/mapper/sysvg-root rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=us
LANG=en_US rd_LVM_LV=sysvg/swap rd_NO_MD SYSFONT=latarcyrheb-sun16
crashkernel=auto rd_LVM_LV=sysvg/root rd_NO_DM rhgb quiet biosdevname=0
        console=tty0 console=ttyS0,38400
        initrd /initramfs-2.6.32-042stab117.14.img

Assuming that is sort of OK, let us try to rebuild the boot image.

Run this command:

ls -k1 /boot/vmlinuz-*stab*| sed s#/boot/vmlinuz-##|sort -V -r|head -1

That returns the version number of the latest installed kernel. It
should show this:

2.6.32-042stab127.2

Assuming that is the case, run this command:

/sbin/new-kernel-pkg --package kernel --mkinitrd --depmod --install
--make-default 2.6.32-042stab127.2

That will make 2.6.32-042stab127.2 the default kernel and it'll rebuild
the initrd image and will update the Grub configuration and MBR with the
correct information.

Once it's finished, hit CTRL+ALT+DEL to reboot. Remove the CD and let it
boot into the OS, which by then should work again.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list