Results 1 to 6 of 6

Thread: Windows 7 Install on 2nd Hard Drive Not Seen by Grub in Maverick

  1. #1
    Join Date
    Oct 2007
    Beans
    85

    Question Windows 7 Install on 2nd Hard Drive Not Seen by Grub in Maverick

    Hi,

    I've just installed a second hard drive in my laptop with windows 7 on one drive and Ubuntu on the other. I selected the side-by-side install in the Ubuntu install and let Ubuntu do the rest. Unfortunately Grub isn't seeing the windows install even after reconfiguring grub. However, the windows 7 drive is visible in Ubuntu and all the windows files are there intact.

    Does anyone know how I can make grub see Windows 7 so I can boot into it? Thanks!

  2. #2
    Join Date
    Aug 2007
    Location
    a puddle in Manchester
    Beans
    9,204
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Windows 7 Install on 2nd Hard Drive Not Seen by Grub in Maverick

    Please go to the site below and download the boot script to your DESKTOP and then open up a terminal (Applications > Accessories > terminal) and run
    Code:
    sudo bash ~/Desktop/boot_info_script*.sh
    This will produce a results.txt file on your desktop. Please copy the contents of that file and paste them in your next post between CODE tags. For CODE tags click on New Reply (not quick reply)and then click on the # symbol in the toolbar.
    This will give a full overview of your current system.
    Thanks.

    http://bootinfoscript.sourceforge.net/
    MacBook Pro 10,1 retina

  3. #3
    Join Date
    Oct 2007
    Beans
    85

    Re: Windows 7 Install on 2nd Hard Drive Not Seen by Grub in Maverick

    Thanks for the quick reply! Here it is:

    Code:
                    Boot Info Script 0.55    dated February 15th, 2010                    
    
    ============================= Boot Info Summary: ==============================
    
     => Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in 
        partition #1 for (,msdos1)/boot/grub.
     => Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in 
        partition #5 for (,msdos5)/boot/grub.
    
    sda1: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 10.10
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sda2: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info:  
    
    sda5: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    sdb1: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  Windows 7
        Boot files/dirs:   /Windows/System32/winload.exe
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disk /dev/sda: 60.0 GB, 60022480896 bytes
    255 heads, 63 sectors/track, 7297 cylinders, total 117231408 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1    *          2,048   112,351,231   112,349,184  83 Linux
    /dev/sda2         112,353,278   117,229,567     4,876,290   5 Extended
    /dev/sda5         112,353,280   117,229,567     4,876,288  82 Linux swap / Solaris
    
    
    Drive: sdb ___________________ _____________________________________________________
    
    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sdb1               2,048   976,771,071   976,769,024   7 HPFS/NTFS
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    Device           UUID                                   TYPE       LABEL                         
    
    /dev/sda1        433804c6-969c-4041-a3af-d7f5b0f54269   ext4                                     
    /dev/sda2: PTTYPE="dos" 
    /dev/sda5        85ee0491-0ddb-40e6-ba8b-0b546af95249   swap                                     
    /dev/sda: PTTYPE="dos" 
    /dev/sdb1        22C24F84C24F5AE5                       ntfs                                     
    /dev/sdb: PTTYPE="dos" 
    error: /dev/sdc: No medium found
    
    ============================ "mount | grep ^/dev  output: ===========================
    
    Device           Mount_Point              Type       Options
    
    /dev/sda1        /                        ext4       (rw,errors=remount-ro,commit=0)
    /dev/sdb1        /media/22C24F84C24F5AE5  fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
    
    
    =========================== sda1/boot/grub/grub.cfg: ===========================
    
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
      set have_grubenv=true
      load_env
    fi
    set default="0"
    if [ "${prev_saved_entry}" ]; then
      set saved_entry="${prev_saved_entry}"
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z "${boot_once}" ]; then
        saved_entry="${chosen}"
        save_env saved_entry
      fi
    }
    
    function recordfail {
      set recordfail=1
      if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
    }
    
    function load_video {
      insmod vbe
      insmod vga
    }
    
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set 433804c6-969c-4041-a3af-d7f5b0f54269
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      load_video
      insmod gfxterm
    fi
    terminal_output gfxterm
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set 433804c6-969c-4041-a3af-d7f5b0f54269
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    insmod gettext
    if [ "${recordfail}" = 1 ]; then
      set timeout=-1
    else
      set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, with Linux 2.6.35-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set 433804c6-969c-4041-a3af-d7f5b0f54269
    	linux	/boot/vmlinuz-2.6.35-24-generic root=UUID=433804c6-969c-4041-a3af-d7f5b0f54269 ro   quiet splash
    	initrd	/boot/initrd.img-2.6.35-24-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set 433804c6-969c-4041-a3af-d7f5b0f54269
    	echo	'Loading Linux 2.6.35-24-generic ...'
    	linux	/boot/vmlinuz-2.6.35-24-generic root=UUID=433804c6-969c-4041-a3af-d7f5b0f54269 ro single 
    	echo	'Loading initial ramdisk ...'
    	initrd	/boot/initrd.img-2.6.35-24-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set 433804c6-969c-4041-a3af-d7f5b0f54269
    	linux	/boot/vmlinuz-2.6.35-22-generic root=UUID=433804c6-969c-4041-a3af-d7f5b0f54269 ro   quiet splash
    	initrd	/boot/initrd.img-2.6.35-22-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set 433804c6-969c-4041-a3af-d7f5b0f54269
    	echo	'Loading Linux 2.6.35-22-generic ...'
    	linux	/boot/vmlinuz-2.6.35-22-generic root=UUID=433804c6-969c-4041-a3af-d7f5b0f54269 ro single 
    	echo	'Loading initial ramdisk ...'
    	initrd	/boot/initrd.img-2.6.35-22-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set 433804c6-969c-4041-a3af-d7f5b0f54269
    	linux16	/boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set 433804c6-969c-4041-a3af-d7f5b0f54269
    	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    if [ "x${timeout}" != "x-1" ]; then
      if keystatus; then
        if keystatus --shift; then
          set timeout=-1
        else
          set timeout=0
        fi
      else
        if sleep --interruptible 3 ; then
          set timeout=0
        fi
      fi
    fi
    ### END /etc/grub.d/30_os-prober ###
    
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    
    =============================== sda1/etc/fstab: ===============================
    
    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    /dev/sda1       /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda5 during installation
    UUID=85ee0491-0ddb-40e6-ba8b-0b546af95249 none            swap    sw              0       0
    
    =================== sda1: Location of files loaded by Grub: ===================
    
    
      34.5GB: boot/grub/core.img
      19.6GB: boot/grub/grub.cfg
       2.0GB: boot/initrd.img-2.6.35-22-generic
      19.7GB: boot/initrd.img-2.6.35-24-generic
       1.7GB: boot/vmlinuz-2.6.35-22-generic
      34.4GB: boot/vmlinuz-2.6.35-24-generic
      19.7GB: initrd.img
       2.0GB: initrd.img.old
      34.4GB: vmlinuz
       1.7GB: vmlinuz.old
    =======Devices which don't seem to have a corresponding hard drive==============
    
    sdc

  4. #4
    Join Date
    Aug 2007
    Location
    a puddle in Manchester
    Beans
    9,204
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Windows 7 Install on 2nd Hard Drive Not Seen by Grub in Maverick

    There are a couple of problems with the Windows drive.
    The first is that there is no boot flag on sdb1, something that Windows may need to boot up. You can set one using gparted from your Ubuntu desktop. In gparted select /dev/sdb in the little box on the upper right with the drop down menu.
    Then right-click on sdb1 and select "manage flags" then in the new window check the box marked "boot" and close the window. Click on the green arrow in the toolbar to apply the change (if necessary - can't remember!).
    The second problem is more serious. You have 2 of Windows boot files missing. Do you have a Windows repair disc (not a recovery dvd)?
    MacBook Pro 10,1 retina

  5. #5
    Join Date
    Oct 2007
    Beans
    85

    Re: Windows 7 Install on 2nd Hard Drive Not Seen by Grub in Maverick

    I've set the bootable flag in gparted, thanks.

    Unfortunately all I have is a stock windows 7 pro install DVD. Is that any help? I don't mind re-installing windows if necessary, I'd just hate to have to re-install ubuntu!

  6. #6
    Join Date
    Aug 2007
    Location
    a puddle in Manchester
    Beans
    9,204
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Windows 7 Install on 2nd Hard Drive Not Seen by Grub in Maverick

    If it's a proper installation dvd that will do fine.
    Put the dvd in the drive and close it. Then reboot and set your bios to boot from the cd drive first, and the WINDOWS drive second, save the changes and reboot.
    You may need to press a key to boot from the cd, it will tell you if you do. Then press R, if necessary, to enter the recovery console. You can see if the automatic startup repair will fix it, but it probably won't on the first run.
    Select advanced options and then select the command prompt option. In the command prompt enter
    Code:
    bootrec.exe /fixmbr
    note the space between exe and /fixmbr
    If that runs without errors, reboot and Windows should boot normally. If it does, reboot and go into the bios again and set it so that the cd drive is first boot device, the Ubuntu drive is second and the Windows drive is third.
    Save the changes and reboot.
    Ubuntu should now boot directly. Open a terminal and run
    Code:
    sudo update-grub
    This time, as grub.cfg is run, it should pick up the Windows loader, which should make Windows bootable from your new grub menu - on booting.
    MacBook Pro 10,1 retina

Tags for this Thread

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
  •