LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices



Reply
 
Search this Thread
Old 12-13-2007, 09:05 AM   #1
mpyusko
Member
 
Registered: Oct 2003
Location: Rochester, NY, USA
Distribution: Salckware ver 10.1 - 14.1, Debian too.
Posts: 371
Blog Entries: 1

Rep: Reputation: 38
Slackware 12 on USB hard drive Kernel Panic


I installed Slackware 12.0 with the default 2.6.21-SMP Kernel on my USB hard drive. It starts loading the kernel and then I get a Kernel Panic (8,3). It can't load partition 3 of my USB drive as root.

I found a thread for a similar problem using Slackware 10.1. It says to recompile the Kernel including certain modules:
Quote:
jbd.o
ext3.o
scsi_mod.o
sd_mod.o
usbcore.o
uhci.o
usb-storage.o
Then it goes on with other instructions. Now I've never had any good luck compiling a kernel, and those instructions are for 2.4.29(? if memory serves me) and I'm using 2.6. So is there anything I should do different?
 
Old 12-13-2007, 12:05 PM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I say try making an initrd instead, it'll be easier, especially if you don't have luck with compiling kernels. Looks like you'll need the right USB related modules to allow it to boot from a USB HDD. Those are approximately the ones, but try the initrd first.
 
Old 12-13-2007, 01:03 PM   #3
mpyusko
Member
 
Registered: Oct 2003
Location: Rochester, NY, USA
Distribution: Salckware ver 10.1 - 14.1, Debian too.
Posts: 371
Blog Entries: 1

Original Poster
Rep: Reputation: 38
Make an initrd? .... Initial RamDisk? How do I do that?
 
Old 12-13-2007, 01:19 PM   #4
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 13.37
Posts: 536

Rep: Reputation: 36
Make sure you have the mkinitrd package installed. Then /boot/README.initrd

Cheers.
 
Old 12-13-2007, 08:55 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,460
Blog Entries: 4

Rep: Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505
Hi,

Quote:
Originally Posted by mpyusko View Post
Make an initrd? .... Initial RamDisk? How do I do that?
As stated you need to make a initrd!

The easiest way would be to use the Slackware install cd1 to boot the system as if you were going to install.

After you get to the login then from the cli (command line);

Code:
~#mkdir /slacktemp                   #temporary mount point
~#mount /dev/your_device /slacktemp  #this is the device you
                                     #installed to
~#chroot /slacktemp                  #change to yours
~#cd /boot                           #you can now create your             
                                     #initrd via instruction in 
                                     #README.initrd

~#cd /slacktemp/etc                  #change to directory with lilo.conf 
~#vi lilo.conf                       #edit lilo.conf,add the 
                                     #initrd = /boot/initrd.gz
                                     #to proper stanza then;

~#lilo -v -t -b /dev/your_device     #sda, hda this will only test 
~#lilo -v -b /dev/your_device        #this will write MBR to your_device
If you create the initrd with the proper modules then you should now be able to boot your system.

BTW,

Quote:
mpyusko

Member
Registered: Oct 2003
Location: Rochester, NY, USA
Distribution: Salckware has me hooked for now. ver 10.1 - 12.0
Posts: 152
The correct spelling is 'Slackware'. You need to fix it by 'Edit Profile'.
 
Old 12-14-2007, 10:40 AM   #6
digitalboy74
Member
 
Registered: Aug 2004
Location: Matrix
Distribution: slack currrent
Posts: 61

Rep: Reputation: 16
There is probably one additional step, which is to write a script to re-scan the usb bus

or panics will continue for lack of an init.
 
Old 12-15-2007, 12:40 PM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,460
Blog Entries: 4

Rep: Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505
Hi,
Quote:
Originally Posted by digitalboy74 View Post
There is probably one additional step, which is to write a script to re-scan the usb bus

or panics will continue for lack of an init.
If the initrd and proper modules are setup then the scan should be handled via the boot session. If the udev is working then the scan should be done by the device mapper.
 
  


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
kernel panic when added new hard drive kaviazzz Suse/Novell 4 03-04-2007 07:02 PM
Booting Slackware 10.1 off a USB hard drive, getting a kernal panic asbarrett Slackware - Installation 3 08-10-2006 04:06 PM
Kernel panic on install to blank hard drive dismas Slackware - Installation 1 09-30-2005 07:06 PM
Tecra m3 hard drive dma and kernel panic :( bird603568 Slackware 1 08-28-2005 12:57 PM
New Hard Drive Causes Kernel Panic darkfire55 Linux - Hardware 4 11-28-2004 03:59 PM


All times are GMT -5. The time now is 06:12 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration