Tuesday, November 30, 2010

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

I've been experiencing a lot of problems with Linux... I've used Fedora Core 13, Ubuntu 10.04 LTS but I always get some applications crashing on me, updates going wrong, ABRT on a roll all the time... Maybe it's just me not understanding everything and messing it up for myself. Yeah, maybe.

The worst thing, I just encountered it a few hours earlier. Update Manager told me there are some updates available so as usual, I clicked the Install Updates button. But later on, it gave me some error and that I have to reboot. So I did. A black screen surprised me with a single line of horror :
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block (0,0)
Now I can't boot into my OS anymore. Right, just what I needed. So I used another PC, searched Google for answers and found one that worked for me. From what I read, this error can be caused by a lot of things. I have no idea what caused it but I'm pretty sure that it has something to do with the Update Manager not being able to finish its installation of the new updates.

Anyway, I thought I won't be able to boot into my OS anymore but that's only because I didn't know about Grub. Now you see how stupid I am. :D If there's anyone else who need to know, here are the steps into loading Grub.
  1. Turn on your PC.
  2. Hold down the SHIFT key while it's booting.
  3. After a while, you should see something like "Grub Loading."
  4. After that screen, you will see another screen which gives you a list of your kernel versions. You can select which one you want to use.
From the error itself, you would know that there is a problem with kernel. It's panicking or something... Yeah I remember the Update Manager is saying that there are some available updates to my kernel. So when I loaded Grub, I chose an earlier version of my kernel. Then voila, I was able to boot into my OS again.

The problem is still there though. I didn't fix it at all. I'm just using an older version of my kernel which previously worked for me without that kind of problem.

What I did afterwards is to install Ubuntu Tweak, and uninstall the latest kernel version that I have -- because that's the one causing the problem. I found the instructions on how to use Ubuntu Tweak from here. It's pretty simple actually.
  1. Select "Package Cleaner" from the menu on the left side of the window.
  2. Click the button "Clean Kernel" on the right side.
  3. Press the "Unlock" button at the lower right part, then enter your password. (This is pretty much like "sudo", I think.)
  4. You should see a list of kernel images and headers installed in your PC. Tick the check boxes of the ones you wish to remove. Thankfully, the kernel that you're currently using is not listed to avoid any accidents.
  5. Press the "Cleanup" button at the lower right to remove the selected kernel images and headers.
After uninstalling the problematic latest version of kernel, I reboot my PC and it automatically boot into the new latest version of kernel that I have. I'm still monitoring if there are any other damages made to my system, but so far, all good. ^__^

Tuesday, November 16, 2010

Install SQL Developer on Ubuntu 10.04 LTS

I have installed SQL Developer multiple times on Ubuntu, Fedora.. etc. and 90% of the time I fail. Maybe it's just because I'm too stupid to use Unix... but anyway, here are the steps that I followed to finally succeed.

1. Install JRE.
2. Go to the SQL Developer downloads page.
3. Download the "Oracle SQL Developer for other platforms (This zip does not include a JDK)".
4. Unpackthe zip file to some directory.
5. Run sqldeveloper.sh

Yeah.. it worked like a charm for me. No errors.

If you encounter some problems... it might be a problem with your JRE installation.

Friday, November 12, 2010

[Ubuntu 10.04 LTS] How to make SSH faster to execute

Maybe you've noticed that doing a SSH seems to be really slow... If you're having this problem, try the following solution.

  1. Execute this command :
    gedit /etc/ssh/ssh_config
  2. Comment out the following lines :
    # GSSAPIAuthentication yes
    # GSSAPIDelegateCredentials no
  3. Save the file
  4. Try it again! :)
Works for me every time!