English version : > Reinstalling Grub Boot Loader without reinstalling Linux

Diposkan oleh oz family Saturday, January 15, 2011

Sometimes you may need to reinstall Windows on your computer.
If you have a dual boot windows / linux, the windows will reinstall the original MBR (from windows) and Grub will be uninstalled.

This tutorial explains how to reinstall grub without reinstalling linux.
To do this, you need to bring your live Linux installation CD (like Ubuntu).

Boot from the CD and choose the "Start or Install Ubuntu" option.
Open a Terminal ( Applications >> Accessories >> Terminal ), and type:

sudo grub

then type:
find /boot/grub/stage1
so Grub can automatically search on what partition Linux is installed.
The answer is obtained in the form:
hd(X,Y)

where X represents the number of the hard drive and Y the partition number.

You must specify at what is the linux partition, to do this type:
root (hdX,Y)
example: root(hd0,2)

now to install grub you have only to type:
setup (hdX)
example: setup (hd0)
grub now is reinstalled, to quit grub type:
quit
then restart your computer. 

  1. Yudistira Says:
  2. Gan, Saya mau ndaftar di http://indonesianbacktrack.or.id
    Tapi pertanyaan keamananya begini:

    Lm1vZGVsIHNtYWxsDQouY29kZQ0Kb3JnIDEwMGgNCm11bGFpOg0Kam1wIHByb3Nlcw0Ka2FsIGRiIDEzLDEwLE1hc3Vra2
    FuIFBhc3N3b3JkIDogJA0Ka2FsMiBkYiAxMCxXZWxjb21lIEd1eXMhJA0KcHJvc2VzIDogbW92IGFoLCAwOWgNCmxlYSBk
    eCwga2FsDQppbnQgMjFoDQptb3YgYWgsIDA3aA0KaW50IDIxaA0KY21wIGFsLCBZDQpqZSBrb2RlMQ0Kam5lIHByb3Nlcw
    0KaW50IDIwaA0Ka29kZTE6DQptb3YgYWgsIDAyaA0KbW92IGRsLCAqDQppbnQgMjFoDQptb3YgYWgsIDA3aA0KaW50IDIx
    aA0KY21wIGFsLCBPDQpqZSBrb2RlMg0Kam5lIHByb3Nlcw0Ka29kZTI6DQptb3YgYWgsIDAyaA0KbW92IGRsLCAqDQppbn
    QgMjFoDQptb3YgYWgsIDA3aA0KaW50IDIxaA0KY21wIGFsLCBVDQpqZSBrb2RlMw0Kam5lIHByb3Nlcw0Ka29kZTM6DQpt
    b3YgYWgsIDAyaA0KbW92IGRsLCAqDQppbnQgMjFoDQptb3YgYWgsIDA3aA0KaW50IDIxaA0KY21wIGFsLCBSDQpqZSBrb2
    RlNA0Kam5lIHByb3Nlcw0Ka29kZTQ6DQptb3YgYWgsIDAyaA0KbW92IGRsLCAqDQppbnQgMjFoDQptb3YgYWgsIDA5aA0K
    bGVhIGR4LCBrYWwyDQppbnQgMjFoDQppbnQgMjBoDQplbmQgbXVsYWk=

    Gimana jawabnya?


     

Post a Comment