Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 03-17-2009, 01:56 AM   #1
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Question temporary shell enviroment using initrd

Dear all

I am a new in kernel development and using Fedora 9. Sometimes a make certain changes in kernel, compile it and boot using qemu.

qemu -kernel vmlinuz-2.6.*.* -initrd initrd-2.6.*.*.img -hda /bin/true

It boot the kernel and leave me with message root can't be mounted.

I want to make modification in initrd so that, after loading kernel it drop me at shell like enviroment in qemu.( similar to what we get in 'linux rescue') . If i got any temporary shell enviroment i can test my newly modified kernel without restarting system.

Old 03-18-2009, 06:22 PM   #2
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,043
Blog Entries: 4

Rep: Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645
Although the "initial ramdisk" environment does exist to handle "that very strange state when a kernel has not quite yet booted," I am not personally aware that it offers any sort of a shell.

Nor that it necessarily ever could.

(He said, waving his hands furiously...)
Old 03-19-2009, 12:42 AM   #3
Suresh Maniyath
Registered: Feb 2009
Location: India
Distribution: Fedora, Ubuntu
Posts: 37

Rep: Reputation: 19

Busybox will be handy for you to create a Ramdisk image with shell and other basic commands. Look out for the procedure on internet for creating ramdisk images with busybox.

Best regards,
Suresh Maniyath
Old 03-19-2009, 08:24 AM   #4
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Original Poster
Rep: Reputation: 66

Thanks suresh busybox is exactly what i was looking for. Thanks a lot


initrd, modification

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
command to temporary change current shell. hocheetiong Linux - Newbie 1 04-24-2008 01:07 PM
How to create new initrd.gz (or initrd.img) file? kkpal Programming 2 12-10-2007 08:38 AM
BASH shell temporary history WingnutOne Linux - Newbie 10 09-16-2007 01:37 AM
Failed to symbolic-link boot/initrd.img-2.6.18-4-486 to initrd.img Scotteh Linux - Software 8 06-01-2007 11:24 PM
Temporary storage of password in shell script ansbaradigeidfran Programming 9 10-25-2006 09:03 AM

All times are GMT -5. The time now is 01:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration