Results 1 to 7 of 7
Hello everyone,
Ok so I have a laptop with a 140gb hard disk. I originally just had vista on the 1 partition. Last night I followed a guide to install ...
- 06-27-2009 #1Just Joined!
- Join Date
- Jun 2009
- Posts
- 2
Vista not loading with GRUB help!!
Hello everyone,
Ok so I have a laptop with a 140gb hard disk. I originally just had vista on the 1 partition. Last night I followed a guide to install Ubuntu on a new parturition. I created a 20gb partition in windows and followed instructions to install Ubuntu to the new partition. Well everything went well, or so I thought. When my PC loads, it did not give the option to even load vista.
Here is the result of sudo fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc01de4f4
Device Boot Start End Blocks Id System
/dev/sda1 1 1162 9325568 27 Unknown
/dev/sda2 * 1162 16853 126042111+ 7 HPFS/NTFS
/dev/sda3 16854 19457 20916630 5 Extended
/dev/sda5 16854 19343 20000893+ 83 Linux
/dev/sda6 19344 19457 915673+ 82 Linux swap / Solaris
Disk /dev/mmcblk0: 8053 MB, 8053063680 bytes
16 heads, 60 sectors/track, 16384 cylinders
Units = cylinders of 960 * 512 = 491520 bytes
Disk identifier: 0x00000000
I know that I have a recover partition at the start of the drive and I believe that Vista is the /dev/sda2
Now when I type sudo gedit /boot/grub/menu.lst this is what I get
## ## End Default Options ##
# Windows Vista
title=Windows Vista
rootnoverify (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1
title Ubuntu 9.04, kernel 2.6.28-13-generic
uuid c95b6a4b-43f2-487f-8282-7c19e2680adc
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=c95b6a4b-43f2-487f-8282-7c19e2680adc ro quiet splash
initrd /boot/initrd.img-2.6.28-13-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-13-generic (recovery mode)
uuid c95b6a4b-43f2-487f-8282-7c19e2680adc
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=c95b6a4b-43f2-487f-8282-7c19e2680adc ro single
initrd /boot/initrd.img-2.6.28-13-generic
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid c95b6a4b-43f2-487f-8282-7c19e2680adc
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=c95b6a4b-43f2-487f-8282-7c19e2680adc 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 c95b6a4b-43f2-487f-8282-7c19e2680adc
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=c95b6a4b-43f2-487f-8282-7c19e2680adc ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid c95b6a4b-43f2-487f-8282-7c19e2680adc
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
I added in the windows vista portion, before there was nothing there. Now when grub boots it says that there is no valid drive for vista. I am a total newb to this and I have no clue how to correct this. How to I properly point grub to my Vista partition?
Thanks for the help!!! I have searched and searched, but it seems everyone just yells at people for not searching, and then someone posts that they figured it out.
- 06-27-2009 #2Linux Newbie
- Join Date
- Aug 2006
- Location
- england
- Posts
- 138
ii suspect you may have deleted the vista partition when installing otherwise grub would have detected it.
if this is the case then you will have to reinstall or recover vista,i don't use vista myself so i can't help much on that
- 06-27-2009 #3Just Joined!
- Join Date
- Jun 2009
- Posts
- 2
hello,
clearly the vista partition is still there. I can see it, but GRUB will not load it. This is the 2nd time GRUB has destroyed my MBR. Very frustrating....
I am directing GRUB to the correct partition???
- 06-27-2009 #4Linux User
- Join Date
- Dec 2007
- Location
- Idaho USA
- Posts
- 351
title=Windows Vista
rootnoverify (hd0,1)
chainloader +1
The above should be correct if grub is installed on sda.
(hd0,x)==first hdd
(hdx,1)==second partition.
map==is used only if grub is on a different hdd then the one called for by rootnoverity.
grub did not destroy the MBR, only that you are not yet familiar with how grub works.This is the 2nd time GRUB has destroyed my MBR.
- 06-27-2009 #5
Add
The first entry should work ... but you may find you need to select the second entry ... does it work?Code:title Windows Vista rootnoverify (hd0,1) chainloader +1 title recovery partition rootnoverify (hd0,0) chainloader +1
- 06-28-2009 #6Comment out or delete these lines. They are only necessary if Windowsmap (hd1) (hd0)
map (hd0) (hd1)
is on the second hard drive.
- 07-29-2009 #7Just Joined!
- Join Date
- Jul 2009
- Posts
- 1
Thank you guys so much, using his Vista loader entries saved my life.
I've been searching the interwebs the last 5 hours straight stressing as to why I can no longer boot into Vista!!!
Thank youuu (ps, I commented out the map entries, like @rcgreen said, and it works)


Reply With Quote