I have been playing around with a lot of Linux distros in the last few months, and I was updating my Fedora 16 kernel this morning and it crashed! oho!

kernel-3.2.9-2.fc16.i686

Wilgeman helped me out with this issue and what we did is to switch the grub list order because the needed the old kernel 3.2.9.1 back.

So this is the procedure;

Open the terminal (Applications->System Tools->Terminal) and open the GRUB 2 file:

sudo vi /etc/grub2.cfg

or if you prefer the GUI you can use gedit too:

sudo gedit /etc/grub2.cfg

the file should look like this:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default=”0″
if [ "${prev_saved_entry}" ]; then
set saved_entry=”${prev_saved_entry}”
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry=”${chosen}”
save_env saved_entry
fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###

menuentry ‘Fedora (3.2.9-1.fc16.i686)’ –class fedora –class gnu-linux –class gnu –class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root=’(hd0,gpt2)’
search –no-floppy –fs-uuid –set=root 9e0391e3-7f02-427d-bcc9-6fac7971590f
echo ‘Loading Fedora (3.2.9-1.fc16.i686)’
linux /vmlinuz-3.2.9-1.fc16.i686 root=/dev/mapper/vg_fedora16-lv_root ro rd.md=0 rd.dm=0 KEYTABLE=us quiet rd.lvm.lv=vg_fedora16/lv_root rhgb rd.lvm.lv=vg_fedora16/lv_swap rd.luks=0 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8
echo ‘Loading initial ramdisk …’
initrd /initramfs-3.2.9-1.fc16.i686.img
}

menuentry ‘Fedora (3.2.9-2.fc16.i686)’ –class fedora –class gnu-linux –class gnu –class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root=’(hd0,gpt2)’
search –no-floppy –fs-uuid –set=root 9e0391e3-7f02-427d-bcc9-6fac7971590f
echo ‘Loading Fedora (3.2.9-1.fc16.i686)’
linux /vmlinuz-3.2.9-2.fc16.i686 root=/dev/mapper/vg_fedora16-lv_root ro rd.md=0 rd.dm=0 KEYTABLE=us quiet rd.lvm.lv=vg_fedora16/lv_root rhgb rd.lvm.lv=vg_fedora16/lv_swap rd.luks=0 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8
echo ‘Loading initial ramdisk …’
}

menuentry ‘Fedora Linux, with Linux 3.1.0-7.fc16.i686′ –class fedora –class gnu-linux –class gnu –class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root=’(hd0,gpt2)’
search –no-floppy –fs-uuid –set=root 9e0391e3-7f02-427d-bcc9-6fac7971590f
echo ‘Loading Linux 3.1.0-7.fc16.i686 …’
linux /vmlinuz-3.1.0-7.fc16.i686 root=/dev/mapper/vg_fedora16-lv_root ro rd.md=0 rd.dm=0 KEYTABLE=us quiet rd.lvm.lv=vg_fedora16/lv_root rhgb rd.lvm.lv=vg_fedora16/lv_swap rd.luks=0 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8
echo ‘Loading initial ramdisk …’
initrd /initramfs-3.1.0-7.fc16.i686.img
}
menuentry ‘Fedora Linux, with Linux 3.1.0-7.fc16.i686 (recovery mode)’ –class fedora –class gnu-linux –class gnu –class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root=’(hd0,gpt2)’
search –no-floppy –fs-uuid –set=root 9e0391e3-7f02-427d-bcc9-6fac7971590f
echo ‘Loading Linux 3.1.0-7.fc16.i686 …’
linux /vmlinuz-3.1.0-7.fc16.i686 root=/dev/mapper/vg_fedora16-lv_root ro single rd.md=0 rd.dm=0 KEYTABLE=us quiet rd.lvm.lv=vg_fedora16/lv_root rhgb rd.lvm.lv=vg_fedora16/lv_swap rd.luks=0 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8
echo ‘Loading initial ramdisk …’
initrd /initramfs-3.1.0-7.fc16.i686.img
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the ‘exec tail’ line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###

 

So from the above file I get the last kernel update (3.2.9.2) function:

menuentry ‘Fedora (3.2.9-2.fc16.i686)’ –class fedora –class gnu-linux –class gnu –class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root=’(hd0,gpt2)’
search –no-floppy –fs-uuid –set=root 9e0391e3-7f02-427d-bcc9-6fac7971590f
echo ‘Loading Fedora (3.2.9-1.fc16.i686)’
linux /vmlinuz-3.2.9-2.fc16.i686 root=/dev/mapper/vg_fedora16-lv_root ro rd.md=0 rd.dm=0 KEYTABLE=us quiet rd.lvm.lv=vg_fedora16/lv_root rhgb rd.lvm.lv=vg_fedora16/lv_swap rd.luks=0 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8
echo ‘Loading initial ramdisk …’
}

The next step is to move it down in the file to the next ‘menu entry’ function because that’s how we are gonna switch the boot options:

menuentry ‘Fedora (3.2.9-2.fc16.i686)’ –class fedora –class gnu-linux –class gnu –class os {

 

save it, and the next time you reboot your system it will show you the boot options like you want.

Do you remember how easy was to change the boot options on the last GRUB version? you just had to change the boot number and voila! ok, now you gotta move the ‘menu entry’ functions.

Hope it helps you!

Enjoy it!

 

 

Tagged with →  
Share →

Leave a Reply

Your email address will not be published. Required fields are marked *


six − 3 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by sweet Captcha