PDA

View Full Version : How do I Install GRUB2...Faulty GRUB.



kundi
2013-03-30, 15:05
Please, How do I install grub2 and manually configure it to recognise windows 7 and ubuntu 12.10 and Kali-linux? I could have sticked with just grub that came with Kali, but my machine enters into grub rescue mode after running windows.

So I had to run these each time i accessed windows 7 to get the bootloader

set prefix=(hd0,msdos6)/boot/grub
set root=(hd0,msdos6)
insmod normal
normal

Thanks in advance.

This was my terminal output when I ran

fdisk -l

root@kundi:~# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x02a46e46

Device Boot Start End Blocks Id System
/dev/sda1 2048 31459327 15728640 27 Hidden NTFS WinRE
/dev/sda2 31459328 31664127 102400 7 HPFS/NTFS/exFAT
/dev/sda3 * 31664128 683600504 325968188+ 7 HPFS/NTFS/exFAT
/dev/sda4 683601918 976771071 146584577 5 Extended
Partition 4 does not start on physical sector boundary.
/dev/sda5 683601920 865153023 90775552 83 Linux
/dev/sda6 865155072 964747263 49796096 83 Linux
/dev/sda7 964749312 969056255 2153472 82 Linux swap / Solaris
/dev/sda8 969062400 976771071 3854336 82 Linux swap / Solaris

kundi
2013-03-31, 13:02
I managed to fix it myself, but how I did it is what I am not sure of.

This were the things I did,

Booted into kali
Reintalled grub (apt-get install grub)
restarted my machine and booted into ubuntu
in ubuntu I went to fix it swap partition
then i restarted and booted into windows
restarted windows and all went well from there.