PDA

View Full Version : [ubuntu] windows 7 does not shows up while booting



thetechfreak
August 23rd, 2010, 03:43 PM
HI everyone
I installed ubuntu 10.04 LTS. The problem is that while booting the list of OS'es does not shows up. I mean while booting ubuntu boots up automatically.
So please help as i want to use windows also.

Thanks :)

Chauncellor
August 23rd, 2010, 04:06 PM
Hi, there.

Ubuntu should have autodetected a Windows installation when it was installed. You can give it another try by running this in the terminal (Applications>Accessories>Terminal):

sudo update-grub

It will ask for your password. When you type it in there will be no feedback but it's registering your keystrokes.

When that is finished, reboot and see if it appears on the list. If not, come back here and we'll try to help.

anand_30
August 23rd, 2010, 04:07 PM
have u tried this?

sudo update-grub

LowSky
August 23rd, 2010, 04:09 PM
hoefully you didn't choose to Delete windows when you installed Ubuntu

Elfy
August 23rd, 2010, 04:12 PM
Have you tried pressing shift when grub is loading to see the menu?

thetechfreak
August 23rd, 2010, 04:16 PM
HI all
Thanks for your replies.
Well I have tried the code

sudo update-grub



It says "done" but still ubuntu boots up :(

@LOw sky : No man. I can still view files of windows 7.

@forestpiskie : which menu are u talking about ?
Thanks all ! :)

Chauncellor
August 23rd, 2010, 04:18 PM
If you hold Shift upon boot there should be a list of operating systems.

If you use System>Administration>Disk Utility and select your hard drive, you do have NTFS and EXT4 partitions, right?

Elfy
August 23rd, 2010, 04:21 PM
The boot menu. Try shift when the screen says grub loading ...

Alternatively you can edit the file so that the menu shows anyway.

https://help.ubuntu.com/community/Grub2#Configuring%20GRUB%202

Edit the file


gksudo gedit /etc/default/grub

Put a # in front of GRUB_HIDDEN_TIMEOUT=0

thetechfreak
August 23rd, 2010, 04:23 PM
Ya I saw the list but 3 are of ubuntu and 2 are of memtest

now what to do ?
and ya I have NTFS and EXT4 partitons

Chauncellor
August 23rd, 2010, 04:27 PM
Have you performed all updates? Mayhaps there was a problem that has since been fixed.

System>Administration>Update Manager will help you check.

thetechfreak
August 23rd, 2010, 04:32 PM
Yes I have performed all the updates

Ok. Now what if i format the partition in which ubuntu is installed. I mean I want to get rid of ubuntu and then later install it with wubi method *from windows*.
So basically i am just asking how to remove ubuntu but be sure that window boots up.

Thanks a lot guys.

Chauncellor
August 23rd, 2010, 04:36 PM
Okay, first off:

Wubi is not really great for a production desktop. it'll run fine for a while, but it's just a very easy way to try it out without having to reformat anything.

I can't think of a good reason right now as to why it cannot be detected, but if you want to restore windows at all costs there is a way. You'll need a windows recovery disc. I'd advise trying to stick it out for a little more, personally.

Maybe it's a bug with grub 2. To others: Would it be wise to try out grub legacy?

thetechfreak
August 23rd, 2010, 04:41 PM
In the menu (while booting)
I get these 3 options of ubuntu
and 2 are of memtest.

Now some hope ??

And why would i need the windows recovery disk ?

Chauncellor
August 23rd, 2010, 04:45 PM
Okay, I want you to try this one more thing for me. This could very well work.

Could you open up a terminal and type this in:

sudo apt-get install grub

enter pass and accept the changes it will do. After that, restart and give it a shot.

Chauncellor
August 23rd, 2010, 04:47 PM
Read this if you wish to return windows but leave Ubuntu in the dust (it will still be on your hard drive but you will no longer be able to access it - you would then be able to delete it if you wish).

http://windows7themes.net/how-to-fix-mbr-in-windows-7.html

thetechfreak
August 23rd, 2010, 04:48 PM
hey this is the last line
Setting up grub (0.97-29ubuntu60) ...

now shall i reboot ?

Chauncellor
August 23rd, 2010, 04:49 PM
Yes. Go for it.

thetechfreak
August 23rd, 2010, 04:53 PM
Hey i appreciate your help
but i was getting those 5 options again
which one to choose ??

Chauncellor
August 23rd, 2010, 04:56 PM
I'm guessing that the multiple Ubuntu options are different kernels. It's just clutter, you should always choose the top Ubuntu one.

This is annoying. If you want to stick it out before using that link I gave you above we can try to manually add the entry. Let me know.

spydeyrch
August 23rd, 2010, 04:59 PM
have u tried this?

sudo update-grub


I though that the command was:



sudo update-grub2
I seem to have read somewhere that there is a difference between the legacy update command and the newer grub2 command. I could be wrong and it may be that both do the same thing.

-Spydey :lolflag:

EDIT: Ok, so I guess that while I was reading and posting, a number of other people posted before I could get mine posted. sorry about any confusion my post may have caused.

Chauncellor
August 23rd, 2010, 05:00 PM
In my experience they do the same thing. But I guess it wouldn't hurt to try.

Copy and paste this command, please:

sudo apt-get install grub-pc && sudo update-grub2

thetechfreak
August 23rd, 2010, 05:02 PM
OK i tried all those links
one is of memtest that actually does something. But does not boots up
and in the another one the cursor blinks up.

So shall i first log on to windows (with help of that article) then delete the partition of ubuntu >?

But dude thanks. You immensely helped me :)

thetechfreak
August 23rd, 2010, 05:07 PM
Hey now i am not getting that menu also (Of those 5 options)
WTH !
I think i should follow that article

Chauncellor
August 23rd, 2010, 05:08 PM
Did you use the command at the top of the page? That should have basically put everything to how it used to be. Remember, hold shift at bootup to see that menu.

thetechfreak
August 23rd, 2010, 05:11 PM
YA man i did that.
But not getting it. Huhhhhhh

I am now installing windows repair disk !

Chauncellor
August 23rd, 2010, 05:14 PM
Alright. Sorry that this didn't work for you. I hope that things can work out for you in the future. Feel free to come back if you ever need help again.

thetechfreak
August 23rd, 2010, 05:55 PM
No problem buddy !! I formatted my system and installed win 7 again
btw u on FB ? wanna discuss something ;)

Chauncellor
August 23rd, 2010, 06:01 PM
Oh, no! You didn't have to actually reinstall Windows 7! With that command it would have reinstated Windows as having control of the computer's boot!

I'm sorry if I was not clear enough. :(

I am not on Facebook but I do give you permission to send me a Private message via the ubuntuforums. I'll be around later today.