LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 04-06-2008, 06:57 AM   #1
nc3b
Member
 
Registered: Aug 2005
Posts: 330

Rep: Reputation: 32
Slackware 12 initrd issue


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.
 
Old 04-06-2008, 09:41 AM   #2
nc3b
Member
 
Registered: Aug 2005
Posts: 330

Original Poster
Rep: Reputation: 32
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.
 
Old 04-06-2008, 01:15 PM   #3
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,510

Rep: Reputation: 87
I would try "lspci" and compare to the kernel options.
 
Old 04-06-2008, 02:58 PM   #4
nc3b
Member
 
Registered: Aug 2005
Posts: 330

Original Poster
Rep: Reputation: 32
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.
 
Old 04-06-2008, 03:22 PM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,112

Rep: Reputation: Disabled
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
 
Old 04-06-2008, 10:12 PM   #6
nc3b
Member
 
Registered: Aug 2005
Posts: 330

Original Poster
Rep: Reputation: 32
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
 
Old 04-07-2008, 03:18 AM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,112

Rep: Reputation: Disabled
Hi,

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

Eric
 
Old 04-07-2008, 11:05 PM   #8
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.0
Posts: 2,231

Rep: Reputation: 573Reputation: 573Reputation: 573Reputation: 573Reputation: 573Reputation: 573
Alien Bob, worked on my system as well, for the record [though my setup is definitely very ordinary].
 
Old 04-08-2008, 10:43 AM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,702
Blog Entries: 51

Rep: Reputation: 1243Reputation: 1243Reputation: 1243Reputation: 1243Reputation: 1243Reputation: 1243Reputation: 1243Reputation: 1243Reputation: 1243
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.
 
Old 04-08-2008, 12:28 PM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,112

Rep: Reputation: Disabled
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
 
Old 04-08-2008, 01:03 PM   #11
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,702
Blog Entries: 51

Rep: Reputation: 1243Reputation: 1243Reputation: 1243Reputation: 1243Reputation: 1243Reputation: 1243Reputation: 1243Reputation: 1243Reputation: 1243
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.
 
Old 04-08-2008, 10:34 PM   #12
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,883
Blog Entries: 1

Rep: Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307
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.
 
Old 04-09-2008, 09:25 PM   #13
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 728

Rep: Reputation: 168Reputation: 168
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
 
Old 04-10-2008, 07:47 AM   #14
multios
Member
 
Registered: Mar 2006
Location: home
Distribution: OpenBSD, FreeBSD, Slackware, Debian
Posts: 228

Rep: Reputation: 39
Eric,
mkinitrd -c -k XXXXX -m ata_genericata_via:mbcache:jbd:ext3 -f ext3 -r /dev/hda7

Thanks!
 
Old 04-17-2008, 05:51 PM   #15
submax
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 1
@Alien Bob

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

you Know my site and in particular kernelpkg tool?
 
  


Reply

Tags
initrd, mkinitrd, scsi, vmware


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware 11.0 and initrd mscole Slackware 4 10-13-2006 06:44 AM
making a linux boot disk (busybox initrd issue) win32sux Linux - Software 3 10-01-2006 08:09 PM
Kernel Panic (no initrd) after Slackware 10.1 Install kinadian Slackware 3 08-14-2006 07:37 PM
slackware 10.2, kernel 2.6.16, and initrd alphisb0t Slackware 3 03-22-2006 01:58 PM
Slack /RH dual boot initrd missing issue FuzzyTheBear Slackware 1 03-06-2003 02:10 PM


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