Results 1 to 7 of 7

Thread: Grub2 won't load Windows 7 (which is on second hard drive)

  1. #1
    Join Date
    Feb 2007
    Beans
    28

    Grub2 won't load Windows 7 (which is on second hard drive)

    I have two hard drives, the primary one has a couple OSs, and the slave with just Windows 7.

    I've tried the following entries:

    Code:
    menuentry "Windows 7"{
     set root=(hd1,1)
     devicemap -s hd0 hd1
     chainloader +1
    }
    This gives me 'chainloader: command not found'.


    Code:
    menuentry "Windows 7"{
     devicemap -s hd0 hd1
     chainloader (hd1)+1
    }
    It loads the Windows boot loader, but it tells me 'Operating system not found'.


    Does anyone know how to solve this problem?
    Last edited by Mardok45; September 12th, 2009 at 08:03 AM.

  2. #2
    Join Date
    Oct 2008
    Location
    Tulsa,Ok
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub2 won't load Windows 7 (which is on second hard drive)

    anyone have any tips on dualbooting Windows and Ubuntu on separate Hard Drives. Spent some time this evening trying to help someone in the Beginners Team support channel with no luck. Ubuntu is the Primary and Win7 the slave.

    this is what we tried in /etc/grub.d/40_custom


    Code:
    menuentry "Windows7 (loader) (on /dev/sdb1)" {
    	insmod ntfs
    	set root=(hd0,1)
    	search --no-floppy --fs-uuid --set 286cc2a6397a0f2a
    	chainloader +1
    
    }
    and

    Code:
    menuentry "Windows7 (loader) (on /dev/sdb1)" {
    	insmod ntfs
    	set root=(hd1,1)
    	search --no-floppy --fs-uuid --set 286cc2a6397a0f2a
    	chainloader +1


    blkid

    Code:
    /dev/sda5: UUID="0fddf3a4-dd16-4917-8ccd-cdc9be97a119" TYPE="swap" 
    /dev/sdb1: UUID="30B4A220B4A1E894" TYPE="ntfs" 
    /dev/sda1: LABEL="Ubuntu 9.10" UUID="4d0dcee9-780e-42a8-be34-e26ad6c3be49" TYPE="ext4"
    fdisk

    Code:
    Disk /dev/sda: 100.0 GB, 100030242816 bytes
    255 heads, 63 sectors/track, 12161 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xcab10bee
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1       11661    93666951   83  Linux
    /dev/sda2           11662       12161     4016250    5  Extended
    /dev/sda5           11662       12161     4016218+  82  Linux swap / Solaris
    
    Disk /dev/sdb: 30.1 GB, 30060527616 bytes
    255 heads, 63 sectors/track, 3654 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x1ece1ecd
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1        3655    29352960    7  HPFS/NTFS
    please any help would be appreciated.
    Last edited by duanedesign; February 3rd, 2010 at 06:49 AM.

  3. #3
    Join Date
    Sep 2009
    Beans
    43
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Grub2 won't load Windows 7 (which is on second hard drive)

    Check the Bios settings and change the boot order to run windows 7

  4. #4
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Grub2 won't load Windows 7 (which is on second hard drive)

    Hi duanedesign. I don't understand where is from this number: 286cc2a6397a0f2a, in your blkid i don't see it.

  5. #5
    Join Date
    May 2007
    Location
    Virginia, USA
    Beans
    13,303
    Distro
    Ubuntu Mate Development Release

    Re: Grub2 won't load Windows 7 (which is on second hard drive)

    Did you try just letting GRUB2 find Win7 and add its own entries?

    I have multiple drives, with Win7 NOT on the first drive, I boot from one of my Ubuntu drives -- and GRUB2 found the Win7 OS just fine when I ran update-grub.
    Ubuntu 17.10 Mate, Mint 18.3 Mate; MS Win10 Pro.
    Will not respond to PM requests for support -- use the forums.

  6. #6
    Join Date
    Dec 2010
    Beans
    1

    Re: Grub2 won't load Windows 7 (which is on second hard drive)

    I am having the same issue. Any update on this one ?

  7. #7
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub2 won't load Windows 7 (which is on second hard drive)

    Quote Originally Posted by madhur_ahuja View Post
    I am having the same issue. Any update on this one ?
    madhur_ahuja,

    Welcome to the Ubuntu Forums!

    Please begin your own thread and describe your issue.

    In this case, you should run the Boot Info Script. This script will tell us the status of your boot files. You can run it from Ubuntu or the LiveCD. Once run, it will generate a file called RESULTS.txt

    Please post the contents of RESULTS.txt in your first post of the new thread. You can get the script and instructions from the "BIS" link in my signature line.

    I'm closing this thread since it is old.
    Back to Xorg...

    Retired.

Bookmarks

Posting Permissions

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