LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-25-2010, 09:16 AM   #1
Abraxel
LQ Newbie
 
Registered: May 2009
Posts: 5

Rep: Reputation: 0
After upgrading 64-current to 2.6.33, still boots 2.6.32.7 and loads no modules


Hi, I've been trying 64-current for a little while, and I just tried using slackpkg to install-new/upgrade-all, which included the kernel upgrade to 2.6.33. Long story short, I'm somehow booting the wrong kernel, and that causes modprobe not to be able to load any modules.

After a fresh boot:
Code:
# uname -r
2.6.32.7
# lsmod
Module                    Size  Used by
#
There aren't any modules (I think) because /lib/modules/2.6.32.7/ doesn't exist, and everything is in /lib/modules/2.6.33/

In /etc/lilo.conf, I have it pointing to the right image:
Code:
image = /boot/vmlinuz
  root = /dev/sda2
  label = Linux
  read-only
/boot/vmlinuz is a symlink to /boot/vmlinuz-huge-2.6.33, which apparently automatically replaced the 2.6.32.7 image with the upgrade-all.
I have run lilo to reinstall the configuration, but it didn't change anything.

So, I'm somehow booting the wrong kernel, and I have no idea why. Is there something obvious I'm missing, or am I looking at the wrong problem? I really don't have much experience with messing with the kernel (a main reason I switched to slackware was to learn all sorts of things), so I'm not sure where to look.

Thanks!
 
Old 03-25-2010, 10:01 AM   #2
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,531

Rep: Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371
You run lilo after this upgrade?
 
Old 03-25-2010, 10:12 AM   #3
Abraxel
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by LuckyCyborg View Post
You run lilo after this upgrade?
I did. The output was simply:
Code:
# lilo
Added Linux *
#
And it still boots 2.6.32.7

Edit: I added lba32 to lilo.conf, which suppressed a warning from lilo, but didn't affect anything else.

Last edited by Abraxel; 03-25-2010 at 10:27 AM.
 
Old 03-25-2010, 10:15 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,111

Rep: Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183
to help you more effectively, can you post the output of "fdisk -l", "ls -la /boot", "lilo -v" (the -v option gives you other hints) and the full lilo.conf? I think, just a guess from the info you gave us, that you are installing the bootloader in a place and booting from another.
you should have a look also in the bios boot sequence.

Last edited by ponce; 03-25-2010 at 10:57 AM.
 
Old 03-25-2010, 10:59 AM   #5
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,531

Rep: Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371Reputation: 3371
@Abraxel: Your /boot/vmlinuz symlink point where? Wich file?
 
Old 03-25-2010, 11:01 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,111

Rep: Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183
it seems he wrote it in his post, to /boot/vmlinuz-huge-2.6.33
 
Old 03-25-2010, 12:16 PM   #7
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,693

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
did you run

make modules_install

after you you made your kernel?
 
Old 03-25-2010, 01:37 PM   #8
Abraxel
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ponce View Post
to help you more effectively, can you post the output of "fdisk -l", "ls -la /boot", "lilo -v" (the -v option gives you other hints) and the full lilo.conf? I think, just a guess from the info you gave us, that you are installing the bootloader in a place and booting from another.
you should have a look also in the bios boot sequence.
Sure, no problem.

fdisk -l
(for reference, /dev/sda2 is /, /dev/sda3 is /home, and /dev/sdb is just a spare hard disk that shouldn't have anything to do with this)
Code:
Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ee0e4

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1045     8393931   82  Linux swap
/dev/sda2   *        1046       14100   104864287+  83  Linux
/dev/sda3           14101       77825   511871062+  83  Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x76f0ab2b

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      121601   976760001   83  Linux
ls -la /boot
Code:
total 11799
drwxr-xr-x  2 root root     624 2010-03-25 07:34 ./
drwxr-xr-x 23 root root     536 2010-03-24 21:57 ../
lrwxrwxrwx  1 root root      37 2010-03-24 21:35 README.initrd -> /usr/doc/mkinitrd-1.4.3/README.initrd
lrwxrwxrwx  1 root root      22 2010-03-24 21:22 System.map -> System.map-huge-2.6.33
-rw-r--r--  1 root root 1512231 2010-02-27 17:45 System.map-generic-2.6.33
-rw-r--r--  1 root root 2508251 2010-03-07 12:36 System.map-huge-2.6.33
-rw-r--r--  1 root root     512 2010-02-26 11:54 boot.0800
-rw-r--r--  1 root root     512 2010-02-25 06:12 boot.0802
-rw-r--r--  1 root root     168 2010-02-25 06:12 boot_message.txt
lrwxrwxrwx  1 root root      18 2010-03-24 21:22 config -> config-huge-2.6.33
-rw-r--r--  1 root root  101662 2010-02-27 17:45 config-generic-2.6.33
-rw-r--r--  1 root root  101615 2010-03-07 12:36 config-huge-2.6.33
-rw-r--r--  1 root root    5040 2010-02-14 21:09 diag1.img
-rw-r--r--  1 root root   17932 2010-02-14 21:09 diag2.img
-rw-------  1 root root   83968 2010-03-25 07:34 map
-rw-r--r--  1 root root   17318 2008-12-08 19:56 slack.bmp
lrwxrwxrwx  1 root root      19 2010-03-24 21:22 vmlinuz -> vmlinuz-huge-2.6.33
-rw-r--r--  1 root root 2511152 2010-02-27 17:45 vmlinuz-generic-2.6.33
-rw-r--r--  1 root root 5173888 2010-03-07 12:36 vmlinuz-huge-2.6.33
lilo -v
Code:
LILO version 22.8, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2006 John Coffman
Released 19-Feb-2007 and compiled at 20:09:28 on Feb 14 2010

Reading boot sector from /dev/sda2
Using BITMAP secondary loader
Calling map_insert_data
Mapping bitmap file /boot/slack.bmp
Calling map_insert_file

Boot image: /boot/vmlinuz -> vmlinuz-huge-2.6.33
Added Linux *

Writing boot sector.
/boot/boot.0802 exists - no boot sector backup copy made.
And /etc/lilo.conf
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
boot = /dev/sda2
#boot = /dev/sda

# Get rid of warning "LBA32 addressing assumed"
lba32

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
  bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
  bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used.  We don't specify it here, as there's just one column.
  bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
  bmp-timer = 65,27,0,255

# Standard menu.
# Or, you can comment out the bitmap menu above and 
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
#timeout = 1200
timeout = 60
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# VESA framebuffer console @ 1024x768x64k
vga = 791
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda2
  label = Linux
  read-only
# Linux bootable partition config ends
I hope that helps! I'm still pretty lost.

Last edited by Abraxel; 03-25-2010 at 01:58 PM.
 
Old 03-25-2010, 01:57 PM   #9
Abraxel
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Daedra View Post
did you run

make modules_install

after you you made your kernel?
I did not... but I didn't actually make my kernel, I just upgraded the slackware packages. Do I still need to run "make modules_install", or was that done automatically? Looking in /lib/modules/2.6.33, which was apparently created by the upgrade, it looks like all the aliases and dependencies and modules and such are there, which makes me suspect that it's already been done. Am I assuming too much or just confused?

Last edited by Abraxel; 03-25-2010 at 02:00 PM. Reason: For clarity, s/update/upgrade/
 
Old 03-25-2010, 02:33 PM   #10
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,111

Rep: Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183
I think mystery is solved: you are booting from the MBR of /dev/sda, where the kernel has installed in the past.
after, you probably changed
Code:
boot=/dev/sda
to
Code:
boot=/dev/sda2
in /etc/lilo/conf (you also commented the original one) so the next execution of lilo installed it to /dev/sda2, in the partition instead of the MBR of the disk.
solution should be to change it back to the original, execute lilo and reboot.

hoping that wasn't something you left trying to install it also in the partition.

as last resort trying to disconnect the spare hard disk can be an option: if your system won't boot anymore, lilo it's installed there

Last edited by ponce; 03-25-2010 at 02:44 PM.
 
Old 03-25-2010, 03:00 PM   #11
Abraxel
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ponce View Post
I think mystery is solved: you are booting from the MBR of /dev/sda, where the kernel has installed in the past.
after, you probably changed
Code:
boot=/dev/sda
to
Code:
boot=/dev/sda2
in /etc/lilo/conf (you also commented the original one) so the next execution of lilo installed it to /dev/sda2, in the partition instead of the MBR of the disk.
solution should be to change it back to the original, execute lilo and reboot.

hoping that wasn't something you left trying to install it also in the partition.

as last resort trying to disconnect the spare hard disk can be an option: if your system won't boot anymore, lilo it's installed there
That worked! Thank you! I'm trying to remember why I changed that in the first place (I'm fairly certain I was trying to fix something during the initial installation, but I can't for the life of me remember what).
 
  


Reply



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
Where is the script that loads up all of my other modules... trist007 Linux - Newbie 4 03-13-2009 02:59 AM
loading usb modules before/when lilo loads. djgerbavore Slackware 2 10-17-2006 10:46 PM
X no longer loads after current Swaret upgrade shadowsnipes Slackware 7 06-25-2006 11:20 PM
Mandriva boots up, but loads to a black screen smurcoch Mandriva 6 05-31-2006 02:04 PM
what loads the bootup modules? Ed_999 Slackware 2 12-12-2004 09:20 PM

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

All times are GMT -5. The time now is 03:12 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
Open Source Consulting | Domain Registration