Archive for November 2020
How to recover broken grub2 boot on SLES15
Posted on Wed, Nov 25, 2020 at 12:28 by Hubertus A. Haniel
I am currently having issues where the boot of one of my VM's gets corrupted and I frequently have to recover it - I sometimes miss out mounting one of the required mount points so I noted them here to jolt my memory mainly but they may be helpful for others......
These are the steps I currently follow to recover the boot sector:
- - Boot the system from the DVD or PXE into rescue mode
- Mount the existing root file system under /mnt which is on /dev/rootvg/rootlv using "mount /dev/rootvg/rootlv /mnt"
- mount -t proc none /mnt/proc
- mount -t sysfs sys /mnt/sys
- mount -o bind /dev /mnt/dev
- chroot /mnt
- /sbin/mkinitrd (to recreate the initrd for the existing kernel
- /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg (To regenerate the grub config)
- /usr/sbin/grub2-install --force /dev/sda (/dev/sda is my boot disk)
Now exit the chroot jail and reboot the system and hopefully everything should be back to normal
Edited on: Wed, Nov 25, 2020 12:36Posted in HowTo (RSS), System - Linux (RSS)
Remove graphical splash screen on SLES15
Posted on Wed, Nov 25, 2020 at 12:07 by Hubertus A. Haniel
By default now modern SLES/OpenSuSE distributions now have a graphical boot screen which can be quite irritating as it hides valuable debugging information during the boot process. - Although it can be removed on a boot by hitting escape but sometimes it can be quite irritating when having to do this all the time. The simple solution to this is to disable this completely by modifying the boot options on grub. The options for this are:
splash=verbose plymouth.enable=0
In regards to the plymouth option you could also permanently remove the plymouth packages but the above option is probably less intrusive if you wish to enable this at a later stage again.
Edited on: Wed, Nov 25, 2020 12:37Posted in System - Linux (RSS)