LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-2009, 09:22 PM   #1
jamescow
LQ Newbie
 
Registered: Dec 2008
Posts: 12

Rep: Reputation: 0
Trying generic kernel, mounting /dev/root on /mnt failed


I get that message on failed boot and this below it:

ERROR: No /sbin/init found on rootdev (or not mounted).

I tired following the instructions in the official mkinitrd help file. I probably typed in something wrong in the lilo.conf. Anyway now I can't boot up to fix it, how do I proceed from here?

Also when I exit initrd.gz I get this message
switch root: bad newroot /mnt
Kernel panic - not syncing: Attempted to kill init


This is on fresh install of Slackware 12.2

Last edited by jamescow; 04-16-2009 at 09:25 PM.
 
Old 04-16-2009, 09:48 PM   #2
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 231Reputation: 231Reputation: 231
It looks like you have a bad entry in the initrd tree root device stored in /boot/initrd-tree/rootdev. You may fix this by running
Code:
mkinitrd -c -r /dev/myrootpartition -f rootfilesystem -m mymodules
with the appropriate values filled in. Then make sure lilo.conf is OK and rerun lilo.

You could have made a mistake or possibly have one of the faulty versions of mkinitrd which puts /dev/root in the root filesystem file in the initrd-tree. This was patched soon after the release. Anyway rebuilding the initial ram disk and supplying all parameters before running lilo should fix it.
 
Old 04-16-2009, 09:51 PM   #3
jamescow
LQ Newbie
 
Registered: Dec 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Okay I booted into my system using the slackware install cd. Ran mkinitrd again this time specifying -r /dev/hda2. Also edited my lilo.conf to target the non smp generic kernel. System boots now without cd and seems to be working fine... how do I check if I'm indeed using the generic kernel now? Sorry I'm fairly new to all this.
 
Old 04-16-2009, 10:17 PM   #4
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 231Reputation: 231Reputation: 231
When booted run this :
Code:
dmesg | grep "initramfs"
and see if a ram disk is reported.
 
Old 04-16-2009, 10:21 PM   #5
jamescow
LQ Newbie
 
Registered: Dec 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bgeddy View Post
When booted run this :
Code:
dmesg | grep "initramfs"
and see if a ram disk is reported.
says: chicking if image is initramfs... it is
 
Old 04-16-2009, 10:27 PM   #6
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 231Reputation: 231Reputation: 231
Cool - that's the generic then. I would recommend downloading this and running
Code:
upgradepkg mkinitrd-1.3.3-i486-1_slack12.2.tgz
as root to make sure you are running the fixed version of mkinitrd.

Last edited by bgeddy; 04-16-2009 at 10:28 PM.
 
Old 04-16-2009, 10:36 PM   #7
jamescow
LQ Newbie
 
Registered: Dec 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks guys... Sorry for asking stupid question, just panicked when I couldn't boot I guess. Next time will try and troubleshoot myself before posting a new topic.
 
  


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
mount: Mounting /dev/sda2 on /mnt failed: Invalid argument dohpaz Slackware 7 05-25-2007 02:03 AM
Mounting /dev/hda1 on /root failed: no such device xucaen Debian 2 10-10-2006 10:14 AM
kernel image 2.6.16: /root/proc failed xucaen Debian 1 10-09-2006 12:24 PM
automount: mount(generic): failed to mount (null) (type iso9660) on /mnt/media/ vasudevadas Slackware 5 10-17-2005 03:05 PM
Mounting /dev/sda0 - problem after kernel recompile kheno Ubuntu 3 06-03-2005 05:02 PM

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

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