Skip to content

Instantly share code, notes, and snippets.

@omkz
Created January 23, 2013 16:16
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save omkz/4608900 to your computer and use it in GitHub Desktop.
Save omkz/4608900 to your computer and use it in GitHub Desktop.
Memperbaiki grub rescue tanpa live cd
1. pada grub rescue>
ketik #ls
nah , setelah perintah ls akan kluar kira2 seperti ini . .
(hd0) (hd0,6) (hd0,5) (hd0,2) (hd0,1)
yang mana nih partisi File system Ubuntu nya ya?
kalo ingat sih lanjut ke langkah 2
jika tidak, gw jga lupa sebenarnya yang mana
nih cara feelling gw az ya . .
sebelum terinstal ubuntu windows saya cuma punya 2 partisi yaitu C dan D
nah dari situ,, berarti saya terjemahin
- hd0 Hardisk yang terpasang (smua partisi termasuk pada hd0) karna hardisk yg terpasang dilaptop cuma 1
- hd0,1 pasti system reserve windows 7 yang 100 Mb itu loh
- hd0,2 pasti partisi C
- hd0,5 pasti partisi D
berarti hd0,6 merupakan partisi File system Ubuntu nya.
2. langkah kedua
ketik perintah :
#grub rescue > set prefix=(hd0,6)/boot/grub
#grub rescue > set root=(hd0,6)
#grub rescue > set
#grub rescue > ls /boot
#grub rescue > insmod /boot/grub/linux.mod
#grub rescue > linux /vmlinuz root=/dev/sda6 ro
#grub rescue > initrd /initrd.img
#grub rescue > boot
yes . . .yes .. . ubuntu nya mulai nge-boot . .
tunggu ampe login dan masuk desktop ubuntu nya
3. Nah terakhir untuk membuat boot nya permanen biar "grub rescue>" tidak muncul lagi
masuk terminal
#sudo su
#masuin password
# sudo grub-install /dev/sda
#sudo update-grub
Selesai . .
@chikochoki
Copy link

Saya cuma muncul 4 partisi doang gan...

@1Firsts
Copy link

1Firsts commented Jun 10, 2018

nah itukan buat yang masih ada file linux nya, kalau linux nya udah di hapus gimana ? biar grub rescue nya hilang ... tanpa harus live cd gitu ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment