Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > The Linux Kernel > [SOLVED] Kernel Panic !!!!

Forgot Password?
 The Linux Kernel   Compiling, theory, programming or other discussion about the linux kernel

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 06-16-2009   #1 (permalink)
Linux User
 
vickey_20's Avatar
 
Join Date: Mar 2009
Location: Mumbai, India
Posts: 493
[SOLVED] Kernel Panic !!!!

What I did : Moved /sbin/init to /usr/local/sbin/init intentionally , I know how to fix this using LILO but not with grub. In LILO one can simply pass the value of init=/usr/local/sbin/init but how to circumvent it through Grub. I land somewhere in init shell
__________________
Only if I could understand the man pages
Registered Linux user #492640
OS: RHEL4,5 ,RH 9,Ubuntu
vickey_20 is offline  


Old 06-17-2009   #2 (permalink)
Linux Guru
 
Rubberman's Avatar
 
Join Date: Apr 2009
Location: I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Posts: 2,662
I have to ask, why did you do that? I presume you had what seems to be a good reason, but enquiring minds, and all that...
__________________
Sometimes, real fast is almost as good as real time.
Rubberman is offline  
Old 06-17-2009   #3 (permalink)
Linux User
 
vickey_20's Avatar
 
Join Date: Mar 2009
Location: Mumbai, India
Posts: 493
i did it but now i m stuck with grub i dont know how to handle it using grub , so thought you people might help
__________________
Only if I could understand the man pages
Registered Linux user #492640
OS: RHEL4,5 ,RH 9,Ubuntu
vickey_20 is offline  
Old 06-17-2009   #4 (permalink)
Linux Guru
 
Rubberman's Avatar
 
Join Date: Apr 2009
Location: I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Posts: 2,662
Boot your liveCD or recovery disc. Login as root, mount the hard drive, and move the file back. Example (after logging in as root):
Code:
mkdir /mnt /mnt/hd1
# note that on most current systems, the root file system is on /dev/sda3
# and /boot is /dev/sda1, swap is /dev/sda2. If your / and /usr directories
# are on another device, substitute that for /dev/sda3 below.
mount /dev/sda3 /mnt/hd1
cd /mnt/hd1/usr/local/sbin
mv init /mnt/hd1/sbin
Once you have moved init back to its proper place, you can reboot the system and be back in business.
__________________
Sometimes, real fast is almost as good as real time.
Rubberman is offline  
Old 06-17-2009   #5 (permalink)
Linux User
 
vickey_20's Avatar
 
Join Date: Mar 2009
Location: Mumbai, India
Posts: 493
hey thanks but I found another better solution
When you boot form grub go in edit mode and pass the kernel the new place of init . I did some R&D and got it working.
__________________
Only if I could understand the man pages
Registered Linux user #492640
OS: RHEL4,5 ,RH 9,Ubuntu
vickey_20 is offline  
Old 06-17-2009   #6 (permalink)
Linux User
 
vickey_20's Avatar
 
Join Date: Mar 2009
Location: Mumbai, India
Posts: 493
useful link

__________________
Only if I could understand the man pages
Registered Linux user #492640
OS: RHEL4,5 ,RH 9,Ubuntu
vickey_20 is offline  
Old 06-17-2009   #7 (permalink)
Linux Guru
 
Rubberman's Avatar
 
Join Date: Apr 2009
Location: I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Posts: 2,662
Thanks. I saved that to my Linux documentation folder. Useful stuff that we often forget about.
__________________
Sometimes, real fast is almost as good as real time.
Rubberman is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:48 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2