GRUB2 Errors

Ubuntu has changed over to GRUB2. This is not at all like the old GRUB. There is no menu.lst. Now you must use other commands to generate config.

If you should change your hard drives around, you may find your boot loader still works, but disk your initial image lives on is now known by a different device name and the boot loader is looking at the original location.

When that happens you get the error:

mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting / sys/ on root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or dirctory
Target filesystem doesn't have /sbin/init.
No init found. Try passing init= boot arg

To fix this;
  • Boot from a live disk and run fdisk -l to list your partitions
  • Reboot and hold down shift get the GRUB menu
  • Select the kernel image and hit 'e'
  • Look for the parameter /dev/sda1 and change it to /dev/sdc1
Now that you have booted your system, change GRUB2 by entering the commands;
  • sudo grub-mkdevicemap
  • grub-mkconfig --output=/boot/grub/grub.cfg
Comments