Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Linux 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

  3. #3
    Just 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???

  4. #4
    Linux 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.

    This is the 2nd time GRUB has destroyed my MBR.
    grub did not destroy the MBR, only that you are not yet familiar with how grub works.

  5. #5
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    Add
    Code:
    title Windows Vista
    rootnoverify (hd0,1)
    chainloader +1
    
    title recovery partition
    rootnoverify (hd0,0)
    chainloader +1
    The first entry should work ... but you may find you need to select the second entry ... does it work?

  6. #6
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,114
    map (hd1) (hd0)
    map (hd0) (hd1)
    Comment out or delete these lines. They are only necessary if Windows
    is on the second hard drive.

  7. #7
    Just 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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...