LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-17-2015, 12:53 PM   #16
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434

How is it not simpler to avoid a step entirely? Initrd is a workaround and by definition adding something not required is more complex than just solving the issue up front, especially in this case where we are talking about simple filesystem support. Why would anyone ever wish to blacklist a filesystem? How would it ever conflict with anything? I might be convinced that an initrd used in the case of some problematic specific hardware might be AS GOOD a solution as hard-wired into the kernel, but with the exception that I noted of encryption, I am aware of no situation in which it is superior or required.
 
Old 01-17-2015, 06:38 PM   #17
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by enorbet View Post
I am wondering why if, as it appears, that the only reason you "require" an initrd is for ext4 support, you would choose to add such complexity when simply enabling the needed modules at kernel level solves all these issues? Granted it takes longer to rebuild a kernel than to run mkinitrd but once it's done you never have to do it again, unlike mkinitrd... and the bonus is you have a simpler, more reliable system.
If I don't change my kernel, I don't need to re-run mkinitrd either.
 
Old 01-17-2015, 06:48 PM   #18
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
One more thought - reverse the order of the lilo stanzas, put stock first and generic second, so they install to different locations in the boot record. Maybe even try adding a third stanza with a different initrd so that it will also reside in a different location on disk.

I have never had a lilo problem with or without initrd that could not be resolved, so I am very curious about this one!

Could you also provide a but more info on the drive, mfgr, partition scheme, etc. and on the machine itself.

The output of ls -l /boot too.

Last edited by astrogeek; 01-17-2015 at 06:49 PM.
 
Old 01-17-2015, 08:20 PM   #19
bandrami
LQ Newbie
 
Registered: Nov 2013
Location: Mumbai
Distribution: Slackware, GUIX, NixOS
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by enorbet View Post
I am wondering why if, as it appears, that the only reason you "require" an initrd is for ext4 support, you would choose to add such complexity when simply enabling the needed modules at kernel level solves all these issues? Granted it takes longer to rebuild a kernel than to run mkinitrd but once it's done you never have to do it again, unlike mkinitrd... and the bonus is you have a simpler, more reliable system.
This started with my trying to boot off an encrypted LVM, like I usually do when I put Slackware on a laptop. In attempting to isolate the problem I found I got the same error by just attempting to boot a generic kernel off a plain MBR partition with an initrd on this hardware. If I'm on plain partitions I generally don't use an initrd.
 
Old 01-17-2015, 08:25 PM   #20
bandrami
LQ Newbie
 
Registered: Nov 2013
Location: Mumbai
Distribution: Slackware, GUIX, NixOS
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
I fail to see what makes a system that doesn't use an initrd simpler and more reliable. What's sure instead is that having a built-in driver prevents to blacklist it, but you could need to avoid that a device be held by the wrong driver. Bear in mind that some devices can be claimed by several drivers, and it's good to be able to choose which one will be used. But of course that can need to provide the modules in an initrd.
For that matter, in production machines I generally don't use modules at all except for DRM and audio, and that's only because both of those really "want" to be modules (which I find irritating). On a new Slackware install I'm usually only running the stock kernel long enough to boot, download the latest stable branch, and build it. So if I can fix this, I'll only actually be using the initrd to unlock the LUKS partition in the long term.

And, now that I say that, I do recall there's a built-in initrd option, which I may take a look at, though IIRC that's mostly contemplated for embedded systems and it may not meet my needs. (EDIT: now I remember: if it hasn't changed since 2.X, you can't pivot_root out of it.)

Last edited by bandrami; 01-17-2015 at 08:31 PM.
 
Old 01-17-2015, 08:40 PM   #21
slugman
Member
 
Registered: Jun 2010
Location: AZ
Distribution: Slackware
Posts: 106

Rep: Reputation: 1
Haven't had a chance to inspect your lilo configuration, however a noteworthy point I need to mention first: you can capture the contents of the kernel panic/kernel oops/kernel dump via a serial cable console (utilizing uucp/putty).

There are usb-serial devices, however they can be problematic. I don't have any experience using those devices in linux, but I do recall them being especially problematic in windows (I had a ton of driver issues).
 
Old 01-17-2015, 09:19 PM   #22
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Quote:
Originally Posted by bandrami View Post
This started with my trying to boot off an encrypted LVM, like I usually do when I put Slackware on a laptop. In attempting to isolate the problem I found I got the same error by just attempting to boot a generic kernel off a plain MBR partition with an initrd on this hardware. If I'm on plain partitions I generally don't use an initrd.
Understood. Thank you for the clarification.
 
Old 01-17-2015, 09:56 PM   #23
bandrami
LQ Newbie
 
Registered: Nov 2013
Location: Mumbai
Distribution: Slackware, GUIX, NixOS
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by slugman View Post
Haven't had a chance to inspect your lilo configuration, however a noteworthy point I need to mention first: you can capture the contents of the kernel panic/kernel oops/kernel dump via a serial cable console (utilizing uucp/putty).

There are usb-serial devices, however they can be problematic. I don't have any experience using those devices in linux, but I do recall them being especially problematic in windows (I had a ton of driver issues).
"Problematic" doesn't even begin to cover it (I do a lot of serial port programming for the lab I work at). ttyUSB gets really hairy, and anyways the USB stack isn't up at this point. Thanks, though!
 
Old 01-17-2015, 11:08 PM   #24
slugman
Member
 
Registered: Jun 2010
Location: AZ
Distribution: Slackware
Posts: 106

Rep: Reputation: 1
Bandrami,

You mentioned you can succesfully load the huge kernel. A VFS related error.. have you ever at any point been able to use the generic kernel on this system w/ a initrd?

I'm asking because my guess would be that you are missing the module for the storage controller in your initrd. That is generally the reason you would use an initrd in the first place, as it is common practice to recompile your kernel with the drivers your system requires.

Can you do me a favor, load the huge kernel, and run (as root):

lspci -vvv | grep modules

lspci -vvv | grep driver

and provide the output?

Also, you can load the usb stack by including the following modules in the initrd:
ehci-hcd
uhci-hcd
usb-storage

If you can borrow a serial cable or usb adapter from your work, it would be worth it to see the exact kernel dump you have on screen.

Diego

Last edited by slugman; 01-17-2015 at 11:11 PM.
 
Old 01-18-2015, 02:50 AM   #25
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
The OP stated that the same initrd booted just fine using grub2 on the same machine.
 
Old 01-18-2015, 03:34 AM   #26
slugman
Member
 
Registered: Jun 2010
Location: AZ
Distribution: Slackware
Posts: 106

Rep: Reputation: 1
Richard I don't know how I missed that, I should've looked at the first post more carefully. Thanks.

My previous statement made sense before the grub2 info.

Since you're installing lilo in the mbr, maybe the mbr is corrupt. Try clearing out the mbr via dd and then installing the initrd by running lilo:

you may want to back mbr first:
Quote:
dd if=/dev/sda of=/path/mbr-backup bs=512 count=1
overwrite current mbr w/ zeros:
Quote:
dd if=/dev/zero of=/dev/sda bs=512 count=1
then run lilo

worth a shot in my opinion. I'm trying to think of the major differences that distinguish grub and lilo. Obviously there is a functionality within lilo that isn't jiving with your initrd that needs to be narrowd down.
 
Old 01-18-2015, 04:48 AM   #27
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by slugman View Post
overwrite current mbr w/ zeros:
Code:
dd if=/dev/zero of=/dev/sda bs=512 count=1

DANGER!! WILL ROBINSON DANGER!! *waves arms around frantically*
Do that and you'll also wipe out the partition table!
 
1 members found this post helpful.
Old 01-18-2015, 07:42 AM   #28
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Maybe using the large-memory option will fix things
 
Old 01-18-2015, 01:35 PM   #29
slugman
Member
 
Registered: Jun 2010
Location: AZ
Distribution: Slackware
Posts: 106

Rep: Reputation: 1
Jesus, that is what I get for posting right before I go to bed! Thanks Gazl, it should read like this

dd if=/dev/zero of=/dev/sda bs=446 count=1

Quote:
To erase the MBR ... only the first 446 bytes are zeroed because the rest of the data contains the partition table
https://wiki.archlinux.org/index.php/Master_Boot_Record

Last edited by slugman; 01-18-2015 at 01:38 PM.
 
  


Reply

Tags
boot, initrd, kernel, lilo



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
WHen I rebooted my laptop it is stuck at "initrd /boot/initrd.img Shadowmeph Linux - Newbie 2 03-07-2014 03:03 PM
one initrd for each lilo entry? metageek Slackware 4 02-18-2012 11:35 AM
[SOLVED] Edit lilo.conf, run /sbin/lilo, but lilo won't take changes lukameen Slackware 2 02-10-2012 12:10 PM
need help with initrd in lilo.conf hapter Linux - General 2 02-15-2006 07:36 AM
lilo / initrd stuff Dr Croubie Linux - General 1 06-25-2005 03:37 AM

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

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