Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have finally installed ubuntu on my second drive i change my d drive to took 8gb for swap and formated d disc(sda4 to ext4), now when i start computer in grub is shows me only ubuntu and windows 7 is not shown. So how should i fix thath problem to i will be able to choose between them at grub.

Another thing is after i press F12 for boot menu at startup i choose windows boot manager and i get into Windows 7.

I runed command sudo fdisk -l and here is log: http://pastebin.com/Cgv1igHc

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0xc3ffc3ff

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  1953525167   976762583+  ee  GPT
Partition 1 does not start on physical sector boundary.

Thanks for help.

share|improve this question
Please indicate your Boot-Info URL. This will provide relevant information to help you. –  LovinBuntu Oct 9 '12 at 9:30

1 Answer 1

  1. Boot Ubuntu and mount your Windows partition (simply open the disk on Nautilus)

  2. Run the following on the command line (Ctrl+Alt+t):

    sudo os-prober
  3. If your Windows instllation was found, you can run:

    sudo update-grub

Note that step 2 is just for your convenience. You could just mount the Windows 7 partition and then run update-grub.

share|improve this answer
Awesome - Solved the problem ! –  Yugal Jindle Oct 16 '12 at 12:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.