Coudn't Boot Windows 7 after ubuntu installation.

Asked by suresh2

Hi,
   I am new to ubuntu linux. i already have windows 7 installed on my pc. so i wana try ubuntu on my pc. i downloaded from the internet and installed on my free partition. everything went well. it installed ubuntu successfully. after installtion, it only loading ubuntu. its not showing any option to load windows 7.

   when i checked inside ubuntu, i can see the windows partition folder and windows files. but i coudn't boot into windows 7. Please help me solve this issue, otherwise i have to install windows 7 from scratch.

THanks a lot in advance,
Suresh

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

May be your Ubuntu live install cd is not perfect or it can't be read from your cdrom drive please verify it...

Here some general note on install Ubuntu and howto to get a good ubuntu iso cd image (.iso) to burn on a cd:

- Here the steps to install Ubuntu 10.04 https://help.ubuntu.com/community/GraphicalInstall
- Here a video http://www.youtube.com/watch?v=XaqaDZZ_P0g&feature=fvw

The main ubuntu site is this: www.ubuntu.com and the download location is this
http://www.ubuntu.com/desktop/get-ubuntu/download

Ubuntu prerequisites: https://help.ubuntu.com/community/Installation/SystemRequirements
Ubuntu 10.04 release notes: https://wiki.ubuntu.com/LucidLynx/ReleaseNotes

1) please download the 700 mb file http://www.ubuntu.com/desktop/get-ubuntu/download simply press on download button
To avoid download errors download the desired ubuntu iso install cd image using the torrent protocol.

- if you are using Windows please install a torrent client i suggest you http://deluge-torrent.org/
and download the iso using a .torrent link from here:
http://releases.ubuntu.com/10.04/ubuntu-10.04-desktop-i386.iso.torrent

2) PLEASE BE SURE TO CHECK the md5sum of downloaded file to be sure it have no error https://help.ubuntu.com/community/HowToMD5SUM
Only if the md5sum number match with this: http://releases.ubuntu.com/10.04/MD5SUMS go to the next steps.

3) burn the iso image onto a cd, to do it install and use http://infrarecorder.org/?page_id=5 burn the cd at lower speed you can do and activate the data verify

4) insert the self made install cd into your pc cdrom drive and reboot your pc. YOU MUST NOT SEE Windows starting and you can try Ubuntu from cdrom and then install it

If you have trouble with installation (the system freeze or you can't complete it) be sure to read the above suggestions, then:

1.a ) Please boot entirely (you must not see windows starting) from Ubuntu live install cd and when the system start to boot from cd you will see two bottom screen icons (keyboard and man inside circle ) please press space (choose your desired language) then a screen textual center menu will appear to you with this items in it:

Try Ubuntu without installing
Install Ubuntu
Check disc for defects
Test memory
Boot from first hard disk

Please select "Check disc for defects" and press enter to test if your cd-driver can read in a good way the live install cd... or if the install cd have some defective file in it.
Then please also perform a Test memory to be sure your pc RAM memory have not any issue

If you get a blank screen at boot after install or booting from the Ubuntu install cd please read:

http://www.ubuntugeek.com/how-to-fix-ubuntu-10-04-lts-lucid-blank-screen-at-startup.html

---- Trouble with intel8xxx graphic cards:

please try this: https://wiki.ubuntu.com/X/Bugs/Lucidi8xxFreezes

Revision history for this message
suresh2 (sureshbabu78) said :
#2

i go through the tutorial.

I understood what mistake i have done.

Instead of choosing install windows linux side by side,i have chosen specific partition manually, since i already got free partition for linux.

its 500 GB hard disk. got 3 partition 118.5 gb 118.5 gb and 263.1 GB

i installed ubuntu on 263.1 GB and it installed correctly.

Now my windows 7 is on the first 118.5 gb partition which is not detected by the ubuntu.

I think, I installed wrongly the ubuntu.

is there any way to get back my windows 7? or do i have to install windows 7 again?

Thanks,
suresh

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Please boot in Ubuntu and open a terminal from Applications→Accessories→Terminal and type:

sudo fdisk -l

give your user password when requested, you don't see nothing when you type it, then press enter.

Copy and paste the result here...

Revision history for this message
delance (olivier-delance) said :
#4

During installation of Grub2, Windows OS was not detected.
Retry detection by running in a terminal:
      sudo update-grub
At next reboot, you should see a menu with Ubuntu and Windows.
If it fails, we will have to edit a file, and I will need result of
    sudo fdisk -l
where -l is lowercase "L".

Revision history for this message
suresh2 (sureshbabu78) said :
#5

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

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 31988 256936960 83 Linux
/dev/sda3 31988 46395 115723264 7 HPFS/NTFS
/dev/sda4 46395 60802 115723265 f W95 Ext'd (LBA)
/dev/sda5 46395 60802 115723264 7 HPFS/NTFS

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002faa6

   Device Boot Start End Blocks Id System
/dev/sdb1 1 121602 976761560 7 HPFS/NTFS

Disk /dev/sdg: 4002 MB, 4002938880 bytes
255 heads, 63 sectors/track, 486 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot Start End Blocks Id System
/dev/sdg1 * 1 487 3909056 b W95 FAT32
Partition 1 has different physical/logical endings:
     phys=(485, 254, 63) logical=(486, 169, 3)

Revision history for this message
suresh2 (sureshbabu78) said :
#6

@delance thanks for the answer. Tried that also still no windows menu. included the result of sudo fdisk -l on previous comment.

Thanks,
suresh

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#7

1.st please be sure you installed Ubuntu is fully updated/upgraded please open a terminal and please type:

if the system ask you for a password please give your user password, you will not see any password chars back to the screen, so type and then press enter.

sudo apt-get update
sudo apt-get dist-upgrade

sudo apt-get install os-prober

Then please copy and paste the result of this terminal command:

sudo update-grub

Revision history for this message
suresh2 (sureshbabu78) said :
#8

@marcobra

I downloaded ubuntu yesterday only from here http://www.ubuntu.com/desktop/get-ubuntu/download

anyhow I tried the steps.

$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Vista (loader) on /dev/sdg1
done

when i restarted, i got windows vista as one of the option. But i had windows vista long time before on my pc. I don't see any option to load windows 7.

Waiting for your answer.

Thanks,
suresh

Revision history for this message
delance (olivier-delance) said :
#9

Have a look at https://answers.launchpad.net/ubuntu/+source/grub2/+question/117332

For you, it should be in /etc/grub.d/40_custom:

 menuentry "Windows Seven" {
 set root=(hd0,3)
 chainloader +1
 }

Could you convert this question into a bug against grub2 with subject: "os_prober failed to detect Seven" ?
Ubuntu 10.10 is arriving with a lot of install, and it could be interesting for people of Grub2 to fix this bug before the release.
Grub2 programmer could ask you to check a new OS prober.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#10

suresh please do as Delance suggest you and then please confirm already reported bug related to your issue or fill a new bug from here... https://bugs.launchpad.net/ubuntu/+source/os-prober

Thanks

Revision history for this message
suresh2 (sureshbabu78) said :
#11

Now this is going crazy. before I saw windows vista entry in the OS selection.

After carefully following the above steps, its not showing any option to choose, it straight away load the Linux.

I added the following entry with out etc line space

 menuentry "Windows Seven" {
 set root=(hd0,3)
 chainloader +1
 }

into /etc/grub.d/40_custom:

and then i run the

sudo update-grub

its not detecting windows 7. now its only loading ubuntu. No more menu option.

This is make me crazy. I think its time to reinstall windows 7 from the beginning.

any one got any clue?

Thanks.
Suresh.

Revision history for this message
delance (olivier-delance) said :
#12

Sorry, it's late for me. I will check procedure tomorrow afternoon.
Could you send to email <email address hidden> the file you modified ? (and post it if it is not too big)
Could you post what is in each partition (Vista, Seven, recovery, ...) ?

Revision history for this message
delance (olivier-delance) said :
#13

To see how to restore the Ubuntu/XP/Vista/7 bootloader, go on this site
    http://ubuntuforums.org/showthread.php?t=1014708
Perhaps it will avoid you to reinstall Seven.

This week-end, I tried to duplicate a virtual machine with Seven, but it failed so I don't know how to check. Perhaps by searching a Seven with DRM removed.

Have a look at:
          https://help.ubuntu.com/community/Grub2#Custom%20Menu%20Entries

If Windows bootloader is on /dev/sda3, in Grub2 it will be named (hd0,3)

Could you open a bug against grub2 with subject: "os_prober failed to detect Seven" ?

Revision history for this message
delance (olivier-delance) said :
#14

Is your problem solved ? If not I can try to help, else, please, could you mark question "Solved".

Can you help with this problem?

Provide an answer of your own, or ask suresh2 for more information if necessary.

To post a message you must log in.