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

Thursday, June 04, 2009

permisson - binary - etc

Because I'm too lazy to rewrite this topic. So, I just copy the conversation between me and my friend about how to config permission on Linux.

09:09 me: ichsan... kalau ngatur permission spya bisa solve masalah ini, gimana ya?
2009-06-04 09:12:05 WIT DETAIL: File must be owned by the database user or root, must have no write permission for "group", and must have no permissions for "other".
Muhammad: Ubah permissionnya
09:10 chmod
me: nah iya chmod ** berapa ?
09:11 Muhammad: chmod itu terdiri atas: rwxrwxrwx. Masing2 groupnya adalah: user group other
own itu harus pake chown
chown filenya
09:14 me: gini dah
09:15 gimana cara supaya permission-nya: -rw-r-----
Muhammad: rwx itu adalah biner 111
09:16 111 artinya 7
chmod 777 file, artinya:...
?
09:17 me: kalo itu si bisa diakses siapapun
Muhammad: Nah, silahkan disesuaikan
selamat mencoba!
me: kalo rw=110 gitu?
09:18 Muhammad: ya
110 itu kan biner
me: berarti 640
gitu bukan?
Muhammad: 110 != 640 oi
110 itu artinya 6
09:19 me: iya
maksud gw kalo gw mau spt ini:
-rw-r-----
jadinya 640 bukan?
Muhammad: betul
me: yeeiyyyy
hehe gw lupa pelajaran gitu2an
:P
09:20 Muhammad: Itu penting banget di Lniux
ilmu terdasar
09:23 me: baiklah baiklah saya mengerti
09:24 Muhammad: wasurenaide ne
(don't forget)
09:25 me: insyaAllah

Saturday, May 09, 2009

Lowongan guru happy n smart

Dibutuhkan SEGERA!
Guru Matematika, FIsika, Kimia, Bahasa Inggris untuk
SD, SMP & SMU.


Persyaratan:
  • Minimum S1 berpengalaman
  • Domisili Bekasi, diutamakan Bekasi Timur dan Barat
Lamaran dikirim langsung ke:
HAPPY n SMART via pos ke:
Perum Narogong Indah Jl. Narogong Elok VIII
Blok C9 No. 10 Pengasinan Rawa lumbu Bekasi 17115.

atau via email ke:
muhammadtaufiq80@yahoo.com
telp: 95126446 - 08176662010