Balikin bootloader yang hilang dengan karmic

nah, saya pingin sharing sedikit tentang mengembalikan bootloader yang hilang…sebenarnya kasusnya klasik sih, biasa..format ulang Windows..nah ketika mau balikin dengan karmic itu bootloader, eh di karmic ga ada grubnya ya kan..

nah, tapi bukan berarti ga bisa, ini ternyata ada caranya sendiri..ini sy sharingkan..
1. ketik di console : sudo fdisk -l
2. lalu lihat itu partisi linux kamu dimana..klo punya saya, begini munculnya :

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x22882287

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        6374    51199123+   7  HPFS/NTFS
/dev/sda2            6375       27932   173164635    f  W95 Ext’d (LBA)
/dev/sda5            6375       16573    81923436    7  HPFS/NTFS
/dev/sda6           16574       22947    51199123+   7  HPFS/NTFS
/dev/sda7           22948       23069      979933+  82  Linux swap / Solaris
/dev/sda8           23070       27932    39062016   83  Linux

3. lalu ikuti langkah2 ini :

ubuntu@ubuntu:~$ sudo mount -t ext4 /dev/sda8 /mnt/
ubuntu@ubuntu:~$ sudo mount -t proc proc /mnt/proc
ubuntu@ubuntu:~$ sudo mount -t sysfs sys /mnt/sys/
ubuntu@ubuntu:~$ sudo mount -o bind /dev/ /mnt/dev/
ubuntu@ubuntu:~$ sudo chroot /mnt/ /bin/bash

4. command akan memperlihatkan klo km menjadi root, root@ubuntu:/#
lalu ketik ini : grub-install /dev/sda
lalu akan muncul begini :

Searching for GRUB installation directory … found: /boot/grub
Installing GRUB to /dev/sda as (hd0)…
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

5. lalu ketik : grub-install /dev/sda8

Searching for GRUB installation directory … found: /boot/grub
Installing GRUB to /dev/sda8 as (hd0,7)…
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

6. lalu ketik ini : update-grub
lalu muncul ini :

Searching for GRUB installation directory … found: /boot/grub
Searching for default file … found: /boot/grub/default
Testing for an existing GRUB menu.lst file … found: /boot/grub/menu.lst
Searching for splash image … none found, skipping …
Found kernel: /boot/vmlinuz-2.6.28-11-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst … done

7. terakhir, kita ribut yuk..!! eh tuh salah kan.. kita reboot kompinya..hehehe :p

pasti bisa..!! selamat mencoba..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s