After adding partitions "Kernel Panic: No Init found. Try passing init=option to kernel"
I have an 80G harddrive
Decided to dual boot RH9 with Windows 2000 Professional
Partitioned 4G for Windows 2000 (4G to cater for legacy bios-the "first-1024-cylinder" issue)
Installed Windows 2000
Partitioned 5G for RH Linux 9
Installed RH Linux 9 successfully
Had a successful Dual boot system...
The problem arose when I decided to make use of the unpartitioned space. I created 2 more partitions (under Windows). One for Windows Program Files and Windows data; and the other to share files between the two OS's (FAT not FAT32).
When I boot, Grub sees both OS's, I can select and boot Windows successfully, the problem is when booting Linux, I get the error mentioned above. These are some of the messages leading to the error:
When I removed the new partitions IT BOOTED FINE!!! but when I tried replacing those partitions, I had the same problem.
Mounting /proc filesystem
Creating block devices
Creating root device
mkrootdev: label / not found
Mounting root filesystem
Mount: error: 2 mounting ext3
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed:2
Unmount /initrd/proc failed:2
Freeing unused kernel memory: 116K freed
Kernel panic:No init found. Try passing init option to kernel
I was as comprehensive as I could be.
I'm jes a newbie. Be kind please. If you help I would really appreciate it.
Thanx for your time!!
Re: After adding partitions "Kernel Panic: No Init found. Try passing init=option to kernel"
This is the part that I don't get. Could you possibly post your before and after partition table? In Linux, do 'fdisk -l' (that's "fdisk"<space><lower case "L">) to "list" your partitions. If you can't boot your Linux, you should be able to use your install CD in "rescue" mode or something similar.
Originally Posted by tinux
Except for the fact that removing the partitions fixed the problem, I would say the problem is here: mkrootdev: label / not found
Redhat likes to use "labels" for partitions, where, for example, /dev/hda1 is "labelled" /windows, /devhda2 is labelled /, hda3 is labelled /home and so on, while other distros just call a partition by its /dev/hda2 format.
When you boot and get the menu showing a choice of Redhat or Windows, press an up/down arrow key and then highlight the Redhat selection. Press 'e' for edit and you will see the "script" for booting Redhat. There should be a line something like this:
If you highlight that line and press 'e' to edit it, you can change that line to:
kernel vmlinuz-4.5.6 root=LABEL=/
Of course, you will put the correct partition number for your system where I show hda2. After the change, press <enter> to accept and then 'b' to boot. If it boots, there's your problem (do this with the partitions, like you want it). This change is not permanent, so you won't screw up anything. If it works, we can make it permanent from within Linux.
kernel vmlinuz-4.5.6 root=/dev/hda2