Oleh: antoniusrc | 19 Februari 2010

Install ulang GRUB di Kubuntu / Ubuntu

METODE 1

Pastikan partisi kita sudah benar, misalnya partisi linux kita di /dev/sda4 lakukan perintah:

mount | tail -1

Output mirip seperti ini:

/dev/sda4 on /media/0d104aff-ec8c-44c8-b811-92b993823444 type ext4 (rw,nosuid,nodev,uhelper=devkit)

Jalankan

ls /media/0d104aff-ec8c-44c8-b811-92b993823444/boot

Tekan TAB, maka muncul mirip seperti berikut:

config-2.6.18-3-686      initrd.img-2.6.18-3-686.bak  System.map-2.6.18-3-686
grub                     lost+found                   vmlinuz-2.6.18-3-686
initrd.img-2.6.18-3-686  memtest86+.bin

Jika tidak cocok maka ganti partisi yg lain, mungkin sda1, sda2, atau yang lain.

Lakukan instalasi grub:

sudo grub-install --root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda4

Jika ada BIOS warning ganti:

sudo grub-install --root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda4 --recheck

Ingat sesuaikan sda4 dengan partisi linux anda
Sehingga akan muncul hasil akhir:

Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0)   /dev/sda

Restart komputer anda!

METODE 2

You have to mount your root partition using the livecd:

Code:
sudo mkdir /mnt/root

Code:

sudo mount -t ext3 /dev/sda6 /mnt/root

sda6 disesuaikan dengan partisi linux anda!

Then you have to mount the proc subsystem and udev inside /mnt/root also:

Code:
sudo mount -t proc none /mnt/root/proc
Code:
sudo mount -o bind /dev /mnt/root/dev

Doing this allows grub to discover your drives. Next you have to chroot:

Code:
sudo chroot /mnt/root /bin/bash

Now that you’re chrooted into your drive as root everything should work.

Code:
sudo grub

grub> find /boot/grub/stage1

It found mine on (hd0,5)

grub>root (hd0,5)

It successfully scanned the partition and recognized the filesystem-type
Code:

grub>setup (hd0)
grub>quit

METODE 3

Gunakan berbagai software bootloader :
EasyBCD atau VistaBootPro


Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

Kategori

%d blogger menyukai ini: