LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 01-05-2007, 01:38 AM   #1
pankajtakawale
LQ Newbie
 
Registered: Oct 2003
Location: INDIA-PUNE
Posts: 7

Rep: Reputation: 0
customize initrd to boot it from network


Im trying to create a customized initrd image for
either recovery or installing OS on bare-metal
machine.

I want to customize initrd so that I can run my
application once vmlinuz loads initrd. (similar to dos
booting - dos runs autoexec.bat)

I followed following steps, but could not succeede:-

- downloaded & built linux 2.4 kernel source code.
- Built initrd using mkinitrd.

Now I want to customize initrd - so that i can modify
linuxrc script inside it to run my custom application
once initrd gets loaded.

To modify initrd - i tried mounting initrd image
at /mnt/initrd folder,
but received error

[root@rhel40-junk pt]# mount initrd /mnt/initrd -t
ext2 -o
loop=/dev/loop0
mount: wrong fs type, bad option, bad superblock on
/dev/loop0,
or too many mounted file systems
(could this be the IDE device where you in fact
use
ide-scsi so that sr0 or sda or so is needed?)

I also tried network booting machine with built
bzImage & initrd, but
receives error:

Kernel panic: VFS: Unable to mount root fs on 08:01

- Then I searched for ready to download initrd
recovery images on net:-

when i try to mount the initrd image downloaded from
net
ftp.software.ibm.com//software/server/hmc/network/v61/
It does not give me errors.


Please advice.


Pankaj.
 
Old 01-05-2007, 01:43 AM   #2
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
I think mkinitrd no longer creates a compressed ext2, I think it's a cpio archive now.
 
Old 01-05-2007, 01:44 AM   #3
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
Quote:
[root@rhel40-junk pt]# mount initrd /mnt/initrd -t ext2 -o loop=/dev/loop0
mount: wrong fs type, bad option, bad superblock on /dev/loop0
Check that initrd is not compressed (file initrd). I just tried, and this mounted my old 2.4 initrd:

mount /boot/initrd-2.4 /mnt/hd -o loop
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
network install & initrd help please! Mr_C Slackware 2 05-15-2007 04:42 AM
Boot without initrd 3saul Linux - Software 3 11-08-2005 12:13 AM
SCSI boot without initrd spencerbray Linux - General 1 01-15-2005 07:29 AM
SCSI boot without initrd spencerbray Linux - Newbie 1 01-15-2005 06:48 AM
needs initrd.img for network installation? linuxozone Fedora - Installation 0 06-21-2004 09:27 AM


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