I'm so new to Linux and suddenly found the error message appear when i boot after i click install ubuntu

Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,2)
  • sorry Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,2) not (0,0) – Gerraour058 Oct 6 '14 at 13:20
  • I have got kernel panic when I was trying to install ubuntu from ntfs pendrive. Solution was fat, but I don't know it will be right in your issue. – EdiD Oct 6 '14 at 13:31

Same thing happened to me also, here's how to get it back:

First, try to boot in recovery mode:
Follow the instructions in this post.

If you manage to get to the root prompt where you can type commands, things are looking good. This should make your system bootable again:

update-initramfs -u  

If you cannot get a root prompt at all, then get a LiveCD (the cd / usb key you used to install ubuntu should work) and boot from it. Then you have a useable system from which you can access the broken one:
Follow dilip's instructions in this post

| improve this answer | |
  • 5
    To generate initrd for a particular kernel version (e.g. update-initramfs -u -k – Mukesh Chapagain Mar 27 '15 at 5:17
  • 5
    To list out all kernel versions in the system: ls -al /usr/src – Mukesh Chapagain May 25 '15 at 12:58

Maybe the partition /boot has no space.

In the grub, select a previous kernel linux-image, if you have linux-image-22 try 21. after you enter, go to /boot and remove the oldest kernel images.

#apt-get remove linux-image-XXX

reboot the system. good lucky!

| improve this answer | |
  • I don't think that's what's happening here. The error clearly talks aboutr the root fs . While /boot might indeed fill up, that usually only happens when you have it as a small partition (often in an LVM setup). For most normal Linux uses, /boot is just part of /... So if /boot would be full, so would be / itself. – jawtheshark Aug 31 '16 at 13:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.