LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-31-2009, 05:58 AM   #1
darklite
LQ Newbie
 
Registered: Jan 2009
Posts: 13

Rep: Reputation: 0
Debian doesn't want to boot with new kernel


Hello,

My current kernel is Linux * 2.6.24-etchnhalf.1-amd64 #1 SMP Tue Oct 14 03:11:45 UTC 2008 x86_64 GNU/Linux

Now I updated to lenny and wanted to install 2.6.26-1. I did apt-get install
linux-headers-2.6.26-1-amd64
linux-headers-2.6.26-1-common
linux-image-2.6.26-1-amd64

which resulted in an update of /boot/grub/meny.lst:
Code:
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default         0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout         5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title         Windows 95/98/NT/2000
# root          (hd0,0)
# makeactive
# chainloader   +1
#
# title         Linux
# root          (hd0,1)
# kernel        /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/md1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(single-user) single
# altoptions=(single-user mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title           Debian GNU/Linux, kernel 2.6.26-1-amd64
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.26-1-amd64 root=/dev/md1 ro
initrd          /boot/initrd.img-2.6.26-1-amd64

title           Debian GNU/Linux, kernel 2.6.26-1-amd64 (single-user mode)
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.26-1-amd64 root=/dev/md1 ro single
initrd          /boot/initrd.img-2.6.26-1-amd64

title           Debian GNU/Linux, kernel 2.6.24-etchnhalf.1-amd64
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.24-etchnhalf.1-amd64 root=/dev/md1 ro
initrd          /boot/initrd.img-2.6.24-etchnhalf.1-amd64

title           Debian GNU/Linux, kernel 2.6.24-etchnhalf.1-amd64 (single-user mode)
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.24-etchnhalf.1-amd64 root=/dev/md1 ro single
initrd          /boot/initrd.img-2.6.24-etchnhalf.1-amd64

### END DEBIAN AUTOMAGIC KERNELS LIST
I rebooted and the kernel stayed at 2.6.24. I even tried to put # in front of 2.6.24 but it kept booting 2.6.24 in stead of 2.6.26.

Could someone help me on how to boot 2.6.26 or it this a "bug"?
 
Old 01-31-2009, 06:23 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
did you select the correct kernel at boot?
what is the output of
uname -a ?
 
Old 01-31-2009, 06:34 AM   #3
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by Grub
the default entry is the entry saved with the command 'savedefault'
Add 'savedefault' to the first entry and try again. (on a new line, w/o the ' of course ) This is my default kernel entry in Grub:
Code:
title		Debian GNU/Linux, kernel 2.6.27.9
root		(hd0,0)
kernel		/vmlinuz-2.6.27.9 root=/dev/hda2 ro 
initrd		/initrd.img-2.6.27.9
savedefault

Last edited by Dutch Master; 01-31-2009 at 06:36 AM.
 
Old 01-31-2009, 07:35 AM   #4
darklite
LQ Newbie
 
Registered: Jan 2009
Posts: 13

Original Poster
Rep: Reputation: 0
It's a remote server in germany. So I can't really select the "right" one ;-)
uname -a keeps showing Linux *.be 2.6.24-etchnhalf.1-amd64 #1 SMP Tue Oct 14 03:11:45 UTC 2008 x86_64 GNU/Linux
 
Old 02-01-2009, 09:40 AM   #5
darklite
LQ Newbie
 
Registered: Jan 2009
Posts: 13

Original Poster
Rep: Reputation: 0
I tried you solution, but it still boots 2.6.24. I don't understand it anymore (lol)
 
Old 02-01-2009, 09:51 AM   #6
metrofox
Member
 
Registered: Jan 2009
Location: Palermo, Italy
Distribution: Slackware
Posts: 236

Rep: Reputation: 37
Code:
ls /boot
What does that dir contain? Maybe it could help you.
 
Old 02-02-2009, 02:49 AM   #7
darklite
LQ Newbie
 
Registered: Jan 2009
Posts: 13

Original Poster
Rep: Reputation: 0
kurt@tadpole:~$ ls /boot
boot debian.bmp initrd.img-2.6.26-1-amd64 vmlinuz-2.6.24-etchnhalf.1-amd64
config-2.6.24-etchnhalf.1-amd64 grub System.map-2.6.24-etchnhalf.1-amd64 vmlinuz-2.6.26-1-amd64
config-2.6.26-1-amd64 initrd.img-2.6.24-etchnhalf.1-amd64 System.map-2.6.26-1-amd64
kurt@tadpole:~$ ls /boot/grub/
default device.map e2fs_stage1_5 fat_stage1_5 jfs_stage1_5 menu.lst menu.lst~ minix_stage1_5 reiserfs_stage1_5 stage1 stage2 x86_64-pc xfs_stage1_5
kurt@tadpole:~$
 
Old 02-02-2009, 08:10 AM   #8
metrofox
Member
 
Registered: Jan 2009
Location: Palermo, Italy
Distribution: Slackware
Posts: 236

Rep: Reputation: 37
Files exist, I do not find the problem on the menu.lst, file is wrote good. I do not know what to do...I'm sorry Maybe(probable)someone will help you and you'll solve your problem.

Last edited by metrofox; 02-02-2009 at 09:26 AM.
 
Old 02-02-2009, 08:52 AM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
just a long shot
did you used
Code:
update-grub
 
Old 02-04-2009, 07:54 AM   #10
darklite
LQ Newbie
 
Registered: Jan 2009
Posts: 13

Original Poster
Rep: Reputation: 0
yes ;-)
 
Old 02-04-2009, 08:14 AM   #11
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
If you commented out the 2.6.24 entries and it still boots them, then you are not editing the right menu.lst.

You should not have to update grub.

What happens if you do

find /boot -iname 'menu.lst'
 
Old 02-05-2009, 01:42 AM   #12
darklite
LQ Newbie
 
Registered: Jan 2009
Posts: 13

Original Poster
Rep: Reputation: 0
well i didn't update it, debian did when i installed the packages.

tadpole:~# find /boot -iname 'menu.lst'
/boot/grub/menu.lst
 
Old 02-05-2009, 06:03 AM   #13
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
You have us all stumped. I don't see anything wrong with your menu.lst, there's only one under your boot directory, but entries which are commented-out still boot...

Sorry bud. Let us know if you ever figure this one out.
 
Old 02-05-2009, 06:11 AM   #14
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
or they are both identic?
 
Old 02-05-2009, 08:05 PM   #15
multios
Member
 
Registered: Mar 2006
Location: home
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 267

Rep: Reputation: 54
I know you did a "ls /boot" , but what does "ls -l /boot" show?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
boot from compiled kernel in debian with grub loader fightforhonor Linux - Networking 1 02-02-2006 12:50 PM
after installer install no Debian kernel to boot in GRUB st1cky_rice Debian 4 01-16-2006 03:42 PM
Kernel panic on Debian multi-boot coldsalmon Debian 5 06-06-2005 07:13 AM
boot errors with new debian kernel shorton Linux - General 1 12-23-2003 05:25 PM
Boot Debian 3.0r1 winh 2.4 kernel on alpha? Minuteman Debian 2 09-01-2003 03:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration