Pake Live Cd Linux .. terserah mo backtrack or ubuntu
- Code:
-
sudo fdisk -l
Nti muncul kek gini
- Code:
-
Device Boot Start End Blocks Id System
/dev/sda1 * 1 6502 52227283+ 7 HPFS/NTFS
/dev/sda2 6503 22352 127315094+ f W95 Ext'd (LBA)
/dev/sda3 22353 30115 62356297+ 83 Linux
/dev/sda4 30132 30401 2168775 82 Linux swap / Solaris
/dev/sda5 6503 14304 62669533+ 7 HPFS/NTFS
/dev/sda6 14305 22352 64645528+ 7 HPFS/NTFS
kalo di ketahui partisi linux nya ... langsung aja mounting ... Aq contohin partisi ku di /sda3
- Code:
-
sudo mount -t ext4 /dev/sda3 /mnt/
- Code:
-
sudo mount -t proc proc /mnt/proc/
- Code:
-
sudo mount -t sysfs sys /mnt/sys/
- Code:
-
sudo mount -o bind /dev/ /mnt/dev/
- Code:
-
sudo chroot /mnt /bin/bash
nah sekarang qta balikin Grubnya
- Code:
-
grub-install /dev/sda
- Code:
-
grub-install /dev/sda3
klo ga da pesan error berarti sukses ses ... langsung aja
- Code:
-
sudo reboot
Setelah itu kalau udah jadi jangan lupa di update grubnya
- Code:
-
sudo apt-get update-grub