LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 04-06-2008, 07:57 AM   #1
nc3b
Member
 
Registered: Aug 2005
Posts: 327
Thanked: 2
Slackware 12 initrd issue


[Log in to get rid of this advertisement]
Hello. I've always liked slackware and I especially liked the 11 version. So I decided to try out the 12 version in vmware. So far so good.
I have a 1G scsi hdd, so it should be more than enough for my needs. I installed and everything went fine. I rebooted, started my system with the cd and a /dev/sda1 argument and I was in. I README.initrd in /boot and folowed the instructions. So I said
Code:
mkinitrd -c -f reiserfs -k 2.6.21.5-smp -m reiserfs -r /dev/sda1
Good. It said "2002 blocks". So I wen further. I installed grub and edited my menu.lst which now shows

Code:
  title Linux initrd /boot/initrd.gz
  root (hd0,0)
  kernel /boot/vmlinuz-generic-smp-2.6.21.5-smp ro root=/dev/sda1
  initrd /boot/initrd.gz
So I booted it and it says
Code:
initrd.gz: Loading kernel modules from initrd image:
Using  /lib/modules/2.6.21.5-smp/kernel/fs/reiserfs/reiserfs.ko
mount: mounting /dev/sda1 on /mnt failed
ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead.
And a kernel panic follows. I am really really sure / is reiserfs. I also applied the patch from this thread http://www.linuxquestions.org/questi...estion-569161/
provided by rworkman. Nothing works Can anyone tell me what I am doing wrong? I don't want to use the huge kernel.
nc3b is offline  
Tag This Post , ,
Reply With Quote
Old 04-06-2008, 10:41 AM   #2
nc3b
Member
 
Registered: Aug 2005
Posts: 327
Thanked: 2

Original Poster
I believe I am starting to get a clue. It seems I need to also load a scsi driver as a module (I'm almost sure). But I don't know which. Can anyone tell me how to find what I should add? It's fairly easy I guess, since I can boot with the hugesmp.s.. but I never knew how to do just that. Thank you.
nc3b is offline     Reply With Quote
Old 04-06-2008, 02:15 PM   #3
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware 12.2
Posts: 1,350
Thanked: 19
I would try "lspci" and compare to the kernel options.
titopoquito is offline     Reply With Quote
Old 04-06-2008, 03:58 PM   #4
nc3b
Member
 
Registered: Aug 2005
Posts: 327
Thanked: 2

Original Poster
I got away with
Code:
mkinitrd -c -f reiserfs -k 2.6.21.5-smp -m "reiserfs : mptspi" -r /dev/sda1
Finally!
Thank you very titopoquito.
nc3b is offline  
Tag This Post , , ,
Reply With Quote
Old 04-06-2008, 04:22 PM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 2,867
Thanked: 228
Hi

Can you try if running this shell script (as root) http://www.slackware.com/~alien/tool...d_generator.sh will produce (roughly) the same mkinitrd command that you used?
The script will not change anything to your system. It only reads the state of your running system and it will output a mkinird commandline that should load the required drivers for your computer so that it will boot properly.
Example on my computer:
Code:
# sh mkinitrd_command_generator.sh
The mkinitrd command will be:
mkinitrd -c -k XXXXX -m ata_generic:pata_amd:ata_generic:mbcache:jbd:ext3 -f ext3 -r /dev/hda7
Alien Bob is offline     Reply With Quote
Old 04-06-2008, 11:12 PM   #6
nc3b
Member
 
Registered: Aug 2005
Posts: 327
Thanked: 2

Original Poster
Thumbs up

Yes, the script is great. It produced this output
Code:
mkinitrd -c -k XXXXX -m ata_generic:mptbase:mptscsih:mptspi:reiserfs -f reiserfs -r /dev/sda1
Thank you very much
nc3b is offline  
Tag This Post ,
Reply With Quote
Old 04-07-2008, 04:18 AM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 2,867
Thanked: 228
Hi,

Thanks for reporting your feedback. I'd like to see this tested on as many systems as possible ;-)

Eric
Alien Bob is offline     Reply With Quote
Old 04-08-2008, 12:05 AM   #8
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware 12.2
Posts: 1,306
Thanked: 28
Alien Bob, worked on my system as well, for the record [though my setup is definitely very ordinary].
T3slider is offline     Reply With Quote
Old 04-08-2008, 11:43 AM   #9
brianL
Senior Member
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 13.0 // Desktop: ; Slackware64 13.0; Debian "lenny"
Posts: 2,927
Blog Entries: 20
Thanked: 128
Just tried the script, got this:

Code:
mkinitrd -c -k XXXXX -m pata_via:ata_generic:mbcache:jbd:ext3 -f ext3 -r /dev/hda3
When I first installed, and changed from huge to generic, I used this to make the initrd:

Code:
mkinitrd -c -k 2.6.21.5-smp -m ext3 -f ext3 -r /dev/hda3
Now I'm curious to know what difference, if any, there would be - performance-wise - using an initrd generated by that script.
brianL is online now     Reply With Quote
Old 04-08-2008, 01:28 PM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 2,867
Thanked: 228
Wel, the script only shows a recommendation for the mkinitrd parameters to use if you have no idea what parameters you should pass. The script will examine your system and determine what kernel modules are required for the storage hardware and for the root filesystem in your computer, and it will probably show more modules than are required (for instance because some will already be compiled into the kernel).

The additional modules will not do bad things. Perhaps they will generate (harmless) module load errors when the computer boots (because the kernel refuses to load them if the driver is already compiled-in). But they will guarantee that your system will boot with any kernel that you custom-compile.

The performance of your computer will not be affected (negatively or positively).

Eric
Alien Bob is offline     Reply With Quote
Old 04-08-2008, 02:03 PM   #11
brianL
Senior Member
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 13.0 // Desktop: ; Slackware64 13.0; Debian "lenny"
Posts: 2,927
Blog Entries: 20
Thanked: 128
Thanks, Eric.
I'll use that script if I ever have to reinstall. It's things like this that - for me, anyway - make Slackware more interesting than more "user-friendly" distros.
brianL is online now     Reply With Quote
Old 04-08-2008, 11:34 PM   #12
onebuck
Guru
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 5,443
Blog Entries: 1
Thanked: 204
Hi,

Just ran the script and got;
Code:
mkinitrd -c -k XXXXX -m ata_generic:mbcache:jbd:ext3 -f ext3 -r /dev/hda3
I looked through the script. Neat and clean.
Eric, your skills for scripting amaze me.

BTW, thanks for the script. I will add it to my tool box.
onebuck is offline     Reply With Quote
Old 04-09-2008, 10:25 PM   #13
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 424
Thanked: 34
Eric,

Nice script! I tried it and got this output:

Code:
mkinitrd -c -k XXXXX -m ata_generic:pata_acpi:ata_generic:pata_acpi:mbcache:jbd:ext3 -f ext3 -r /dev/sda3
chess is online now     Reply With Quote
Old 04-10-2008, 08:47 AM   #14
multios
Member
 
Registered: Mar 2006
Location: home
Distribution: OpenBSD, PCLinuxOS, FreeBSD, Slackware
Posts: 122
Thanked: 2
Eric,
mkinitrd -c -k XXXXX -m ata_genericata_via:mbcache:jbd:ext3 -f ext3 -r /dev/hda7

Thanks!
multios is offline     Reply With Quote
Old 04-17-2008, 06:51 PM   #15
submax
LQ Newbie
 
Registered: Apr 2008
Posts: 2
Thanked: 1
@Alien Bob

your script is fantastic!!! very compliments!!!

you Know my site and in particular kernelpkg tool?
submax is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 11.0 and initrd mscole Slackware 4 10-13-2006 07:44 AM
making a linux boot disk (busybox initrd issue) win32sux Linux - Software 3 10-01-2006 09:09 PM
Kernel Panic (no initrd) after Slackware 10.1 Install kinadian Slackware 3 08-14-2006 08:37 PM
slackware 10.2, kernel 2.6.16, and initrd alphisb0t Slackware 3 03-22-2006 02:58 PM
Slack /RH dual boot initrd missing issue FuzzyTheBear Slackware 1 03-06-2003 03:10 PM


All times are GMT -5. The time now is 12:20 PM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration