Featured Posts

Wara-wiri: Xochimilco, Mexico City Edisi wara-wiri kali ini kita akan jalan-jalan ke sebuah tempat rekreasi di Mexico. Namanya Xochimilco. Xochimilco adalah sebuah kanal yang dibangun pada zaman suku Aztec ratusan tahun yang lalu. Pada...

Read more

Wara-wiri: Piramida Teotihuacan, Mexico Blog ini sudah jarang di update ya... :hehe: Untuk ke depan, mungkin lebih baik jika ditambah seri jalan-jalan. Jadi kalau ada waktu dan kesempatan, wara-wiri selama ini dan wara-wiri sebelum-sebelumnya...

Read more

Main game: Assassins Creed Revelations Bisa dibilang game Assassins Creed Revelations ini adalah game saya yang paling favorit. Selain game ini, ada game lain yang ber-genre mirip, yaitu Overlord II yang juga favorit saya. Awal saya main...

Read more

Sedikit tentang kebiasaan Jalan Kaki Saya terbiasa dengan jalan kaki dengan jarak tempuh yang cukup jauh. Tetapi sejak meninggalkan bangku kuliah, aktifitas ini sudah sangat jarang dilakukan. Terutama sejak bekerja, karena ada beberapa hal...

Read more

Browsing terenkripsi & terkompresi dengan SSH dan squid... Di berbagai kantor/perusahaan, sudah menjadi kebijakan perusahaan untuk memblokir akses internet pada alamat-alamat website yang tidak sesuai dengan kebijakan kantor. Ini memang sudah lazim dan tentunya...

Read more

  • Prev
  • Next

Recover GRUB after installing windows on SATA drive

2

Category : Gadget, Laptop, Linux, Main category, Tools, Software & Technology, Ubuntu

I am still using windows a little bit on my laptop (HP Compaq Presario V3660TU), but most of the time (about 95 %) I’m using Ubuntu Linux. I’m using windows just for task that I can’t run on Linux.

I have 3 Operating System on my laptop. First one is my Windows, 2nd is my Ubuntu 7.10 64 bit for working and the last one is my Ubuntu 7.10 64 bit also -but this is just for my trial project or just for trying a new software-. If there is something on the Ubuntu trial project, I’ll re-instal it again :) So, the main Ubuntu box is safe and secure. I do not need to re-install, re-download and reconfigure my main Ubuntu box.


Some times I need to re-install the windows. I was using Vista both 32bit version and 64 bit version. But I still not satisfied with both of them, I’m now back to using XP due to XP is still widely supported software.

After several times of re-installing windows, I was lost my GRUB because of Windows. I was searching on the web how to install GRUB again, but those step does not work for me. Maybe it’s because different drive version. To Install GRUB you must use run Ubuntu live CD and open a terminal as root.

Recovering GRUB on SATA drive, you can try this.


$ mkdir /mnt/ubuntu
$ mount /dev/sdaX [where X is the number of your linux partition] /mnt/ubuntu
$ mount -t proc none /mnt/ubuntu/proc
$ mount --bind /dev /mnt/ubuntu/dev
$ chroot /mnt/ubuntu
$ grub-install /dev/sda

It works for me…!

Comments (2)

I just did this from live cd

$ sudo mount /dev/sda1 /mnt
$ sudo grub-install –recheck –root-directory=/mnt /dev/sda

and it works for me

http://rotyyu.trunojoyo.ac.id

Thanks a lot dude. This was the only thing that worked for me.

Post a comment

Smilies

:smile: :mrgreen: :razz: :eek: :???: :wink: :cool: