LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-22-2015, 10:26 PM   #1
jobart08
Member
 
Registered: Sep 2014
Posts: 68

Rep: Reputation: Disabled
New kernel does not appear in list


We recently did an upgrade from Lenny to Wheezy. When I do a cat /etc/debian_version, it shows 7.8 (wheezy). But the kernel that is running is still the old kernel Linux bdouclg08 2.6.26-1-vserver-686-bigmem #1 SMP Sat Jan 10 22:10:39 UTC 2009 i686 GNU/Linux.

Checking /boot/grub/grub.cfg, we see a new kernel in the list, but it doesnt show in the menu during bootup.

How can I fix this? Thanks!

Code:
bdouclg08:~# less /boot/grub/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 {
true
}

insmod part_msdos
insmod ext2
set root='(hd2,msdos2)'
search --no-floppy --fs-uuid --set=root e6b6d872-9ecb-4d52-a92b-735f70a59ead
if loadfont /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 3.2.0-4-686-pae' --class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
### 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
#
# 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 {
true
}

insmod part_msdos
insmod ext2
set root='(hd2,msdos2)'
search --no-floppy --fs-uuid --set=root e6b6d872-9ecb-4d52-a92b-735f70a59ead
if loadfont /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 3.2.0-4-686-pae' --class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos1)'
        search --no-floppy --fs-uuid --set=root 75742e30-c9b9-4dc8-8c58-9f3e64037baf
        echo    'Loading Linux 3.2.0-4-686-pae ...'
        linux   /boot/vmlinuz-3.2.0-4-686-pae root=UUID=75742e30-c9b9-4dc8-8c58-9f3e64037baf ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.2.0-4-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos1)'
        search --no-floppy --fs-uuid --set=root 75742e30-c9b9-4dc8-8c58-9f3e64037baf
        echo    'Loading Linux 3.2.0-4-686-pae ...'
        linux   /boot/vmlinuz-3.2.0-4-686-pae root=UUID=75742e30-c9b9-4dc8-8c58-9f3e64037baf ro single 
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.2.0-4-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-486' --class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos1)'
        search --no-floppy --fs-uuid --set=root 75742e30-c9b9-4dc8-8c58-9f3e64037baf
        echo    'Loading Linux 3.2.0-4-486 ...'
        linux   /boot/vmlinuz-3.2.0-4-486 root=UUID=75742e30-c9b9-4dc8-8c58-9f3e64037baf ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.2.0-4-486
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-486 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos1)'
        search --no-floppy --fs-uuid --set=root 75742e30-c9b9-4dc8-8c58-9f3e64037baf
        echo    'Loading Linux 3.2.0-4-486 ...'
        linux   /boot/vmlinuz-3.2.0-4-486 root=UUID=75742e30-c9b9-4dc8-8c58-9f3e64037baf ro single 
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.2.0-4-486
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-vserver-686-bigmem' --class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos1)'
        search --no-floppy --fs-uuid --set=root 75742e30-c9b9-4dc8-8c58-9f3e64037baf
        echo    'Loading Linux 2.6.32-5-vserver-686-bigmem ...'
        linux   /boot/vmlinuz-2.6.32-5-vserver-686-bigmem root=UUID=75742e30-c9b9-4dc8-8c58-9f3e64037baf ro  quiet
#
# 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 {
true
}

insmod part_msdos
insmod ext2
set root='(hd2,msdos2)'
search --no-floppy --fs-uuid --set=root e6b6d872-9ecb-4d52-a92b-735f70a59ead
if loadfont /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 ###
:

Last edited by jobart08; 06-22-2015 at 10:27 PM.
 
Old 06-23-2015, 03:14 AM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Do you have a separate /boot partition?
 
Old 06-23-2015, 03:33 AM   #3
jobart08
Member
 
Registered: Sep 2014
Posts: 68

Original Poster
Rep: Reputation: Disabled
nope

bdouclg08:~# df -h
Filesystem Size Used Avail Use Mounted on
rootfs 28G 2.6G 24G 10% /
udev 10M 64K 10M 1% /dev
/dev/cciss/c0d0p1 28G 2.6G 24G 10% /
tmpfs 3.2G 60K 3.2G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 11G 0 11G 0% /run/shm
/dev/cciss/c0d1p6 92G 29G 59G 34% /backup
/dev/cciss/c0d1p5 92G 5.2G 82G 6% /home
/dev/cciss/c0d0p5 6.3G 143M 5.8G 3% /tmp
/dev/cciss/c0d0p2 28G 2.2G 24G 9% /usr
/dev/cciss/c0d0p3 56G 5.2G 48G 10% /var
/dev/cciss/c0d1p7 490G 229G 237G 50% /var/lib/pgsql
 
Old 06-23-2015, 03:28 PM   #4
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Please post the output of:
Code:
# parted -l
# lsblk -f
 
Old 06-23-2015, 08:54 PM   #5
jobart08
Member
 
Registered: Sep 2014
Posts: 68

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Head_on_a_Stick View Post
Please post the output of:
Code:
# parted -l
# lsblk -f
bdouclg08:~# parted -l
bash: parted: command not found
bdouclg08:~# lsblk -f
lsblk: ram0: failed to initialize sysfs handler
lsblk: ram1: failed to initialize sysfs handler
lsblk: ram2: failed to initialize sysfs handler
lsblk: ram3: failed to initialize sysfs handler
lsblk: ram4: failed to initialize sysfs handler
lsblk: ram5: failed to initialize sysfs handler
lsblk: ram6: failed to initialize sysfs handler
lsblk: ram7: failed to initialize sysfs handler
lsblk: ram8: failed to initialize sysfs handler
lsblk: ram9: failed to initialize sysfs handler
lsblk: ram10: failed to initialize sysfs handler
lsblk: ram11: failed to initialize sysfs handler
lsblk: ram12: failed to initialize sysfs handler
lsblk: ram13: failed to initialize sysfs handler
lsblk: ram14: failed to initialize sysfs handler
lsblk: ram15: failed to initialize sysfs handler
lsblk: vroot0: failed to initialize sysfs handler
lsblk: vroot1: failed to initialize sysfs handler
lsblk: vroot2: failed to initialize sysfs handler
lsblk: vroot3: failed to initialize sysfs handler
lsblk: vroot4: failed to initialize sysfs handler
lsblk: vroot5: failed to initialize sysfs handler
lsblk: vroot6: failed to initialize sysfs handler
lsblk: vroot7: failed to initialize sysfs handler
lsblk: cciss!c0d0: failed to initialize sysfs handler
lsblk: cciss!c0d1: failed to initialize sysfs handler
lsblk: hda: failed to initialize sysfs handler
 
Old 06-24-2015, 04:20 PM   #6
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Hmmm... That's not good.

Did you try installing parted?

Quote:
Originally Posted by jobart08 View Post
We recently did an upgrade from Lenny to Wheezy.
How exactly did you go about this?
 
Old 06-24-2015, 04:43 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,822

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
although you CAN use "dup" to move from Lenny to Wheezy

it might NOT be a great idea to do so

way too many things can go VERY wrong or just SLIGHTLY wrong

so how did you upgrade to a new major version
 
Old 06-24-2015, 08:11 PM   #8
jobart08
Member
 
Registered: Sep 2014
Posts: 68

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
although you CAN use "dup" to move from Lenny to Wheezy

it might NOT be a great idea to do so

way too many things can go VERY wrong or just SLIGHTLY wrong

so how did you upgrade to a new major version

change source lists

apt-get update

apt-get upgrade

apt-get dist-upgrade

our issue started with apache not starting after the upgrade. then we saw that the kernel was not updated, only the version. we've tried everything from reinstalling apache to installing a new kernel. but the new kernel does not show in the menu during boot up. apache is asking for a lot of dependencies and we tried to install them one by one, still it wont start.

Last edited by jobart08; 06-24-2015 at 08:13 PM.
 
Old 06-25-2015, 02:43 AM   #9
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Post your sources.list and the output of:
Code:
apt-cache policy
 
Old 06-25-2015, 02:50 AM   #10
jobart08
Member
 
Registered: Sep 2014
Posts: 68

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Head_on_a_Stick View Post
Post your sources.list and the output of:
Code:
apt-cache policy
bdouclg08:~# cat /etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux 4.0 r3 _Etch_ - Official i386 CD Binary-1 20080217-11:50]/ etch contrib main

#deb cdrom:[Debian GNU/Linux 4.0 r3 _Etch_ - Official i386 CD Binary-1 20080217-11:50]/ etch contrib main

# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/ etch/updates main contrib
# Line commented out by installer because it failed to verify:
#deb-src http://security.debian.org/ etch/updates main contrib
#deb http://ftp.us.debian.org/debian lenny main contrib non-free
#deb http://archive.debian.org/debian lenny main contrib non-free

#deb http://archive.debian.org/debian/ etch contrib main non-free

#deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free
#deb http://ftp.se.debian.org/debian/ wheezy main contrib non-free
#deb-src http://ftp.se.debian.org/debian/ wheezy main contrib non-free
#deb http://ftp.us.debian.org/debian squeeze-lts main non-free contrib

deb http://fs01.software.bdo.com.ph/debian wheezy main contrib non-free
deb http://fs01.software.bdo.com.ph/debian wheezy-updates main contrib non-free
deb http://fs01.software.bdo.com.ph/debian wheezy-backports main contrib non-free
#deb http://ftp.us.debian.org/debian wheezy main contrib non-free
#deb http://ftp.us.debian.org/debian wheezy main contrib non-free
#deb http://ftp.de.debian.org/debian wheezy main non-free
#deb http://ftp.de.debian.org/debian wheezy main

#deb http://security.debian.org/ wheezy/updates main
#deb-src http://security.debian.org/ wheezy/updates main
#deb http://ftp.us.debian.org/debian wheezy main
#deb-src http://ftp.us.debian.org/debian wheezy main
#deb-src http://ftp.debian.org/debian stable main contrib non-free

#deb http://security.debian.org/debian-security wheezy/updates main

#deb http://ftp.us.debian.org/debian stable main contrib non-free
#deb-src http://ftp.us.debian.org/debian stable main contrib non-free

#deb http://security.debian.org/ wheezy/updates main
#deb-src http://security.debian.org/ wheezy/updates main
#deb http://ftp.us.debian.org/debian wheezy main




bdouclg08:~# apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
100 http://fs01.software.bdo.com.ph/debian/ wheezy-backports/non-free i386 Packages
release o=Debian Backports,a=wheezy-backports,n=wheezy-backports,l=Debian Backports,c=non-free
origin fs01.software.bdo.com.ph
100 http://fs01.software.bdo.com.ph/debian/ wheezy-backports/contrib i386 Packages
release o=Debian Backports,a=wheezy-backports,n=wheezy-backports,l=Debian Backports,c=contrib
origin fs01.software.bdo.com.ph
100 http://fs01.software.bdo.com.ph/debian/ wheezy-backports/main i386 Packages
release o=Debian Backports,a=wheezy-backports,n=wheezy-backports,l=Debian Backports,c=main
origin fs01.software.bdo.com.ph
500 http://fs01.software.bdo.com.ph/debian/ wheezy-updates/non-free i386 Packages
release o=Debian,a=stable-updates,n=wheezy-updates,l=Debian,c=non-free
origin fs01.software.bdo.com.ph
500 http://fs01.software.bdo.com.ph/debian/ wheezy-updates/contrib i386 Packages
release o=Debian,a=stable-updates,n=wheezy-updates,l=Debian,c=contrib
origin fs01.software.bdo.com.ph
500 http://fs01.software.bdo.com.ph/debian/ wheezy-updates/main i386 Packages
release o=Debian,a=stable-updates,n=wheezy-updates,l=Debian,c=main
origin fs01.software.bdo.com.ph
500 http://fs01.software.bdo.com.ph/debian/ wheezy/non-free i386 Packages
release v=7.6,o=Debian,n=wheezy,l=Debian,c=non-free
origin fs01.software.bdo.com.ph
500 http://fs01.software.bdo.com.ph/debian/ wheezy/contrib i386 Packages
release v=7.6,o=Debian,n=wheezy,l=Debian,c=contrib
origin fs01.software.bdo.com.ph
500 http://fs01.software.bdo.com.ph/debian/ wheezy/main i386 Packages
release v=7.6,o=Debian,n=wheezy,l=Debian,c=main
origin fs01.software.bdo.com.ph
Pinned packages:
 
Old 06-25-2015, 03:09 PM   #11
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Why is your entire sources.list commented out?

When did you last update the APT database?

Why do you have (commented-out) repositories for etch, lenny, squeeze, wheezy & jessie (Stable)?
 
Old 06-26-2015, 09:48 AM   #12
jobart08
Member
 
Registered: Sep 2014
Posts: 68

Original Poster
Rep: Reputation: Disabled
Its nit entirely commented out. Its an upgrade from lenny to wheezy. In our efforts to fix it, we tried different steps we saw online and some of them invokved adding/using other repos.
 
Old 06-26-2015, 03:33 PM   #13
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Quote:
Originally Posted by jobart08 View Post
Its nit entirely commented out.
Oh yes, sorry I should have put my glasses on.

Please detail which steps you have taken.
 
Old 06-30-2015, 03:02 AM   #14
jobart08
Member
 
Registered: Sep 2014
Posts: 68

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Head_on_a_Stick View Post
Oh yes, sorry I should have put my glasses on.

Please detail which steps you have taken.
THanks for taking the time to answer my questions. I really appreciate it. We've done so many things to fix this that I'm having difficulty recalling. Basically, we tried installing the new kernel, we tried reinstalling apache2, we installed each individual dependency that it was asking for, we tried installing apache2 via apt-get and via binaries, we tried copying the old /etc/apache2 directory from our backups, etc. Still apache2 wont start. Oh, also, the iptables wont run too. It's saying that we might need to install iptables or upgrade the kernel.

We cant really do much reboots since there is a running production database on this box.

Thanks again for your inputs.
 
Old 06-30-2015, 03:26 AM   #15
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You're missing security updates.
 
  


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
[discussion]Could kernel build config get easier? anyone on the kernel mailing list frog-o Linux - General 1 07-29-2012 11:04 AM
'E:Malformed line 54 in source list /etc/apt/sources.list (dist parse), E:The list of vsssuccess@gmail.com Linux - Desktop 1 11-17-2010 09:17 AM
Interacting with (the mailing list) linux-kernel@vger.kernel.org - some basics? GrapefruiTgirl Linux - Kernel 4 04-03-2009 01:56 PM
Kernel in sources.list? grilledsalad Linux - Newbie 2 03-10-2005 07:38 AM
Need Kernel Module list! asianboi2k Linux - Software 3 11-10-2003 09:04 PM


All times are GMT -5. The time now is 10:29 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