LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 03-17-2009, 02:56 AM   #1
vishesh
Member
 
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.

Thanks
 
Old 03-18-2009, 07:22 PM   #2
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,455

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
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, 01:42 AM   #3
Suresh Maniyath
Member
 
Registered: Feb 2009
Location: India
Distribution: Fedora, Ubuntu
Posts: 37

Rep: Reputation: 19
Busybox

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, 09:24 AM   #4
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Original Poster
Rep: Reputation: 66
Thanks

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


Reply

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


All times are GMT -5. The time now is 06:18 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration