LinuxQuestions.org
Review your favorite Linux distribution.
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 12-12-2008, 10:13 AM   #1
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Slackware64-14.1 (multi-lib) KDE 4.11.4
Posts: 1,422

Rep: Reputation: 137Reputation: 137
generic-smp kernel doesn't boot in 12.2


Hi all

I have installed 12.2 and got it how I like it, but it only boots with the hugesmp kernel.

The generic crashes out with the following error.
Code:
mount: mounting /dev/root on /mnt failed: no such file or directory
ERROR: No /sbin/init found on rootdev (or not mounted).
I have generated an initrd.gz and modified lilo.conf and re-run lilo.

The root device is formatted with jfs and the initrd.gz loads jfs.ko from the smp-modules.

samac
 
Old 12-12-2008, 10:19 AM   #2
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 32bit
Posts: 719
Blog Entries: 3

Rep: Reputation: 76
Can you post your mkinitrd commmand?

I generated my initrd.gz image and had the same error as you. I just ran the wrong command options. OK I can be the only stupid guy out there but your detailed mkinitrd options would help in analyzing your issue.

Last edited by gegechris99; 12-12-2008 at 10:20 AM.
 
Old 12-12-2008, 10:26 AM   #3
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Slackware64-14.1 (multi-lib) KDE 4.11.4
Posts: 1,422

Original Poster
Rep: Reputation: 137Reputation: 137
I tried to generate the initrd.gz three ways
Code:
mkinitrd -c -k 2.6.27.7-smp -m jfs
then
mkintrd jfs
then 
mkinitrd
All three failed the same way.

EDIT mkinitrd -c -m jfs fails also.

samac

Last edited by samac; 12-12-2008 at 10:30 AM.
 
Old 12-12-2008, 10:33 AM   #4
GazL
Senior Member
 
Registered: May 2008
Posts: 3,365

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Originally Posted by samac View Post
I tried to generate the initrd.gz three ways
Code:
mkinitrd -c -k 2.6.27.7-smp -m jfs
then
mkintrd jfs
then 
mkinitrd
All three failed the same way.

samac
Have you tried it without the mkintrd jfs ? Whatever that is for, I've never had to do that. (edit: doh, ignore that question, I see what you're saying now. I misunderstood).

Normally I just run the single command
Code:
mkinitrd -c -k 2.6.27.7-smp -m jfs -f jfs -r /dev/whatevertherootpartitionis
According to the man page -f and -r should be autodetected, but I figure it won't hurt to tell it.

also, worth checking that the entry in lilo points to the right initrd file.

Last edited by GazL; 12-12-2008 at 10:40 AM.
 
Old 12-12-2008, 10:38 AM   #5
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Slackware64-14.1 (multi-lib) KDE 4.11.4
Posts: 1,422

Original Poster
Rep: Reputation: 137Reputation: 137
Quote:
Normally I just run the single command
Code:
mkinitrd -c -k 2.6.27.7-smp -m jfs -f jfs -r /dev/whatevertherootpartitionis
According to the man page -f and -r should be autodetected, but I figure it won't hurt to tell it.
Hi

I got there just as you were posting. It needed the the -f and -r modifiers to find a jfs filesystem on /dev/sda1

Thanks

samac
 
Old 12-12-2008, 10:38 AM   #6
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 32bit
Posts: 719
Blog Entries: 3

Rep: Reputation: 76
Maybe you can try the full options:

Code:
mkinitrd -c -k 2.6.27.7-smp -m jfs -f jfs -r /dev/hda1
This assumes that your root partition is in /dev/hda1. Please change accordingly.
 
Old 12-12-2008, 11:28 AM   #7
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
I got there just as you were posting. It needed the the -f and -r modifiers to find a jfs filesystem on /dev/sda1
I't not just jfs that needs the root option ( -r ) supplying to mkinitrd. The huge kernel creates a /dev/root symlink to the device the root file system is mounted on. Then mount returns /root/dev / for the root filesystem. This causes a file to be created at /boot/initrd-tree/rootdev containing /dev/root as this was the root filesystem device when the initrd was created. This goes into the initrd. This is because if a root filesystem device is not supplied mkinitrd will use the output of mount to find the root device and mount returns /dev/root as the mounted root filesystem device.

Then when the generic kernel boots it tries to use this entry to mount the root filesystem and fails.

This is a pain as previous versions missing out the -r to mkinitrd was ok. Once you know about it however it's not a problem.
 
Old 12-12-2008, 12:01 PM   #8
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,159

Rep: Reputation: 1013Reputation: 1013Reputation: 1013Reputation: 1013Reputation: 1013Reputation: 1013Reputation: 1013Reputation: 1013
I had the same problem and solved it in populating /etc/mkinitrd.conf cp'ed from /etc/mkinitrd.conf.sample and issuing a mkinitrd -F command, see:
http://www.linuxquestions.org/questi...0/#post3373248
 
  


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
2.6.27.5-smp Generic + Nvidia (*.run) Driver = Failure orbit Slackware 6 11-11-2008 03:39 AM
DMA not working slackware 12.1 Generic Stock SMP kernel duryodhan Slackware 8 09-18-2008 12:54 PM
ndiswrapper and generic smp kernel Bazzaah Slackware 13 05-17-2008 02:31 AM
smp oops in kernel 2.6.20-16-generic anirudhvij Linux - Kernel 0 08-19-2007 06:02 AM
Switch from huge-smp-2.6.21.5 to generic-2.6.21.5 tronayne Slackware 1 07-30-2007 08:34 AM


All times are GMT -5. The time now is 03:31 AM.

Main Menu
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