Find the answer to your Linux question:
Results 1 to 7 of 7
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    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

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,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.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    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

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,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.
    Just remember, Semper Gumbi - always be flexible!

  6. #5
    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

  7. #6
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  8. #7
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,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.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •