- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- LINUX initrd
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 11:40 AM
08-28-2003 11:40 AM
Current configuration:
Hardware: DL380
OS: Redhat 7.2
Kernel Release 2.4.7-10
Boot loader: GRUB
Problem: I'm trying to install a new kernel (2.4.22) and I keep getting errors when I attempt to boot. I think it is failing on the initrd.
Errors: unresolved symbol, mount error 19, pivotroot: pivot_root (/sysroot/sysroot/initrd) failed, kernel panic no init found.
I built the kernel without errors. Can someone please clue me in on what is going wrong.
I built a new initrd with the following:
mkinitrd /boot/initrd-2.4.22.img 2.4.22
Any help would be greatly appreciated.
Thanks,
---dan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 01:49 PM
08-28-2003 01:49 PM
Re: LINUX initrd
Could you send the output of mkinitrd -v and your list of modules?
TIA,
Paulo Fessel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 02:46 PM
08-28-2003 02:46 PM
Re: LINUX initrd
[root@datprod1 boot]#mkinitrd -v /boot/initrd-2.4.22.img 2.4.22
Using modules: ./kernel/drivers/block/cciss.o
Using loopback device /dev/loop0
/sbin/nash -> /tmp/initrd.lE5C4G/bin/nash
/sbin/insmod.static -> /tmp/initrd.lE5C4G/bin/insmod
`/lib/modules/2.4.22/./kernel/drivers/block/cciss.o' -> `/tmp/initrd.lE5C4G/lib/cciss.o'
Loading module cciss with options
Contents of /etc/modules.conf
[root@datprod1 boot]#cat /etc/modules.conf
#probeall bond0 eth0 eth2 bonding
#options bonding mode=1 miimon=100
alias parport_lowlevel parport_pc
alias scsi_hostadapter cciss
alias eth0 e1000
alias eth1 bcm5700
alias eth2 bcm5700
#alias bond0 bonding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 03:29 PM
08-28-2003 03:29 PM
Re: LINUX initrd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 10:05 PM
08-28-2003 10:05 PM
Re: LINUX initrd
Try to recompile the kernel again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 10:17 PM
08-28-2003 10:17 PM
Re: LINUX initrd
This usually means that the kernel's 'initrd' isn't being addressed correctly, or wasn't created with the correct file-system modules (i.e. if it's an ext3 filesystem, initrd didn't include the ext3.0 module etc. etc.).
Thus why I asked for the contents of 'grub.conf' to ensure that the initrd is being used properly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 06:18 AM
08-29-2003 06:18 AM
Re: LINUX initrd
[root@datprod1 boot]#cat /etc/grub.conf
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/cciss/c0d0p2
# initrd /initrd-version.img
#boot=/dev/cciss/c0d0
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-10enterprise)
root (hd0,0)
kernel /vmlinuz-2.4.7-10enterprise ro root=/dev/cciss/c0d0p2
initrd /initrd-2.4.7-10enterprise.img
title Red Hat Linux-smp (2.4.7-10smp)
root (hd0,0)
kernel /vmlinuz-2.4.7-10smp ro root=/dev/cciss/c0d0p2
initrd /initrd-2.4.7-10smp.img
title Red Hat Linux-up (2.4.7-10)
root (hd0,0)
kernel /vmlinuz-2.4.7-10 ro root=/dev/cciss/c0d0p2
initrd /initrd-2.4.7-10.img
title Red Hat Linux-smp (danzkernel smp)
root (hd0,0)
kernel /bzImage.danzkernel ro root=/dev/cciss/c0d0p2
initrd /initrd-2.4.7-10smp.img
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 06:21 AM
08-29-2003 06:21 AM
Re: LINUX initrd
I this is what the /etc/grub.conf looked like during boot. I also tried to boot the initrd from the kernel that I'm currently using (which is the last line of my previous post).
Again thanks for you help....
--dan
title Red Hat Linux-smp (danzkernel smp)
root (hd0,0)
kernel /bzImage.danzkernel ro root=/dev/cciss/c0d0p2
initrd /initrd-2.4.22.img
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 11:56 AM
08-29-2003 11:56 AM
Re: LINUX initrd
"--with=ext3" in your initrd.
Also, take a look at your modules.dep to see the dependency list both for cciss and ext3. If there is any, add them to the initrd with the same "--with=
Don't forget to assign the points!
[]'s
Paulo Fessel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2003 06:34 PM
08-30-2003 06:34 PM
Re: LINUX initrd
Red Hat 7.3 upgrade.
Its the latest, the greatest and the most stable.
Specifically, this could be a problem with grub.conf and it might be an issue between the kernel and 7.x
I've had problems and had to freeze the Kernel on my 7.3 box seemingly because of the way I did software mirroring.
I'm going to have to move my business to the backup box and upgrade it to 9 anyway.
It is also possible that you've had a disk error at a critical place and the initrd file is corrupted.
Does it work when you boot off the prior kernel?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 06:53 AM
09-02-2003 06:53 AM
Re: LINUX initrd
When I try the --with=efs switch to mkinitrd I get the following:
mkinitrd --with=efs3 /boot/initrd-2.4.22 2.4.22
No module efs3 found for kernel 2.4.22
--dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 07:33 AM
09-02-2003 07:33 AM
Re: LINUX initrd
* The module is called "ext3", not "efs";
* Please include the output of "lsmod" in the 2.4.7 kernel;
* Try also include the option "--with=cciss" BEFORE "--with=ext3". It's possible that the cciss is not being included into the initrd as it's not a SCSI device (from the kernel point of view) but a BLOCK device;
* Don't forget to assign the points!
HTH
Paulo Fessel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 11:02 AM
09-02-2003 11:02 AM
Re: LINUX initrd
Thanks for you help. I promise I will give points as soon as I get this resolved.
--dan
[root@datprod1 root]#mkinitrd --with=cciss --with=ext3 /boot/initrd-2.4.22 2.4.22
No module jbd found for kernel 2.4.22
[root@datprod1 root]#lsmod
Module Size Used by
ide-cd 27136 0 (autoclean)
cdrom 28736 0 (autoclean) [ide-cd]
loop 9648 0 (autoclean)
pcmcia_core 42688 0
autofs 12096 0 (autoclean) (unused)
nfs 83680 1 (autoclean)
lockd 53744 1 (autoclean) [nfs]
sunrpc 70000 1 (autoclean) [nfs lockd]
bcm5700 104416 1
e1000 67440 1
ipchains 41600 0
ext3 67728 3
jbd 44480 3 [ext3]
cciss 17712 4
sd_mod 11584 0 (unused)
scsi_mod 98512 1 [sd_mod]
[root@datprod1 root]#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 11:34 AM
09-02-2003 11:34 AM
Re: LINUX initrd
"--with=cciss --with=jbd --with=ext3"
jbd is a module that is neccessary in order to ext3 works correctly. Make sure that it gets compiled when you make your kernel.
HTH
Paulo Fessel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 11:40 AM
09-02-2003 11:40 AM
Re: LINUX initrd
#mkinitrd --with=cciss --with=jbd --with ext3 /boot/initrd-2.4.22 2.4.22
No module jbd found for kernel 2.4.22
[root@datprod1 root]#
My situation is that I need to build support for the bonding drivers, but they don't appear to be supported on my kernel. I have to run 7.2 because it is the latest OS supported by BEA Weblogic.
Thanks again for you help!
--dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 12:17 PM
09-02-2003 12:17 PM
SolutionUnless you're not using ext3 yes, jbd is neccessary. If it's not available on your system, then something hasn't been compiled correctly.
Here's part of lsmod for my firewall system, running Mandrake for PPC:
ext3 76272 3 (autoclean)
jbd 53808 3 (autoclean) [ext3]
Here you can see ext3 is loaded "on top" of jbd. As you can't copy jbd to your initrd as it doesn't exist, the ext3 can't be loaded as well and your file system will not mount.
Before rebooting, edit your fstab and change all your file system types which are "ext3" to "ext2". Then, use your original initrd and try to boot. I'm almost certain that your system will come online. If it's the case, then double-check your kernel parameters and ensure that both jbd and ext3 modules compile successfully.
To change your newly ext2 file systems converted back to ext3, make sure that jbd and ext3 are loaded and issue this command:
# tune2fs -j /dev/cciss/c0d0p2
HTH
Paulo Fessel