- Boot Ubuntu from USB or DVD.
- Go to terminal. [alt+ctrl+t]
- Type this:
sudo fdisk -l
- A list like this will be shown:
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 / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc6573e88
Device Boot Start End Blocks Id System
/dev/sda1 * 206848 163842047 81817600 7 HPFS/NTFS/exFAT
/dev/sda2 163842048 808996863 322577408 7 HPFS/NTFS/exFAT
/dev/sda4 808998910 974997503 82999297 5 Extended
/dev/sda5 968998912 974997503 2999296 82 Linux swap / Solaris
/dev/sda6 965089280 968992767 1951744 82 Linux swap / Solaris
/dev/sda7 808998912 965087231 78044160 83 Linux
Partition table entries are not in disk order
- Find out your disk. Like in the above example its sda (look at the 1st line).
- Reinstall GRUB into this disk by this command:
sudo grub-install your-disk
in the above example the command will be: sudo grub-install sda
The GRUB menu should be installed now.
--
Shreya Dahal