LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-29-2003, 04:53 PM   #1
azornoz
Member
 
Registered: Apr 2003
Posts: 52

Rep: Reputation: 15
Unhappy Renumbered Partitions->kernel Panic No Init...


Facts: hda1 ntfs primary
hda5 ntfs (logical in ext.)
hda6 fat "
hda7 fat "

I removed hda6 to install linux (partitions renumbered):
hda1 ntfs
hda5 ntfs
hda6 fat
hda7 ext3 (/) mdk
hda8 swap
hda9 ext3 (home) mdk

Then I removed hda6 (fat) to install another linux flavour (partitions renumbered again-normal):
hda1 ntfs
hda5 ntfs
hda6 ext3 (/) mdk
hda7 swap
hda8 ext3 (home) mdk
hda9 ext3 (all in one) rh

Now after chaging menu.lst with the proper changes in kernel and root I got: INIT NOT FOUND, TRY PASS INIT= OPTION TO KERNEL when trying to boot mdk.
Now I know there is internal reference to the partition numbers where the system was.

Could please anybody tell me if there is a easy way to fix it up?
thanks, never happened before.
 
Old 04-29-2003, 07:33 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
When you move partitions around (or renumber them) you have to change you bootloader (either lilo or grub) to tell it where / is now located. You also have to change /etc/fstab to tell where all of the partition mountpoints are.
 
Old 04-30-2003, 04:30 AM   #3
azornoz
Member
 
Registered: Apr 2003
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks for replaying.
I've updated fstab:
before after
/ hda7 hda6
home hda9 hda8
var hd10 hda9
swap hda8 hda7

I updated menu.lst :
kernel (hd0,5)/boot/vmlinuz root=/dev/hda8 init=/dev/hda6 mount=devfs acpi=off vga=788
initrd (hd0,5)/boot/initrd.img

Still getting these errors:
pivotroot: pivot_root(/sysroot, /sysroot/initrd) failed: 2
Remounting devfs at correct place if necessary
kernel panic: No init found.try passing init= option to kernel

If I try booting without initrd.img (I hate initrd.img always comment this line) get these ones:

Instead of pivotroot:
mount-devfs-fs():unable to mount devfs, err=-2
warnig: unable to open an initial console
kernel panic: no init ...

I appended init=/dev/hda6 to no avail like kernel options.
If I mount the partitions from the other linux everything seems fine.
thanks for your help.
Can I do anything more to fix it up?
------------------------
why newbie people like me never think the right way?
I've read fstab hundreds of times just because I like to mount devices from command line (I do not like supermount or automount or ...)
 
Old 04-30-2003, 05:11 AM   #4
azornoz
Member
 
Registered: Apr 2003
Posts: 52

Original Poster
Rep: Reputation: 15
ok everything fine now.
LINUX IS BOOTING.

In menu.lst there was an error ( mine of course). The kernel option root must say the root / and this is hda6 not hda8 that is /home.
Change the root option and linux is working ok.
thanks a lot jailbait (song of ted nuget, isn't it).
VIVA LINUX
THE BEST OS IN THE WORLD
FOREVER
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic: no init found. Try passing init= option to kernel. ericb Slackware - Installation 3 10-20-2005 11:03 AM
Kernel panic: No init found. Try passing init= option to kernel ridak Fedora 0 07-14-2004 07:23 PM
Kernel Panic: No Init Found Try Passing Init=option To Kernel Bakame Mandriva 7 03-14-2004 02:37 PM
Kernel Panic: No Init Found Try Passing Init=option To Kernel Bakame Linux - Newbie 4 03-10-2004 06:08 AM
Compiled own kernel and got: Kernel panic: No init found. Try passing init= option to fbl Linux - General 12 01-14-2003 03:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:57 AM.

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
Open Source Consulting | Domain Registration