Vista won't Boot

Asked by p_marr

I attempted to install ubuntu as a dual boot option.

I decreased the size of the Windows Vista partition in Windows to 170GB (out of 320 total) and then installed ubuntu using the install CD. I choose to install it in the "largest contiguous partition". Ubuntu now boots fine, but windows vista is not an available boot option. Using gparted I can still see the NTFS 170 GB partition, and the 1.5 GB Recovery partitions. The "factory restore" CD gives an error message when I try to use it, so now I'm not sure how to get back into Vista. I'd love to switch over to ubuntu fully, but am just not there yet.

In any of your responses, please keep in mind that I don't really know my way around the OS, and am not familiar with navigating the command prompt.

Thanks for any help...

Question information

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

So on the grub menu you don't see windows at all? What's the partition and drive number of the ntfs partition?

If you go to /menu/grub/menu.lst do you see something in it like this?

title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1

Revision history for this message
p_marr (patrick-marr) said :
#2

NTFS partions are as follows:
/dev/sda1 1.50 GiB "RECOVERY"
/dev/sda3 179.00 GiB "Local Disk"

Here's what's in my Menu.lst folder:

title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid 0990c4b2-7f9b-47bb-8935-e7d912b91b72
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=0990c4b2-7f9b-47bb-8935-e7d912b91b72 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid 0990c4b2-7f9b-47bb-8935-e7d912b91b72
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=0990c4b2-7f9b-47bb-8935-e7d912b91b72 ro single
initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+
uuid 0990c4b2-7f9b-47bb-8935-e7d912b91b72
kernel /boot/memtest86+.bin
quiet

Revision history for this message
ragarth (ragarth) said :
#3

Okay, first thing you need to do is backup your current menu.lst, go to a gnome-terminal and type in 'sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.BAK' hit enter, and type in your password.

Now you use your preferred text editor and start it in superuser mode. Do this by calling it in a gnome terminal using sudo then entering your user password. example: 'sudo gedit' hit enter then enter your password. Or alternatively you can use vi (vi rules, emacs drools!).

Once you have that up, open up /boot/grub/menu.lst and add to the bottom of it:

# Manually entered Operating System
# on /dev/sda1
title Microsoft Windows Vista
root (hd0,2)
savedefault
makeactive
chainloader +1

Save the document, restart your computer. Test to see if windows now boots, if it does, grats, now make sure linux works.

Revision history for this message
Vin Shankar (v-shankar) said :
#4

Please open a terminal and run "sudo fdisk -l" (that's -L but lowercase - MUST BE LOWERCASE) to determine which partition contains vista.

GrUB sees partitons as numbered starting at zero. They should be in the same order as your fdisk output. Let's call the number of your vista partition X (remember, the first is number 0, the second is number 1, etc).

You will need to press alt+f2 in Ubuntu and type "gksu gedit /boot/grub/menu.lst" and hit return. Then you must enter your password. In the text file that opens, scroll down to where it says "end of automagic kernels list" or similar. You will need to add the following block of lines with at least one blank line before and after.

title Windows Vista
root (hd0,X)
makeactive
chainloader +1

Remember to replace X with the appropriate number. Save the file and reboot. GrUB should now have an entry for vista. Try it, and please get back with the results.

Revision history for this message
p_marr (patrick-marr) said :
#5

I followed ragarth's instructions above and i was able to boot under Window's Vista. So this did answer my original question, however, I do have a follow-up (if this should be a new question, just let me know). Now when I boot, I have only the option to boot Windows Vista. What do I need to do in order to have the option at log in.

Thanks for your help guys (or gals!) i really appreciate it

Revision history for this message
Vin Shankar (v-shankar) said :
#6

It sounds like rather than adding to the end of your grub menu.lst you've written over the whole thing! You'll need to boot from a live CD, mount your Ubuntu partition and replace the menu.lst in it with the backup you made. Then you can add the lines ragarth suggests to the end, beneath the end of the Debian Automagic Kernels list. You may be told you don't have sufficient permissions or given a "permission denied" - in that case you'll need to get a root file manager window - press alt+f2 and run "gksu nautilus" and work from the window that appears

Can you help with this problem?

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

To post a message you must log in.