Recover GRUB after installing windows on SATA drive
Published by Iqbal_Ir 6 months, 2 weeks ago in Main category, Tools, Software & Technology, Gadget, Linux, Ubuntu, Laptop.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…!
View blog reactions
Click to Social Bookmark












































![[Spirit in everything we do]](http://blog.iqbalir.com/wp-content/themes/alphanauthilus/styles/alphanuathilus/images/logostatis.gif)
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