Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
Grub installed from 9 or 10 ubuntu simply won't load Windows. Ubuntu and GRUB on IDE hdd, Windows on SATA HDD. Installed all default options, just clicked thru install and ...
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Location
    in a house
    Posts
    31

    Grub simply won't load Windows

    Grub installed from 9 or 10 ubuntu simply won't load Windows.
    Ubuntu and GRUB on IDE hdd, Windows on SATA HDD.

    Installed all default options, just clicked thru install and when attempting to boot Windows XP screen is blank with a blinking cursor in the left top corner.

    Same thing happened earlier when I ran Fedora 11 then 12.

    Different version of Grub, same result.

    Can't Canonic work with Grub developers to at least make a workable configuration for it's default setup?

    Searched the web, in a 1000 places same solution is offered: adding a few lines to menu.lst.
    1) the lines are already there
    2) this is for the old version of grub.

    Does grub actually work for anyone out there? Or is it only supposed to work in weird configurations?

  2. #2
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,073
    GRUB works perfect for me.
    What version of GRUB do you have? Legacy or GRUB2?
    Could you post the content of your menu.lst, as well as the output of
    Code:
    fdisk -l
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Linux installer doesn't add mapping code in GRUB configuration file ( menu.lst or grub.conf ) by default. You have to add mapping code manually.
    Code:
    title Windows OS 
    rootnoverify (hd1,0)
    map (hd0) (hd1)
    map (hd1) (hd0)
    chainloader +1
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Nov 2009
    Location
    in a house
    Posts
    31
    Quote Originally Posted by devils casper View Post
    Linux installer doesn't add mapping code in GRUB configuration file ( menu.lst or grub.conf ) by default. You have to add mapping code manually.
    Code:
    title Windows OS 
    rootnoverify (hd1,0)
    map (hd0) (hd1)
    map (hd1) (hd0)
    chainloader +1
    Ha-ha! Those lines are already there added by installer. Have always been there to no avail.
    Actually, that's for legacy grub. Since grub2 the file is grub.cfg, which is auto-generated by installer:

    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Microsoft Windows XP Professional (on /dev/sdb1)" {
    insmod ntfs
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set 5a9c03999c036eb7
    drivemap -s (hd0) ${root}
    chainloader +1
    }
    ### END /etc/grub.d/30_os-prober ###

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Which version/distro are you using? Ubuntu 9.04, Fedora 11/12 do not use GRUB2 and thats why I suggested mapping code.

    Post the output of fdisk -l command here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Linux User
    Join Date
    Dec 2007
    Location
    Idaho USA
    Posts
    351
    set root='(hd1,1)'
    on mine it is : set root=(hd1,1) with no ' ' around the hdd designation. Do not know if that is the problem or not. Some posts on GRUB2 have problems with {search --no-floppy --fs-uuid --set 5a9c03999c036eb7} , removing it works for some problems.

  7. #7
    Just Joined!
    Join Date
    Nov 2009
    Location
    in a house
    Posts
    31
    Quote Originally Posted by devils casper View Post
    Which version/distro are you using? Ubuntu 9.04, Fedora 11/12 do not use GRUB2 and thats why I suggested mapping code.

    Post the output of fdisk -l command here.
    Currently on Ubuntu 10. Nothing has changed.


    Code:
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 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: 0x00054862
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1          26      204800   83  Linux
    Partition 1 does not end on cylinder boundary.
    /dev/sda2              26        2576    20480000   83  Linux
    /dev/sda3            2576        3098     4194304   82  Linux swap / Solaris
    /dev/sda4            3099       19457   131403667+   5  Extended
    /dev/sda5            3099       19457   131402752   83  Linux
    
    Disk /dev/sdb: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 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: 0x20202020
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *           1       38912   312560608+   7  HPFS/NTFS
    Quote Originally Posted by Lostfarmer View Post
    on mine it is : set root=(hd1,1) with no ' ' around the hdd designation. Do not know if that is the problem or not. Some posts on GRUB2 have problems with {search --no-floppy --fs-uuid --set 5a9c03999c036eb7} , removing it works for some problems.
    My point is that the distro installer performs grub configuration and every time it's wrong. If so many different installers in different versions of Linux just can't configure grub properly, and for such a rudimentally simple installation, then something is wrong with communication between gnu and linux teams.

    In plain English it's called communication breakdown or negligence on the gnu/grub devs part, who are systematically failing to properly document their product. If not worse (but which I am convinced is the true root cause) and grub is simply a non-functional decoy.

    Lilo just worked and I could boot DOS, QNX, OS/2, NT and several Linuxes from a bunch of hard drives. Grub is nothing but problems.

  8. #8
    Linux User hatebreed's Avatar
    Join Date
    May 2010
    Posts
    332
    did you try lostfarmers sugguestion by taking the search line out? and have you tried to change the device map section to the (hd1) instead of (hd0)? don't know if this will work but I've had a lot of issues with grub 2 as well. I thought that grub 1 worked better and all the scripting and uuid are causing some issues.

  9. #9
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,073
    Try updating your grub.cfg file.
    It may end up detecting Windows after the fact.
    Editing the file by hand won't work, so run this:
    Code:
    sudo update-grub
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  10. #10
    Just Joined!
    Join Date
    Nov 2009
    Location
    in a house
    Posts
    31
    Quote Originally Posted by jayd512 View Post
    Try updating your grub.cfg file.
    It may end up detecting Windows after the fact.
    Editing the file by hand won't work, so run this:
    Code:
    sudo update-grub
    I lost the count of how many times I did that.
    Let me re-iterate: Windows IS detected. It just does not BOOT.

    Code:
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Microsoft Windows XP Professional (on /dev/sdb1)" {
    insmod ntfs
    set root='(hd1,1)'
    search --no-floppy --fs-uuid --set 5a9c03999c036eb7
    drivemap -s (hd0) ${root}
    chainloader +1
    }
    ### END /etc/grub.d/30_os-prober ###
    Quote Originally Posted by hatebreed View Post
    did you try lostfarmers sugguestion by taking the search line out?
    I have no motivation to do so, as the file is generated and the generating program apparently wants those lines to be there.

Page 1 of 2 1 2 LastLast

Posting Permissions

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