Tutorial ini menjelaskan bagaimana merestore Grub setelah install Windows 7/Vista/Xp dimana sebelumnya ada dual OS yang karena sesuatu hal windowsnya di install ulang.
Metode 1
Gunakan Ubuntu 9.10 livecd
di tutorial ini kita asumsikan partisi Ubuntu adalah sdc3, dan /boot partition di sdc2
Catatan :- ganti sdc3,sdc2 dengan partisi komputer kita
- cek partisi dengan perintah di terminal : fdisk -l
Sekarang Boot up ubuntu dari livecd,Buka terminal dari aplikasi menu -> Accessories -> Terminal dan login sebagai root dengan perintah sebagai berikut :
sudo -i
mount /dev/sdc3 /mnt
mount /dev/sdc2 /mnt/boot
grub-install --root-directory=/mnt/ /dev/sdc
If you are not having “grub.cfg” file,use following contents to recreate
mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
chroot /mnt update-grub
umount /mnt/sys
umount /mnt/dev
umount /mnt/proc
exit
atau lihat yang ini
Metode 2
Gunakan GRUB for DOS
GRUB4DOS adalah universal boot loader berbasis GNU GRUB.
Untuk XP Users
copy the file grldr from grub4dos package to C:\.Edit boot.ini (hidden file) and add this line to the file:
c:\grldr=”grub4dos”
Untuk Windows7/Vista Users
Copy the file grldr,grldr.mbr to C:\.Create boot.ini file in the root directory of C:,copy and paste following into this file.
[boot loader]
timeout=0
default=c:\grldr.mbr
[operating systems]
C:\grldr.mbr=”Grub4Dos”
Now,create menu.lst in root directory,with the following content
timeout 0
default 0
title grub2
find --set-root /boot/grub/core.img
kernel /boot/grub/core.img
boot
Restart komputer dan pilih boot from Grub4Dos.Then select boot up Ubuntu in grub menu.
Once login,use this command to install grub into mbr
sudo grub-install /dev/sdc


0 comments: on "Restore Grub boot loader setelah install Windows"
Post a Comment