LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-16-2008, 10:03 AM   #1
lazylogic
Member
 
Registered: Aug 2006
Posts: 151

Rep: Reputation: 16
Kernel Panic - not syncing


Had installed Slackware 12 into a usb thumbdrive.
Installed normally and rebooted into a kernel panic, message below

Quote:
...
...
md: ... autorun DONE.
VFS: Cannot open root device "sdb2" or unknown-block (0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unkknown-block (0,0)
Had tried to use different ways to boot into Slackware, for example:
- through Debian's grub (on the same thumbdrive)
- through usb stick
- through Slackware CD 1
but all resulting in the same error message.

Had tried reinstalling Slackware multiple times into the usb thumbdrive's different partition, sdb1, sdb2 and even using the entire thumbdrive space.
Still booted into the same error.

Had confirmed that the thumbdrive is working properly by installing and getting it working with Debian and Arch.


Appreciate if anyone know what else I can try
and a copy of your Slackware's grub stanza, for testing.

THANKS in advance for the help.

 
Old 04-16-2008, 10:36 AM   #2
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Hi
welcome to lq
see the similar threads part below .. there are more than enough threads on the same problem .. did you go through them? they would probably give you answer faster


anyways ... short answer is .. you need to mkinitrd for a generic kernel or use the hugesmp.s kernel to boot. I don't know how well it will work for a USB install . Search on lq , there are quite a few threads on how to install slackware on USB drives.
 
Old 04-16-2008, 11:15 AM   #3
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware current
Posts: 423

Rep: Reputation: 73
Here's the thread:
http://www.linuxquestions.org/questi...-drive-566697/

You might not need the initrd, try the rootdelay=10 method, that is supposed to delay the mounting of the root file system and let the USB flash drive initialise.

Last edited by mcnalu; 04-16-2008 at 11:16 AM. Reason: broken link
 
Old 04-16-2008, 12:10 PM   #4
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Quote:
You might not need the initrd, try the rootdelay=10 method
Thats for the usb driver part ... but for the kernel to recognise the fs, he WILL need a initrd or the fs compiled in (instead of M)

afaik
 
Old 04-16-2008, 05:20 PM   #5
lazylogic
Member
 
Registered: Aug 2006
Posts: 151

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by mcnalu View Post
Here's the thread:
http://www.linuxquestions.org/questi...-drive-566697/

You might not need the initrd, try the rootdelay=10 method, that is supposed to delay the mounting of the root file system and let the USB flash drive initialise.
HI mcnalu,

thanks for the link.
Will read through them

think you can share Slackware's grub stanza?
wanted to add it back into grub.

Last edited by lazylogic; 04-16-2008 at 05:39 PM.
 
Old 04-16-2008, 05:37 PM   #6
lazylogic
Member
 
Registered: Aug 2006
Posts: 151

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by duryodhan View Post
Hi
there are more than enough threads on the same problem .. did you go through them? they would probably give you answer faster
frankly, I did not read through them,
was die tired after reinstalling Debian to get online, and .. (add more excuses) .... I AM EMBARASSED !


thinking that the problem is due to something wrong that I've done during installation, was reinstalling over and over and over again for the past few days and was a little disorientated.


will read through the links and get it working


anyway, can you share the grub stanza for Slackware?
would want to add it back into grub.


THANKS
 
Old 04-16-2008, 09:59 PM   #7
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
lazylogic, you may get a slow response for the GRUB stanza since Slackware ships with LILO, and only a minority of users use GRUB to boot it. My LILO stanza is as follows:
Code:
image = /boot/vmlinuz-generic-smp-2.6.21.5-smp
  initrd = /boot/initrd.gz
  root = /dev/sda1
  label = Linux
  read-only
That is assuming you use a generic kernel, which requires an initrd -- if you compile your own (or use one of the unrecommended huge kernels), you can omit the initrd line. Also note that you would have to change the "root =" line to point to your hard drive (sd?# or hd?#, where ? is a letter and # is the partition number). Of course, for GRUB this is quite different (eg. hd#,# where # points to your hard drive and partition, which is usually one less than the /dev/hd?# equivalent). An example GRUB stanza is shown below (using hd0,1, which represents hda2 -- modify it to point to your Slackware hard drive and partition):
Code:
title Slackware
root (hd0,1)
kernel /boot/vmlinuz-generic-smp-2.6.21.5-smp root=/dev/hda2
initrd /boot/initrd.gz
This may not be correct (my experience with GRUB is very limited), but compare it to your other entries and try and set it up. Hopefully someone with more experience with GRUB will come along and correct any mistakes I have made.
 
Old 04-16-2008, 11:52 PM   #8
lazylogic
Member
 
Registered: Aug 2006
Posts: 151

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by T3slider View Post
lazylogic, you may get a slow response for the GRUB stanza since Slackware ships with LILO, and only a minority of users use GRUB to boot it.
Hi T3slider, noted and THANKS for sharing !!
 
Old 04-17-2008, 09:40 PM   #9
lazylogic
Member
 
Registered: Aug 2006
Posts: 151

Original Poster
Rep: Reputation: 16
Hi all, managed to get into Slackware .. finally

What I've done is adding this into grub

Quote:
title Slackware
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sdb2 ro rootdelay=10

# hope this stanza is useful to future users :-)
THANKS again to all, for the help

Now comes the difficult (but interesting) part ... finding time to read the slackbook

Last edited by lazylogic; 04-17-2008 at 09:42 PM.
 
Old 04-18-2008, 03:12 AM   #10
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware current
Posts: 423

Rep: Reputation: 73
Lazylogic - good to hear you're up and running. What kernel did you use?
 
Old 04-18-2008, 04:13 AM   #11
lazylogic
Member
 
Registered: Aug 2006
Posts: 151

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by mcnalu View Post
Lazylogic - good to hear you're up and running. What kernel did you use?
hi mcnalu

vmlinuz is linked to vmlinuz-huge-smp-2.6.21.5-smp

still trying to get time to do some reading.
Slackware 12 is installed, that's all.

yet to setup the wireless connection and so on.

so will take some (or maybe many many some) time
 
  


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
Kernel Panic - not syncing (2.6.9-22) Sayoji Linux - Kernel 5 11-28-2006 11:56 PM
Kernel Panic (!) - not syncing Andknig Linux - General 2 09-14-2006 12:15 PM
kernel panic - not syncing gentoo_user Linux - Hardware 1 06-01-2006 08:48 PM
Kernel panic not syncing n6rob Linux - General 3 02-15-2006 06:13 AM
Kernel panic - not syncing carboncopy Slackware 9 12-13-2005 05:53 AM

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

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