LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-04-2009, 08:26 AM   #1
vnykr
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Rep: Reputation: 0
SLES11 kernel is going panic when custom initrd is of ext2


using following method i created ext2 based initrd img rather than cpio based:
----------------------------------------------------
# Ramdisk Constants
RDSIZE=106496
BLKSIZE=1024
# Create an empty ramdisk image
dd if=/dev/zero of=/tmp/ramdisk.img bs=$BLKSIZE count=$RDSIZE
# Make it an ext2 mountable file system
/sbin/mke2fs -F -m 0 -b $BLKSIZE /tmp/ramdisk.img $RDSIZE

# Mount it so that we can populate
mount /tmp/ramdisk.img /mnt/initrd -t ext2 -o loop=/dev/loop0
#populate from default-initrd contents

# Finish up...
umount /mnt/initrd
----------------------------------------------------

When i use kickstart & tftp server to init the machine, kernel is going panic with following error.

"Unpacking intramfs ...<0>kernel panic -not syncing :no cpio magic"

When i populate a directory with default-initrd img contents and creates a cpio based initrd.img, machine boots up properly.

command to create cpio: (i used)
#cd <working dir>
#find . | cpio --create --format='newc' > ~/tmp/newinitrd


If i do same process for SLES10, it works in both ways.

Any idea if SLES11 kernel(default-kernel) dropped supporting ext2 based generated initrd images..??
 
  


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
Kernel Panic (no initrd) after Slackware 10.1 Install kinadian Slackware 3 08-14-2006 07:37 PM
cramfs, kernel-panic...initrd, bootsplash... Outabux Debian 3 10-26-2004 06:42 PM
initrd & kernel panic asjapulk Linux - General 2 01-13-2004 01:35 AM
Custom Kernel / No INIT / initrd? azl Linux - Newbie 2 11-01-2003 09:32 PM
initrd kernel panic gavares Linux - General 0 08-25-2003 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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