Tuesday, June 7, 2011

GRUB2 repair in Backtrack 5

Good day to all my friend's all around the globe. Lately i am busy at my office and not post any article to my blog. Due to the BackTrack 5 release and still updating at my machine for more, i post this guide to repair GRUB2 after installing Windosws XP/VISTA/7 dualboot with BackTrack. Maybe this guide will help you all out there.....!!! lets go


1.  Boot from Backtrack 5 DVD

2.  Find partition location of your BackTrack 5

root@bt:~# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
240 heads, 63 sectors/track, 10337 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xed1f86f7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        6772    51196288+   7  HPFS/NTFS
/dev/sda2            6773       10338    26953729    5  Extended
/dev/sda5            6773        6902      975872   82  Linux swap / Solaris
/dev/sda6            6902       10338    25976832   83  Linux <----OK this is Linux partition


3.   Create mount-point for BackTrack 5 partition

root@bt:~# mkdir /media/root

4.   Mount the partition using this line:

root@bt:~# mount /dev/sda6 /media/root

5.   Confirm your root location by typing this line:

root@bt:~# ls /media/root

bin dev initrd.img lib32 media proc selinux tmp vmlinuz
boot etc initrd.img.old lib64 mnt root srv usr vmlinuz.old
cdrom home lib lost+found opt sbin sys var

6.   if those line above appear, you may proceed by installing GRUB 2:

root@bt:~# grub-install --root-directory=/media/root /dev/sda

Installation finished. No error reported

7.   Reboot your system!

Ok..happy hunting!!


  1. realy realy thanks..... amazing

  2. thank you soo much! your a lifesaver

  3. Great Help, Thank You!

  4. Really What to do in a notebook with three partitions and
    I want to Install First backtrack and Then xp
    Please help

  5. I was running bt5 from the optical drive and on the desktop i had an icon saying :"install backtrack".
    I clicked it and it let me add a partition on my hd for bt5.
    that was all i had to do.
    Now at startup i have to scroll down and enter for XP or do nothing for bt5.