Author |
Message |
kenyee
|
|
|
Post subject: latest kernel not showing up in grub boot menu after reboot
Posted: 09.12.2010, 20:33
|
|

Joined: 2010-09-29
Posts: 98
Status: Offline
|
|
This has me puzzled. When it boots up, it shows the grub version as 1.98 which is grub2.
I looked at /boot/grub/grub.cfg and the 3 kernels are there:
vmlinuz-2.6.35-7.slh.1-aptosid-amd64
vmlinuz-2.6.36-1.slh.2-aptosid-amd64
vmlinuz-2.6.36-1.slh.7-aptosid-amd64
but the latest .7 kernel doesn't show up in the boot menu and I keep getting rebooted into the .2 kernel.
Anyone ever see this behavior? I did the upgrade-from-grub-legacy already just to make sure the old grub has been scrubbed...the only thing remaining is menu.lst which points at much older 2.6.34 kernels that I don't have installed. |
|
|
|
|
 |
piper
|
|
Post subject: RE: latest kernel not showing up in grub boot menu after reb
Posted: 09.12.2010, 22:11
|
|
Moderator

Joined: 2010-09-11
Posts: 481
Location: cheektowaga, ny
Status: Offline
|
|
Are you missing initrd.img-2.6.36-1.slh.7-aptosid-686 ?
Code:
apt-cache search aptosid
Code:
apt-get update && apt-get install linux-image-2.6.36-1.slh.7-aptosid-686 linux-headers-2.6.36-1.slh.7-aptosid-686
adjust for 64bit
reboot ... |
|
|
|
|
 |
kenyee
|
|
Post subject: Re: RE: latest kernel not showing up in grub boot menu after
Posted: 09.12.2010, 23:50
|
|

Joined: 2010-09-29
Posts: 98
Status: Offline
|
|
piper wrote:
Are you missing initrd.img-2.6.36-1.slh.7-aptosid-686 ?
initrd appears to be there:
Code:
grub
initrd.img-2.6.35-7.slh.1-aptosid-amd64
initrd.img-2.6.36-1.slh.2-aptosid-amd64
initrd.img-2.6.36-1.slh.7-aptosid-amd64
the latest kernel appears to be installed:
Code:
kenyee@JumpGate:~$ sudo apt-cache search aptosid
[sudo] password for kenyee:
cliinstaller - Cli installer for aptosid
install-gui - aptosid install-gui for fll-installer
fll-installer-common - aptosid common scripts used by the installer frontends
aptosid-art-xsplash-apate - Xfce splash theme for the aptosid 2010-03 release
aptosid-art-kdm-apate - KDM theme for the aptosid 2010-03 release
aptosid-art-kde-apate - KDE theme for the aptosid 2010-03 release
aptosid-art-ksplash-apate - KDE ksplash theme for the aptosid 2010-03 release
aptosid-art-xfce-apate - Xfce theme for the aptosid 2010-03 release
aptosid-art-gdm-apate - GDM theme for aptosid 2010-03 release
aptosid-art-wallpaper-apate - aptosid wallpaper for the 2010-03 release
apt-conf-sidux - aptosid defaults for apt
apt-conf-aptosid - aptosid defaults for apt
gfxboot-theme-aptosid - aptosid meta theme for gfxboot-compliant boot loaders
aptosid-art-wallpaper - virtual package for wallpapers in aptosid
aptosid-art-xfce - virtual package for Xfce themes in aptosid
aptosid-art-kde - virtual package for KDE themes in aptosid
aptosid-art-kde-keres - KDE theme for the aptosid 2010-02 release
aptosid-art-ksplash-keres - KDE ksplash theme for the aptosid 2010-02 release
aptosid-art-xfce-keres - Xfce theme for the aptosid 2010-02 release
aptosid-art-gdm-keres - GDM theme for aptosid 2010-02 release
aptosid-art-kdm-keres - KDM theme for the aptosid 2010-02 release
aptosid-art-xsplash-keres - Xfce splash theme for the aptosid 2010-02 release
aptosid-art-wallpaper-keres - aptosid wallpaper for the 2010-02 release
sidux-scripts - miscellaneous scripts for aptosid
aptosid-scripts - miscellaneous scripts for aptosid
aptosid-manual-pt-br - the official Brazilian Portuguese aptosid manual
aptosid-manual-ro - the official Romanian aptosid manual
aptosid-manual-el - the official Greek aptosid manual
aptosid-manual - the official aptosid manual - all languages
aptosid-manual-nl - the official Dutch aptosid manual
aptosid-manual-ja - the official Japanese aptosid manual
aptosid-manual-fr - the official French aptosid manual
aptosid-manual-de - the official German aptosid manual
aptosid-manual-en - the official English aptosid manual
aptosid-manual-common - the official aptosid manual - common files
aptosid-manual-ru - the official Russian aptosid manual
aptosid-manual-it - the official Italian aptosid manual
aptosid-manual-es - the official Spanish aptosid manual
aptosid-manual-reader - aptosid manual reader
sidux-manual-ja - transitional dummy package
sidux-manual-en - transitional dummy package
sidux-manual-es - transitional dummy package
sidux-manual-ru - transitional dummy package
sidux-manual-ro - transitional dummy package
sidux-manual-de - transitional dummy package
sidux-manual-fr - transitional dummy package
sidux-manual-pt-br - transitional dummy package
sidux-manual-el - transitional dummy package
sidux-manual-it - transitional dummy package
sidux-manual-nl - transitional dummy package
linux-image-2.6-sidux-amd64 - transitional dummy package
linux-headers-2.6-sidux-686 - transitional dummy package
linux-headers-2.6-sidux-amd64 - transitional dummy package
linux-image-2.6-sidux-686 - transitional dummy package
aptosid-releasenotes - releases notes for aptosid
sidux-settings-xfce - provide default Xfce settings for aptosid
aptosid-settings-xfce - provide default Xfce settings for aptosid
sidux-irc - Start a suitable IRC client to enter #aptosid
aptosid-irc - Start a suitable IRC client to enter #aptosid
aptosid-archive-keyring - GnuPG archive keys oif the aptosid archive
sidux-settings-kde - provide default KDE settings for aptosid
aptosid-settings-kde - provide default KDE settings for aptosid
gfxboot-themes-aptosid-2010-02-keres - tool to test and create graphical boot logos (aptosid ??????)
gfxboot-themes-aptosid-2010-03-apate - tool to test and create graphical boot logos (aptosid ??????)
gfxboot-themes-aptosid-2010-03-apate-core - graphical boot logos for aptosid ??????
gfxboot-themes-aptosid-2010-02-keres-core - graphical boot logos for aptosid ??????
linux-image-2.6.36-1.slh.7-aptosid-amd64 - Linux 2.6.36 for 64-bit PCs
linux-image-2.6-aptosid-amd64 - Linux image for aptosid on 64-bit PCs
linux-headers-2.6.36-1.slh.7-aptosid-amd64 - Header files for Linux 2.6.36-1.slh.7-aptosid-amd64
linux-headers-2.6-aptosid-amd64 - Linux image for aptosid on 64-bit PCs
udev-config-sidux - custom udev configurations for udev
udev-config-aptosid - custom udev configurations for udev
fll-installer - backend scripts to install aptosid to hdd
fll-iso2usb - backend scripts to install aptosid to an usb hdd
qt-fll-iso2usb-gui - Qt front-end for fll-iso2usb
linux-image-2.6.36-1.slh.2-aptosid-amd64 - Linux 2.6.36 for 64-bit PCs
sidux-keyrings - metapackage to grab all useful GnuPG keys for aptosid
sidux-archive-keyring - GnuPG archive keys of the aptosid archive
linux-headers-2.6.35-7.slh.1-aptosid-amd64 - Header files for Linux 2.6.35-7.slh.1-aptosid-amd64
linux-image-2.6.35-7.slh.1-aptosid-amd64 - Linux 2.6.35 for 64-bit PCs
linux-headers-2.6.36-1.slh.2-aptosid-amd64 - Header files for Linux 2.6.36-1.slh.2-aptosid-amd64
And here's the grub.cfg which appears to have a link to the latest kernel:
Code:
kenyee@JumpGate:/boot/grub$ cat grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-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
}
insmod raid
insmod mdraid
insmod lvm
insmod part_msdos
insmod part_msdos
insmod reiserfs
set root='(vg0-root)'
search --no-floppy --fs-uuid --set 805ca177-b56e-497b-849d-39b2d37505ec
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.36-1.slh.7-aptosid-amd64' --class debian --class gnu-linux --class gnu --class os {
insmod raid
insmod mdraid
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 23a57750-a270-4525-8408-05bb8edfc125
echo 'Loading Linux 2.6.36-1.slh.7-aptosid-amd64 ...'
linux /vmlinuz-2.6.36-1.slh.7-aptosid-amd64 root=/dev/mapper/vg0-root ro ramdisk_size=100000 lang=us apm=power-off nomce quiet quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.36-1.slh.7-aptosid-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.36-1.slh.7-aptosid-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod raid
insmod mdraid
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 23a57750-a270-4525-8408-05bb8edfc125
echo 'Loading Linux 2.6.36-1.slh.7-aptosid-amd64 ...'
linux /vmlinuz-2.6.36-1.slh.7-aptosid-amd64 root=/dev/mapper/vg0-root ro single ramdisk_size=100000 lang=us apm=power-off nomce quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.36-1.slh.7-aptosid-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.36-1.slh.2-aptosid-amd64' --class debian --class gnu-linux --class gnu --class os {
insmod raid
insmod mdraid
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 23a57750-a270-4525-8408-05bb8edfc125
echo 'Loading Linux 2.6.36-1.slh.2-aptosid-amd64 ...'
linux /vmlinuz-2.6.36-1.slh.2-aptosid-amd64 root=/dev/mapper/vg0-root ro ramdisk_size=100000 lang=us apm=power-off nomce quiet quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.36-1.slh.2-aptosid-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.36-1.slh.2-aptosid-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod raid
insmod mdraid
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 23a57750-a270-4525-8408-05bb8edfc125
echo 'Loading Linux 2.6.36-1.slh.2-aptosid-amd64 ...'
linux /vmlinuz-2.6.36-1.slh.2-aptosid-amd64 root=/dev/mapper/vg0-root ro single ramdisk_size=100000 lang=us apm=power-off nomce quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.36-1.slh.2-aptosid-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.35-7.slh.1-aptosid-amd64' --class debian --class gnu-linux --class gnu --class os {
insmod raid
insmod mdraid
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 23a57750-a270-4525-8408-05bb8edfc125
echo 'Loading Linux 2.6.35-7.slh.1-aptosid-amd64 ...'
linux /vmlinuz-2.6.35-7.slh.1-aptosid-amd64 root=/dev/mapper/vg0-root ro ramdisk_size=100000 lang=us apm=power-off nomce quiet quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.35-7.slh.1-aptosid-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.35-7.slh.1-aptosid-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod raid
insmod mdraid
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 23a57750-a270-4525-8408-05bb8edfc125
echo 'Loading Linux 2.6.35-7.slh.1-aptosid-amd64 ...'
linux /vmlinuz-2.6.35-7.slh.1-aptosid-amd64 root=/dev/mapper/vg0-root ro single ramdisk_size=100000 lang=us apm=power-off nomce quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.35-7.slh.1-aptosid-amd64
}
### 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 ###
menuentry "Microsoft Windows XP Professional (on /dev/sdb1)" {
insmod part_msdos
insmod fat
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set bcef-1a2e
drivemap -s (hd0) ${root}
chainloader +1
}
### 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 ###
And when I ran upgrade-from-legacy-grub, it listed all 3 kernels. |
|
|
|
|
 |
kenyee
|
|
Post subject: RE: Re: RE: latest kernel not showing up in grub boot menu a
Posted: 09.12.2010, 23:51
|
|

Joined: 2010-09-29
Posts: 98
Status: Offline
|
|
Is there any way to get grub to show where it's reading the grub.cfg from? |
|
|
|
|
 |
piper
|
|
Post subject: RE: Re: RE: latest kernel not showing up in grub boot menu a
Posted: 10.12.2010, 00:17
|
|
Moderator

Joined: 2010-09-11
Posts: 481
Location: cheektowaga, ny
Status: Offline
|
|
I am thinking it has to with raid or your setup
I havent used raid in years, no need to
also this
Code:
search --no-floppy --fs-uuid --set 805ca177-b56e-497b-849d-39b2d37505ec
and this
Code:
search --no-floppy --fs-uuid --set 23a57750-a270-4525-8408-05bb8edfc125
might be a problem, I have to leave for work at the moment and really just took a quick look, i could be dead wrong and don't have the time at the moment |
_________________ debian sid | apt-get into it
|
|
|
|
 |
kenyee
|
|
Post subject:
Posted: 10.12.2010, 00:24
|
|

Joined: 2010-09-29
Posts: 98
Status: Offline
|
|
That's what I thought initially as well, but when I ran upgrade-from-legacy-grub, it asked me where I wanted to write grub and I chose the drives in the raid array (/dev/sda, /dev/sdb) as well as /dev/md0 (which is the RAID1 partition for the raid drive) but not /dev/vg0 (which is the LVM partition inside the RAID container). I even wrote grub to the MBR multiple times and verified that 1.98 (grub2) was being loaded.
It's just w/ the latest kernel update (.7) that I've had this issue. It upgraded the grub.cfg properly w/ .2 and for a while before that.
I've run RAID1 since having my drives die on me every few years. I figure if one drive goes, at least I have a shot at replacing it before the other one goes so I don't lose any data  |
|
|
|
|
 |
browe
|
|
Post subject:
Posted: 10.12.2010, 19:43
|
|

Joined: 2010-09-12
Posts: 157
Location: Canada
Status: Offline
|
|
Run update-grub, you should see something like this:
Code:
root@siduxbox64a:/boot/grub# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.36-1.slh.7-aptosid-amd64
Found initrd image: /boot/initrd.img-2.6.36-1.slh.7-aptosid-amd64
Found linux image: /boot/vmlinuz-2.6.36-0.slh.8-aptosid-amd64
Found initrd image: /boot/initrd.img-2.6.36-0.slh.8-aptosid-amd64
Found linux image: /boot/vmlinuz-2.6.35-7.slh.1-aptosid-amd64
Found initrd image: /boot/initrd.img-2.6.35-7.slh.1-aptosid-amd64
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
No volume groups found
done
then check timestamp on the cfg file... it should be located in /boot/grub
Code:
root@siduxbox64a:/boot/grub# ls -l /boot/grub/grub.cfg
-r--r--r-- 1 root root 6163 Dec 10 14:29 /boot/grub/grub.cfg
and the contents of grub.cfg for menu options:
Code:
root@siduxbox64a:/boot/grub# cat grub.cfg|grep menuentry|grep aptosid
menuentry 'Debian GNU/Linux, with Linux 2.6.36-1.slh.7-aptosid-amd64' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.36-1.slh.7-aptosid-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.36-0.slh.8-aptosid-amd64' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.36-0.slh.8-aptosid-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.35-7.slh.1-aptosid-amd64' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.35-7.slh.1-aptosid-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
You should only require grub2 in the MBR, but having it multiple places shouldn't be a problem. |
|
|
|
|
 |
kenyee
|
|
Post subject:
Posted: 12.12.2010, 13:02
|
|

Joined: 2010-09-29
Posts: 98
Status: Offline
|
|
All looks right...still seems like it's readying another grub.cfg:
Code:
kenyee@JumpGate:~$ date
Sun Dec 12 07:51:45 EST 2010
kenyee@JumpGate:~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.36-1.slh.7-aptosid-amd64
Found initrd image: /boot/initrd.img-2.6.36-1.slh.7-aptosid-amd64
Found linux image: /boot/vmlinuz-2.6.36-1.slh.2-aptosid-amd64
Found initrd image: /boot/initrd.img-2.6.36-1.slh.2-aptosid-amd64
Found linux image: /boot/vmlinuz-2.6.35-7.slh.1-aptosid-amd64
Found initrd image: /boot/initrd.img-2.6.35-7.slh.1-aptosid-amd64
Found Microsoft Windows XP Professional on /dev/sdc1
done
kenyee@JumpGate:~$ ls -l /boot/grub/grub.cfg
-r--r--r-- 1 root root 5466 Dec 12 07:51 /boot/grub/grub.cfg
kenyee@JumpGate:~$ cat /boot/grub/grub.cfg | grep menuentry | grep aptosid
menuentry 'Debian GNU/Linux, with Linux 2.6.36-1.slh.7-aptosid-amd64' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.36-1.slh.7-aptosid-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.36-1.slh.2-aptosid-amd64' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.36-1.slh.2-aptosid-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.35-7.slh.1-aptosid-amd64' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.35-7.slh.1-aptosid-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
Dohh...one of my raid1 drives dropped out:
Code:
kenyee@JumpGate:~$ cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb7[1]
348417600 blocks [2/1] [_U]
md0 : active raid1 sdb6[1]
192640 blocks [2/1] [_U]
It's booting off the raid drive that dropped out which didn't get updated by grub  |
|
|
|
|
 |
piper
|
|
Post subject:
Posted: 12.12.2010, 22:12
|
|
Moderator

Joined: 2010-09-11
Posts: 481
Location: cheektowaga, ny
Status: Offline
|
|
Marking this as solved |
_________________ debian sid | apt-get into it
|
|
|
|
 |
|