LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-20-2019, 07:42 AM   #1
wigums
Member
 
Registered: Oct 2013
Location: Detroit
Distribution: slackware and raspbian
Posts: 126

Rep: Reputation: Disabled
mkinitrd script not working


the mkinitrd generator simply is not outputting a viable initdrd. it spits out a command but the commands it spits out are simply wrong for my setups. this is on multiple boxes running current. did something change along the way that ive missed? this is super frustrating.

on my desktop it would not put out a viable command but when i did the interactive mkinitrd it gave my a viable command. on my laptop this is not the case

edit:
on my desktop mkinitrd generator interactive spits out a viable initrd string but non interactive does not.... interactive or not it doesnt work on my laptop

Last edited by wigums; 01-20-2019 at 08:04 AM.
 
Old 01-20-2019, 08:50 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I gather you're on Slackware?

The mkinitrd script only needs to have the modules for your had disk / filesystem and the motherboard chipset if it matters. Once it loads /, it should have access to /lib/modules. I've seen 50 meg initrds, I just don't think it's necessary unless you've very exotic happenings on bootup.

Give us some details, including the errors that show when you boot using the dodgy ramdisk, and the commands that are used to make it. And, of course, remove /boot/initrd-tree and reinstall the mkinitrd package.
 
Old 01-20-2019, 10:21 AM   #3
wigums
Member
 
Registered: Oct 2013
Location: Detroit
Distribution: slackware and raspbian
Posts: 126

Original Poster
Rep: Reputation: Disabled
Quote:
Give us some details, including the errors that show when you boot using the dodgy ramdisk, and the commands that are used to make it. And, of course, remove /boot/initrd-tree and reinstall the mkinitrd package.
the only "error" is when i try to boot with a bad initrd .... it simply kernel panics

the command to generate an initrd is /usr/share/mkinitrd/mkinitrd_command_generator.sh

Last edited by wigums; 01-20-2019 at 10:23 AM.
 
Old 01-20-2019, 10:28 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Can you at least attempt t o show us what the output of the generator is (the interactive as well as the commandline results) and tell more about what kind of kernel panic.
Where is your root partition located? LVM? RAID? LUKS-encrypted? External USB? Exotic controller? WHat filesystem? Etc. All the simple information someone would need to give a meaningful answer.
 
Old 01-20-2019, 11:22 AM   #5
wigums
Member
 
Registered: Oct 2013
Location: Detroit
Distribution: slackware and raspbian
Posts: 126

Original Poster
Rep: Reputation: Disabled
drive is LVM/LUKS. FS is ext4 unfortunatley i cant rememeber the wrong initrd it spit out nor can i remember the kernel panic info caused by the bad initrd
i did get it working (my laptop). no idea how i did cuz it gave me different initrd examples and i got a good one. now when i run mkinitrd generator on that box thats now running i get still yet about initrd which looks more like it should...3 lines long.. i really have no idea and i cant post/paste the bad initrd lines it was putting out.

i had the same issue on my destop.. plain mkinitrd generator gave me a crap no good line but when i did the interactive immediately after the non interactive it was spot on. booted me right up no probs but again as i say i was getting 2 diff initrd commands from non interactive vs interactive..

i canrt find any logs... does te mkinitrd generator log anywhere/? if not im afraid this is as much info as i can post atm
 
Old 01-20-2019, 11:43 AM   #6
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 530

Rep: Reputation: Disabled
Do you have an /etc/mkinitrd.conf and if any lines aren't commented, what are they?

i.e., what is the output of:
Code:
grep -v '^#' /etc/mkinitrd.conf
 
Old 01-20-2019, 11:50 AM   #7
wigums
Member
 
Registered: Oct 2013
Location: Detroit
Distribution: slackware and raspbian
Posts: 126

Original Poster
Rep: Reputation: Disabled
everything is commented in /etc/mkinitrd.conf.sample
i never knew about the conf file until now. i always just ran the mkinitrd generator without it

during a fresh install how would you edit it anyway?

Last edited by wigums; 01-20-2019 at 12:00 PM.
 
Old 01-20-2019, 02:07 PM   #8
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Have you upgraded these systems from 14.2 to -current, and neglected to upgrade to the new kernel? Are you compiling your own kernels? Are kernel modules installed?
 
Old 01-20-2019, 02:37 PM   #9
wigums
Member
 
Registered: Oct 2013
Location: Detroit
Distribution: slackware and raspbian
Posts: 126

Original Poster
Rep: Reputation: Disabled
fresh current install with lvm/luks
 
Old 01-20-2019, 02:52 PM   #10
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 530

Rep: Reputation: Disabled
What did the interactive form output (the one that worked) and what was the mkinitrd_generator.sh command you ran for the variant that did not work?
 
Old 01-20-2019, 03:49 PM   #11
wigums
Member
 
Registered: Oct 2013
Location: Detroit
Distribution: slackware and raspbian
Posts: 126

Original Poster
Rep: Reputation: Disabled
tommyc7


the command that hasnt been working is simply

Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh
re: the command the interactive output theres no was i can remember it. it was 3 full screen lines
(thats adds up to a string approx 69" long LOL)
 
Old 01-20-2019, 04:11 PM   #12
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by wigums View Post
tommyc7


the command that hasnt been working is simply

Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh
re: the command the interactive output theres no was i can remember it. it was 3 full screen lines
(thats adds up to a string approx 69" long LOL)
So run the script again and post the output.
 
Old 01-20-2019, 05:59 PM   #13
wichn
LQ Newbie
 
Registered: Jan 2019
Posts: 5

Rep: Reputation: Disabled
you should run
Code:
# $(/usr/share/mkinitrd/mkinitrd_command_generator.sh)
Also, check lilo.conf(5)

Last edited by wichn; 01-20-2019 at 11:00 PM.
 
Old 01-21-2019, 05:04 AM   #14
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
If you're on Slackware, ignore that and simply run (as root)
Code:
# /sbin/mkinitrd  -c -f <your root filesystem> -r <root device>
You might want to add -m <modules> but this in mounted on /. Itonly has to get your root filesystem loaded and mounted on /, at which point it's overwritten by the root filesystem, and vanishes. You don't need the kitchen sink in it.
 
Old 01-21-2019, 05:48 AM   #15
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
As others have stated. What is the output of:
Code:
# /usr/share/mkinitrd/mkinitrd_command_generator.sh
What is the output of this?:
Code:
# /usr/share/mkinitrd/mkinitrd_command_generator.sh -h
 
  


Reply



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
sudo mkinitrd -o /boot/initrd.img-2.6.32.9 2.6.32.9 sudo: mkinitrd: command not foun vishwas181 Linux - Newbie 1 02-27-2010 01:16 AM
mkinitrd and root=LABEL not working slackuser46 Slackware 61 12-08-2008 02:35 AM
mkinitrd not working cobweb Linux - Newbie 1 02-22-2006 02:45 PM
Why 'mkinitrd' not working? chandrakanta Linux - Software 1 09-08-2004 10:54 AM

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

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