Mailinglist Archive: opensuse (1318 mails)

< Previous Next >
Re: [opensuse] Safer Kernel Updates
  • From: Teruel de Campo MD <chusty@xxxxxxxxxxxxx>
  • Date: Fri, 31 Oct 2008 20:38:59 -0600
  • Message-id: <1225507139.4891.12.camel@xxxxxxxxxxxxxxx>
On Fri, 2008-10-31 at 22:50 +0100, Clayton wrote:
it would
be nice to have at least the last known working kernel kept around
(mental note to go change that config file).

C.

Clayton,

It is easy to keep a backup kernel. I do it since the initial
installation.

1. Go to the boot directory****************************

#cd /boot

2. Find out the name of the running kernel*************

#uname -r

copy the number and pasted over the number in the example below.


3. make backup copy of your kernel and System.map******

#cp vmlinuz-2.6.22.13-0.3-default vmlinuz-2.6.22.13-0.3-bak
#cp System.map-2.6.22.13-0.3-default System.map-2.6.22.13-0.3-bak
#cp -r /lib/modules/2.6.22.13-0.3-default /lib/modules/2.6.22.13-0.3-bak

4. create initrd **************************************

#mkinitrd

5. Check if new initrd was created:*********************

#ls
and look for initrd-2.6.22.13-0.3-bak

6. Backup GRUB menu*************************************

#cp -r /boot/grub/menu.lst /boot/grub/menu.lst_bak

7. edit grub menu****************************************

# kwrite grub/menu.lst

8. Add new entry at the end of the file. You can copy the original entry
for SUSE LINUX 10.2 and do some changes;

title BACKUP openSUSE 10.3 - 2.6.22.13-0.3
root (hd0,0)
kernel /vmlinuz-2.6.22.13-0.3-bak root=/dev/sda6 vga=0x346
resume=/dev/sda5 splash=silent showopts
initrd /initrd-2.6.22.13-0.3-defaultbak

9. Test it***********************************************


-=terry(Denver)=-

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups