LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-12-2012, 08:13 AM   #1
chemicalfan
LQ Newbie
 
Registered: Dec 2011
Location: Portsmouth, UK
Distribution: Linux Mint Debian
Posts: 5

Rep: Reputation: Disabled
Slackware 14 generic SMP kernel doesn't boot in Virtualbox


Total Slack noob here, so bear with me

Ok, so I'm trying to install Slackware 14 (32 bit) into Virtualbox (Windows 7 x64 host, latest VB version), been through the setup, stripped out a load of stuff related to X as I want this to be console only. The plan is to use this as a bridge between my dual boot Linux, as I store media on my /home ext4 partition, and was going to use this Slack VB to run a Samba share of my /home partition to allow Windows to access those files. Yes, I know there are other ways to do that, but I want to do it this way

Anyway, just finished the setup, rebooted, and I get a kernel panic saying it can't mount root FS (it's formatted to ext4, a single partition for the whole install). I've got a screenshot showing the actual message, but I can't post it up here (and can't use pastebin from work).
This is my first foray into Slack, and I've no idea which way to go at the moment. The kernel is the generic SMP one that comes with the install disc (didn't bother installing the huge one, as I thought I'd probably end up re-compiliing this one anyway) I've never really had to deal with kernel panics before

Is this a known bug with this kernel? What do I do now?
 
Old 10-12-2012, 08:16 AM   #2
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by chemicalfan View Post
... (didn't bother installing the huge one, ...
See what happens if you do bother installing the huge one.
 
Old 10-12-2012, 08:24 AM   #3
chemicalfan
LQ Newbie
 
Registered: Dec 2011
Location: Portsmouth, UK
Distribution: Linux Mint Debian
Posts: 5

Original Poster
Rep: Reputation: Disabled
Yep, that's the next plan regarding my installation, but if I'm not the only one with the problem (i.e. it's recreatable by others), it should be noted that the generic kernel doesn't work with Virtualbox. Of course, this could be a setup/config issue, but I don't really have the knowledge to determine that (hence my post! )
 
Old 10-12-2012, 08:26 AM   #4
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
Did you create the initrd? If so, did you specify the ext4 module to be used in the initrd?
 
1 members found this post helpful.
Old 10-12-2012, 08:32 AM   #5
chemicalfan
LQ Newbie
 
Registered: Dec 2011
Location: Portsmouth, UK
Distribution: Linux Mint Debian
Posts: 5

Original Poster
Rep: Reputation: Disabled
Doh, I'd assumed that would have been part of the installation of the boot loader or kernel package? From your comment, I'm guessing it may not.....

Is ext4 a module in that kernel then?
 
Old 10-12-2012, 09:06 AM   #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
Quote:
Originally Posted by chemicalfan View Post
Doh, I'd assumed that would have been part of the installation of the boot loader or kernel package? From your comment, I'm guessing it may not.....
No, as stated in the installation documentation, in fact it is not. You have to make that yourself. Have a look at the documentation in the SlackDocs: http://docs.slackware.com/slackware:...generic_kernel
 
1 members found this post helpful.
Old 10-12-2012, 09:32 AM   #7
chemicalfan
LQ Newbie
 
Registered: Dec 2011
Location: Portsmouth, UK
Distribution: Linux Mint Debian
Posts: 5

Original Poster
Rep: Reputation: Disabled
Damn it, I read the installation guide but not the beginners guide! Sorry to waste your time, seems like I wasted my own time too by making assumptions and not RTFM
 
Old 10-12-2012, 10:27 PM   #8
s3phir0th115
LQ Newbie
 
Registered: Jan 2007
Distribution: Slackware
Posts: 22

Rep: Reputation: 3
On the root of the install media there should be a README.initrd, I suggest you read that some as the generic kernel requires an initrd. With that I didn't have to consult any external documentation. It includes full directions and examples.

What I personally do is install the huge kernel, from install, then add a generic kernel configuration to lilo, taking care not to remove the original one until I'm sure the generic one boots properly. (Of course, make sure you run lilo again once the change is made.)
 
Old 10-13-2012, 02:35 PM   #9
Slackovado
Member
 
Registered: Mar 2005
Location: BC, Canada
Distribution: Slackware 14.2 x64
Posts: 308

Rep: Reputation: 70
Quote:
Originally Posted by chemicalfan View Post
Yep, that's the next plan regarding my installation, but if I'm not the only one with the problem (i.e. it's recreatable by others), it should be noted that the generic kernel doesn't work with Virtualbox. Of course, this could be a setup/config issue, but I don't really have the knowledge to determine that (hence my post! )
Yeah, it's "broken by design".
Including the couple modules for the ~4 most used file systems so that 99% of desktop systems can boot without initrd would be too drastic and radical.
So basically no new Slackware user ever manages to install successfully without spending couple days troubleshooting.
 
1 members found this post helpful.
Old 10-13-2012, 05:26 PM   #10
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by Slackovado View Post
Yeah, it's "broken by design".
Including the couple modules for the ~4 most used file systems so that 99% of desktop systems can boot without initrd would be too drastic and radical.
So basically no new Slackware user ever manages to install successfully without spending couple days troubleshooting.
If you include the filesystems modules, then you must also include the hard drive controller modules and maybe the USB modules...where does it end? If you include everything needed by any hardware, aren't you just using the huge kernel anyway?
 
Old 10-14-2012, 04:11 AM   #11
Slackovado
Member
 
Registered: Mar 2005
Location: BC, Canada
Distribution: Slackware 14.2 x64
Posts: 308

Rep: Reputation: 70
Quote:
Originally Posted by T3slider View Post
If you include the filesystems modules, then you must also include the hard drive controller modules and maybe the USB modules...where does it end? If you include everything needed by any hardware, aren't you just using the huge kernel anyway?
I said 99%.
Yes, the common controllers' modules should be included and probably are anyway. Vast majority of desktop computers use Intel controllers and USB chips. The rest %1 can do initrd.
 
Old 10-14-2012, 04:40 AM   #12
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
Contrary to common belief the huge kernel does not have everything and the kitchen sink compiled in. Try something like
Code:
vimdiff /boot/config-generic-smp-3.2.29-smp /boot/config-huge-smp-3.2.29-smp
and you will see that the main differences are that the huge kernel has support for the most harddisk controllers and filesystems compiled into the kernel. The only other difference worth noticing is support for Speakup, so that visually impaired people have the chance to install and run Slackware.

So the kernel you demand, with modules for harddisk controllers and filesystems compiled into the kernel, already exists and is in fact used as default kernel, you just are not aware of it.
 
Old 10-15-2012, 02:57 AM   #13
chemicalfan
LQ Newbie
 
Registered: Dec 2011
Location: Portsmouth, UK
Distribution: Linux Mint Debian
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by T3slider View Post
If you include the filesystems modules, then you must also include the hard drive controller modules and maybe the USB modules...where does it end? If you include everything needed by any hardware, aren't you just using the huge kernel anyway?
Not exactly, there's a TON of stuff in the kernel you won't need (for example, I only need ext4, not the others)

Quote:
Originally Posted by Slackovado View Post
Yeah, it's "broken by design".
Including the couple modules for the ~4 most used file systems so that 99% of desktop systems can boot without initrd would be too drastic and radical.
So basically no new Slackware user ever manages to install successfully without spending couple days troubleshooting.
That's a bit elitist, isn't it?

Just an update - got it all working eventually, by booting with the install CD and pointing the boot parameter at the installed root, then using slackpkg to install the other kernel. Quick lilo update and I'm good to go!
Thanks all for posting
 
  


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
Slackware 13.37/2.6.37.6-smp on VirtualBox kernel panic on Intel i3/i5/i7 lee88abc Linux - Virtualization and Cloud 11 04-03-2013 10:11 PM
Slackware 13.37/2.6.37.6-smp on VirtualBox kernel panic on Intel i3/i5/i7 lee88abc Slackware 2 08-08-2011 08:55 AM
[SOLVED] very slow boot with 2.6.32.2 generic-smp kernel thach.trung.ngoc Slackware 3 01-10-2010 06:31 AM
generic-smp kernel doesn't boot in 12.2 samac Slackware 7 12-12-2008 12:01 PM
DMA not working slackware 12.1 Generic Stock SMP kernel duryodhan Slackware 8 09-18-2008 12:54 PM

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

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