Jumat, 20 November 2009

Restore GRUB Loader 9.4 Missing After Ubuntu Install Windows

Usually if you have a dual boot OS instance: Linux and Windows, and chance of error or windowsnya often hangs, and no intention to reinstall OS windowsnya, if we want to reinstall GRUB Loader Linux probably would be lost because when install windows will rewrite / delete MBR (Master Boot Record) is available and will remove GRUB Loader Linux, how to restore GRUB Loader Linux is one of them by way of using Linux Live CD, for example Jaunty ubuntu desktop version, knoppix, etc.. After linux live cd is running, then open a terminal, as root type the command grub;

to find out what partitions there;

grub> geometry (hd0);

drive 0×80: C/H/S = 9729/255/63, The number of sectors = 156301488, /dev/sda

Partition num: 0, Filesystem type unknown, partition type 0×7

Partition num: 4, Filesystem type unknown, partition type 0×7

Partition num: 5, Filesystem type unknown, partition type 0×7

Partition num: 6, Filesystem type unknown, partition type 0×82

Partition num: 7, Filesystem type is ext2fs, partition type 0×83

Pada partisi diatas terlihat bahwa partisi nomor 7 yang menggunakan linux, lalu ketik:

grub> root (hd0,7);

untuk menjadikan GRUB Loader-nya berada di MBR, ketik;

grub> setup (hd0);

Checking if “/boot/grub/stage1? exists… yes

Checking if “/boot/grub/stage2? exists… yes

Checking if “/boot/grub/e2fs_stage1_5? exists… yes

Running “embed /boot/grub/e2fs_stage1_5 (hd0)”… 17 sectors are embedded.

succeeded

Running “install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,7)/boot/grub/stage2

/boot/grub/menu.lst”… succeeded

Done.

That's one way to restore GRUB Loader Linux ubuntu Jaunty missing since erased when install Window.


Tidak ada komentar:

Posting Komentar