Replacing broken kernel, revert ubuntu upgrade
From MEPIS Documentation Wiki
!!! Warning! The info contained in this article pertains to older versions of MEPIS !!!
Occassionaly a new kernel image may appear in the Ubuntu repository that will replace your existing Mepis kernel on applying upgrades. For many computers this may break the system and the Mepis kernel has different options applied than the Ubuntu one. These are some steps you can take to get your system working again without needing to do a full reinstall.
Example of kernel revert
This is a specific scenario: the computer has vmlinuz-2.6.15-26-386 2.6.15-26.46.1mepis1 installed and Ubuntu has a version 2.6.15-26.47 in the dapper-security repository (enabled by default on a Mepis install). Accepting this upgrade (which again is default if you choose "Mark all upgrades" in Synaptic, will install this new kernel. In this scenario this breaks the system, such that it cannot boot anymore (gets to grub menu, but beyond that only a blank screen).
To revert to a safe kernel image from the install CD/DVD:
- Boot to the Mepis live CD
- Mount your harddrive (in this case /mnt/sda1)
- Copy the contents from /boot to /mnt/sda1/boot (copy only the files, don't copy subfolders, otherwise you might break your grub setup)
- Remove the CD and reboot the machine
To get your packages back in a stable state
- load synaptic
- find linux-image-2.6.15-26-386
- Choose "Package|Force Version" and choose the original mepis version
- Choose "Package|Lock Version" to prevent accidental upgrade again
- Choose apply