LinuxQuestions.org
Help answer threads with 0 replies.
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 11-22-2011, 01:04 PM   #1
killgriff
LQ Newbie
 
Registered: Nov 2011
Distribution: Arch
Posts: 9

Rep: Reputation: Disabled
Kernel panic on first reboot


Ok, I have a hp mini that I use to multiboot Arch, Ubuntu, and Debian currently. I have the HD partitioned so /dev/sda1 is boot (for arch), /sda2 is swap, /sda3 is my /data partition, /sda4 is extended, and then /sda5 is arch, 6 is ubuntu, 7 is debian, 8 will be fedora, and 9 is slackware. I use the arch grub to link the distros by adding the uuid and kernel to arch's menu.lst. After installing slack on /dev/sda9, I rebooted into arch, added the slack option to grub, then tried to reboot into slack. I didn't see lilo when booting, and ran into a kernel panic shortly after.

Here's a picture of the panic:
https://fbcdn-sphotos-a.akamaihd.net...62640840_n.jpg

Slackware's lilo:
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
boot = /dev/sda9

# 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
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# Normal VGA console
vga = normal
# Ask for video mode at boot (time out to normal in 30s)
#vga = ask
# 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
# Windows bootable partition config begins
#other = /dev/sda3
# label = Windows
# table = /dev/sda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda9
  label = Linux
  read-only
# Linux bootable partition config ends
The slack partition is ext4. Let me know if I need to give more info. Any help is greatly appreciated.
 
Old 11-22-2011, 01:11 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I always get a somewhat similar looking kernel panic when I use the generic kernel and forget to create an initrd first. Is there a chance that this may be your problem?
 
Old 11-22-2011, 01:24 PM   #3
killgriff
LQ Newbie
 
Registered: Nov 2011
Distribution: Arch
Posts: 9

Original Poster
Rep: Reputation: Disabled
As I did not create one, that would probably be the problem, haha. I knew it would be something simple. Thanks!
 
Old 11-22-2011, 02:31 PM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
If using initrd, I think you should add a line for it in Lilo.conf after image=/boot/vmlinuz line

like: initrd = /boot/<initrd filename>
 
Old 11-22-2011, 02:52 PM   #5
killgriff
LQ Newbie
 
Registered: Nov 2011
Distribution: Arch
Posts: 9

Original Poster
Rep: Reputation: Disabled
I made the initrd in slack, but couldn't find the lilo.conf in /etc/. There was a lilo-error file, but no .conf. I booted into arch and mounted the slack partition and lilo was there, so I edited it from arch and tried booting back into slack, but ran into the same panic. Any ideas?
 
Old 11-22-2011, 03:05 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Are you using grub or lilo on your Arch? If you use grub and directly load the Slackware kernel (as I understand it from your first post), instead of chainloading to lilo, you don't have to make the changes in lilo at all, you have to make them in your grub's configuration.
 
Old 11-22-2011, 03:12 PM   #7
killgriff
LQ Newbie
 
Registered: Nov 2011
Distribution: Arch
Posts: 9

Original Poster
Rep: Reputation: Disabled
I use grub in Arch

Code:
# (5) Slackware
title Slackware
root (hd0,8)
uuid 1af51426-af58-4478-b7a6-0ed9b91aa4c0
kernel /boot/vmlinuz
 
Old 11-22-2011, 03:14 PM   #8
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
For my part, I found an easy way to use Linux distros multiboot is to make a separate /boot partition and share it between distros. It just requires that you make sure that kernel/System.map/initrd filenames are named differently for each distro so they don't get overwritten
 
Old 11-22-2011, 03:15 PM   #9
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by killgriff View Post
I use grub in Arch

Code:
# (5) Slackware
title Slackware
root (hd0,8)
uuid 1af51426-af58-4478-b7a6-0ed9b91aa4c0
kernel /boot/vmlinuz
initrd line missing...

What is the file name for initrd in Slackware's /boot ?
 
Old 11-22-2011, 03:19 PM   #10
killgriff
LQ Newbie
 
Registered: Nov 2011
Distribution: Arch
Posts: 9

Original Poster
Rep: Reputation: Disabled
Ok, I didn't think of initrd in grub. It's /boot/initrd.gz in slackware. So would I just add
Code:
initrd /boot/initrd.gz
to grub?

EDIT:
Nope, tried that and still get a panic.

Last edited by killgriff; 11-22-2011 at 03:24 PM.
 
Old 11-22-2011, 03:23 PM   #11
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Yes, put that your arch grub's menu.lst
BTW is it grub2 or grub legacy used in arch ? I think grub2 uses partition notation that starts at 1
(so root(hd0,9) for /dev/sda9)

Last edited by Cedrik; 11-22-2011 at 03:30 PM.
 
Old 11-22-2011, 03:32 PM   #12
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by killgriff View Post
Ok, I didn't think of initrd in grub. It's /boot/initrd.gz in slackware. So would I just add
Code:
initrd /boot/initrd.gz
to grub?

EDIT:
Nope, tried that and still get a panic.
maybe comment the uuid thing and use root=/dev/sda9
like:
Code:
# (5) Slackware
title Slackware
root (hd0,8)
#uuid 1af51426-af58-4478-b7a6-0ed9b91aa4c0
kernel /boot/vmlinuz ro root=/dev/sda9
initrd /boot/initrd.gz
 
Old 11-22-2011, 03:37 PM   #13
killgriff
LQ Newbie
 
Registered: Nov 2011
Distribution: Arch
Posts: 9

Original Poster
Rep: Reputation: Disabled
Tried initrd in grub and still get the same panic. Arch uses grub2 (2.2.6), but for some reason it starts at 0.
Code:
# DEVICE NAME CONVERSIONS
#
#  Linux           Grub
# -------------------------
#  /dev/fd0        (fd0)
#  /dev/sda        (hd0)
#  /dev/sdb2       (hd1,1)
#  /dev/sda3       (hd0,2)
#
I'm checking if changing from kernel to linux will work in grub.

Last edited by killgriff; 11-22-2011 at 03:39 PM.
 
Old 11-22-2011, 03:45 PM   #14
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Did you make initrd from arch, like :
Code:
mount /dev/sda9 /mnt/tmp
cd /mnt/tmp
chroot .
/sbin/mkinitrd -c -k <kernel version> -m mbcache:jbd:ext4 -f ext4 -r /dev/sda9
exit

Last edited by Cedrik; 11-22-2011 at 03:48 PM.
 
Old 11-22-2011, 03:52 PM   #15
killgriff
LQ Newbie
 
Registered: Nov 2011
Distribution: Arch
Posts: 9

Original Poster
Rep: Reputation: Disabled
I tried your suggestion of commenting the uuid and adding ro root=/dev/sda9 and it worked! It finally got past the panic and let me log in normally. BTW: I made the initrd from slack (reinstalled and used the cl after exiting setup).

Thanks for all your help, I never would have thought the changes needed to be made in grub. Now I've got another distro to play with
 
  


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
6.7 - all done - reboot - kernel panic! What to do now? cybermann Linux From Scratch 3 02-10-2011 08:09 AM
Automatic reboot on kernel panic atlesn Linux - General 2 11-30-2004 10:04 AM
kernel panic on reboot of newly compiled kernel lyceum Linux - Newbie 4 09-09-2003 09:40 AM
Kernel panic on reboot runny_yolk Linux - General 0 10-04-2002 10:12 PM
Kernel Panic after reboot Spock Linux - General 8 08-27-2002 09:38 AM

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

All times are GMT -5. The time now is 04:28 PM.

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