Saturday, June 06, 2009

Kernel panic-not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Last afternoon, I asked my friend to reinstall my ubuntu with Ubuntu9.04..
Installation process was succeed... but when I try to re login to this laptop, I've got an error information that make me being panic successfully... which is:
Kernel panic-not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Whuaaa... I could't enter to ubuntu desktop, I could't enter to bash terminal. I could't do anything, just press F12 or Esc, F2 then nothing. What should I do??
I ask my friend about this error, and he couldn't do anything, because Internet was out of reach. How about me? I also couldn't access internet without this laptop. Then he tell me to use Live CD, so I can access internet and try to fix the problem.
Thanks God, I bring my flash disk which Kubuntu Live OS already placed in.

Okay, I can access internet successfully, I have a chance to repair the problem with that Kubuntu. Found many variation of solution on google (fiuuh I love google =P).
I confused. But, I have found one BIG clue... that I shoud do "chroot", "apt-get update", and "apt-get upgrade".

I see on Nautilus, that there still 3 partition of hardisk. Of course one of them is filesystem partition.
Then from one of ubuntuforum( I'm sorry, I do really forget to save the link), it told me to do mounting filesystem, just by click that partition on Nautilus.

So, what I did is:
  • click filesytem partition, so it mounted to /media/disk (depend on system)
  • do chroot on terminal by typing:
    #sudo chroot /media/disk
  • Do apt-get update
    #sudo apt-get update
The last step, working on the middle, but suddenly stopped and raise an error:
Could not set non-blocking flag Bad file descriptor
E: Method http has died unexpectedly!

Whuaaa.... whats wrong?
Then I chat to my friend who I know that he really smart and familiar witu ubuntu. He said, that mounting process I've done haven't completed yet. I should did these three steps before do chroot:

# sudo mount -t proc proc /media/disk/proc
# sudo mount -t sysfs sysfs /media/disk/sys
# sudo mount -o bind /dev /media/disk/dev

So, what I've done are:
  • click filesytem partition, so it mounted to /media/disk
  • finisihing mounting:
    # sudo mount -t proc proc /media/disk/proc
    # sudo mount -t sysfs sysfs /media/disk/sys
    # sudo mount -o bind /dev /media/disk/dev
  • do chroot on terminal by typing:
    #sudo chroot /media/disk
  • Do apt-get update
    #sudo apt-get update
    Yeiiyyy it worked... apt-get update run smoothly
  • Continue to do apt-get upgrade
    #sudo apt-get upgrade
    Yes it also worked... ALhamdulillah
Then I restarted the PC, and still got error but with different context which is:
/sbin/unsplash_write: not found
and ask me to insert command on initrampfs shell... that I have no any idea what is that..

Then I remember, that one of solution on ubuntuforum told me to do update-initramfs.
So, I back to use Live OS ... do this command:
  • click filesytem partition, so it mounted to /media/disk
  • finisihing mounting:
    # sudo mount -t proc proc /media/disk/proc
    # sudo mount -t sysfs sysfs /media/disk/sys
    # sudo mount -o bind /dev /media/disk/dev
  • do chroot on terminal by typing:
    #sudo chroot /media/disk
  • update inintramfs
    #update-initramfs -c
Restart the PC, and Alhamdulillah I can enter into ununtu desktop successfully..

So, the steps are:
  • click filesytem partition, so it mounted to /media/disk
  • finisihing mounting:
    # sudo mount -t proc proc /media/disk/proc
    # sudo mount -t sysfs sysfs /media/disk/sys
    # sudo mount -o bind /dev /media/disk/dev
  • do chroot on terminal by typing:
    #sudo chroot /media/disk
  • update inintramfs
    #update-initramfs -c
  • Do apt-get update
    #sudo apt-get update
    Yeiiyyy it worked... apt-get update run smoothly
  • Continue to do apt-get upgrade
    #sudo apt-get upgrade
Thanks to Ichsan, Iyang, Google ans also Allah S.W.T

3 comments: