Unable to mount root fs and solution The error is common as soon as the compile happens on a new partition and the most common error will be when the grub/lilo configuration is manually edited by the user, it is preferred to keep the settings to the default. If you drive into error then login to the machine using single user mode and have the grub configuration edited such that the drive letter is corresponded, normally adding /dev/hda0 instead of /dev/hda on the LABEL keyword help.
2. No Init found
1. Boot computer. As soon as Grub splash screen comes up, hit up or down arrow key to stop the clock.
2. Press "c" to get the Grub command line like this: grub>
3. Type:
root (
You should get a list of valid drives. If the result fails then assume that the grub does know the details of the root partition.
4. Press the next character corresponding to the drive OR partition where your /boot directory is and then press
5. Repeat step 4 until you have completed the line so it looks like
root (hdx,y)
where x and y are correct drive (x) and partition (y) where your /boot directory is. You should know already that Grub counts drives and partitions starting with zero for the first primary partition and 4 for the first extended partition.
6. If you do not have a separate /boot partition, type:
kernel /boot/vmlin
If you do have a separate /boot partition, do not enter the /boot and instead, just
kernel /vmlin
In either case, when you hit , Grub will complete the filename, or list possible files ONLY if you have correctly entered all other information. If Grub says something like "no files found", go back and correct your error.
7. Repeat step 6 until you have a complete filename but do not press enter yet.
8. Following the kernel filename, on the same line, add ro so the filesystems will be initially mounted read only so that integrity checks may be made without adding corruption, and add information telling Grub where your top level root partition is: / so that the line looks something like this:
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=/dev/hda8
where, instead of "hda8" you have the correct drive and partition where your / partition is. If you make a mistake here, Grub will not complain. Instead, you will get the message saying there was no init found.
8a. If you want to boot in single user mode, without a graphic display, you should add the word single to the end of the line. When the line is complete, press enter.
9. If you do not have a separate /boot partition, type:
Code:
initrd /boot/initrd
If you do have a separate /boot partition, do not enter the /boot and instead, just
Code:
initrd /initrd
In either case, when you hit , Grub will complete the filename, or list possible files ONLY if you have correctly entered all other information. If Grub says something like "no files found", go back and correct your error.
10. Repeat step 9 until you have a complete filename.
11. Press "enter".
12. Finally, if the system doesn't boot automatically, type: boot and press enter.