Saturday, January 30, 2010

Ubuntu: 'No init found. Try passing init=bootarg' problem.



Today, I tried to boot into my Ubuntu Karmic Koala, but unfortunately it won't boot. I received these error messages:


-----------------------------------------------------------------
mount: mounting /dev/disk/by-uuid/********************* on /root failed: invalid argument
mount: mounting /sys on /root/sys failed: no such file or directory
mount: mounting /dev on /root/sys 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 directory
Target filesystem doesn't have /sbin/init.
No init fount. Try passing init= bootarg.

BusyBox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu7) built in shell (ash)
Enter 'help' for a list of build in commands

(initramfs)
-----------------------------------------------------------------


The ******* is my UUID no for sda3. What I did was:

Boot into Live-CD, open terminal and run:


sudo fsck /dev/sda3
sudo fsck /dev/sda4
Where my /Root is in sda3, and /Home is in sda4. There was a few issues while fsck checking, and I just press 'Y' for yes, for it to fix the problems. Hehe, maybe today is my lucky day. Normally it takes days to fix Ubuntu's problems. :D

Sunday, January 10, 2010

Letakkan jDownloader pada launcher panel.



Akhirnya, setelah sekian lama menggunakan cara 'biasa' untuk launch jDownloader, akhirnya hari ini dapat juga aku setkan shortcut kat launcher panel dengan jayanya.

* 'biasa' ialah dengan right klik pada fail jDownloader.jar dan pilih 'open with java runtime...'

Apa yang aku lakukan ialah:

tukar ownnership dengan lakukan arahan2 bawah ni pada terminal:

sudo chown -R $USER:$USER /home/username/JDownloader
sudo chmod -R +r /home/username/JDownloader

kemudian, untuk jadikan fail JDownloader.jar executable:

sudo chmod +x /home/username/JDownloader/JDownloader.jar

Untuk bolehkan jDownloader boleh launch dari terminal, lakukan:

sudo touch /usr/local/bin/JDownloader
sudo nano /usr/local/bin/JDownloader

Ini membolehkan fail itu dibuka dan boleh diedit dalam terminal, kemudian paste berikut:

#! /bin/sh
java -jar /home/username/JDownloader/JDownloader.jar

Untuk save dan tutup fail itu, tekan CTRL + X, kemudian Y, dan seterusnya ENTER.


Seterusnya, untuk masukkan jDownloader dalam menu 'Applications', lakukan:

sudo nano /usr/share/applications/JDownloader.desktop


Paste berikut:

[Desktop Entry]
Encoding=UTF-8
Name=JDownloader
Comment=Download Manager
Exec=java -jar /home/username/JDownloader/JDownloader.jar
Icon=/home/username/JDownloader/JDownloader.png
Terminal=false
Type=Application
Categories=GNOME;Network;
StartupNotify=True

Sekarang, JDownloader sudah ada dalam menu, dan boleh juga letakkannya dalam launcher panel dengan klik kanan, dan pilih 'add this launcher to panel'.

Selesai...  :D

* /home/username/JDownloader ialah folder dimana terletaknya fail2 jDownloader.

Thursday, January 7, 2010

Ubuntu 9.10 can't boot.



Hi, recently I received Ubuntu 9.10 CD Desktop Edition. During the install, I deleted all partitions of Ubuntu 9.04 and do fresh install of 9.10. Everything was okay, installed succesfully, but when it comes to reboot, below message appeared:

Common problems:
- Boot args (cat / proc / cmdline)
- Check rootdelay = (did the system wait long enough?)
- Check root = (did the system wait for the right device?)
- Missing modlues (cat / proc / modules; ls / dev)
ALERT! / dev / disk / by-uuid / xxxxxxxxxxxxxxxxxxxxxxxxx does not exists.
Dropping to a shell!

BusyBox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu7) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

What I did was:

In the grub menu, press "e" to edit the kernel boot string',

from

recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 1751283b-b905-49fb-bc81-93e2e561bfd9
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=1751283b-b905-49fb-bc81-93e2e561bfd9 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic

change to:

recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 1751283b-b905-49fb-bc81-93e2e561bfd9
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=1751283b-b905-49fb-bc81-93e2e561bfd9 ro quiet splash all_generic_ide floppy=off irqpoll pci=nomsi
initrd /boot/initrd.img-2.6.31-14-generic


Then, "ctrl+x" to boot and I can boot into Ubuntu 9.10 happily...


To change that permanently, we have to edit the grub file.


sudo gedit /etc/default/grub

Add the last line, like this:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_CMDLINE_LINUX="all_generic_ide floppy=off irqpoll pci=nomsi"

 Then run update-grub2


sudo update-grub2

Wednesday, January 6, 2010

My first post in this Blog.



Yeah, I managed to find time to get this blog created. Well done to me.

I'm trying to write anything, try to write some important notes for me to refer later.


dobbod
Shah Alam