[SOLVED] Dual boot problem windows7 mint separate hard drive

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
si-co

[SOLVED] Dual boot problem windows7 mint separate hard drive

Post by si-co »

hello this is my first linux install so forgive me if there is a simple answer to this problem.

Right first off i want windows7 on sda1 and linux mint cinnamon 17 on sdb1. I thourght this would be easy install and then just use grub menu to boot between the two hard drives OS's, But i messed up on the install of mint and installed grub too sda1. So was no longer able to boot in too windows ( grub over wrote windows boot loader ). So i fixed this useing "bootsector.exe" http://www.sevenforums.com/tutorials/20 ... ecord.html. Which fixed windows and i was able to boot between the two OS useing the BIOS.

After typing sudo udate-grub thousands of times into the comandline still no windows entry in grub. So i have been searching online for a few days now looking for an answer. by some how entering windows in to grub manualy. but thease still have not worked.

this is what boot info script http://bootinfoscript.sourceforge.net/ comes out with. the bits of code i have entered in to grub are.

### BEGIN /etc/grub.d/15_windows ###
menuentry "Windows 7" {
set root=(hd0,2)
chainloader +1
}

### END /etc/grub.d/15_windows ###

### BEGIN /etc/grub.d/40_custom ###
exec tail -n +3 $0
# 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.

menuentry "Windows vista/7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
chainloader +1
}

### END /etc/grub.d/40_custom ###

code in blue is the bits i have entered

Code: Select all

  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Windows is installed in the MBR of /dev/sda.
 => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    in partition 112 for .

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sdb1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  Grub2 (v1.99)
    Boot sector info:  Grub2 (v1.99) is installed in the boot sector of sdb1 
                       and looks at sector 1489283600 of the same hard drive 
                       for core.img. core.img is at this location and looks 
                       in partition 112 for .
    Operating System:  Linux Mint 17 Qiana
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sdb2: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

sdb5: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953523055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048       206,847       204,800   7 NTFS / exFAT / HPFS
/dev/sda2             206,848 1,953,519,615 1,953,312,768   7 NTFS / exFAT / HPFS


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953523055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1    *          2,048 1,940,942,847 1,940,940,800  83 Linux
/dev/sdb2       1,940,944,894 1,953,521,663    12,576,770   5 Extended
/dev/sdb5       1,940,944,896 1,953,521,663    12,576,768  82 Linux swap / Solaris


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        3E3418333417ED21                       ntfs       System Reserved
/dev/sda2        90861B75861B5B54                       ntfs       
/dev/sdb1        eca0464c-3fd5-4622-b6bc-a8929fad63c8   ext4       
/dev/sdb5        9c2b0823-879a-4d9b-946b-ea5bf9286760   swap       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda1        /mnt/3E3418333417ED21    fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda2        /mnt/90861B75861B5B54    fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sdb1        /                        ext4       (rw,errors=remount-ro)


=========================== sdb1/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
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  eca0464c-3fd5-4622-b6bc-a8929fad63c8
else
  search --no-floppy --fs-uuid --set=root eca0464c-3fd5-4622-b6bc-a8929fad63c8
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_GB
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  fi
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 ###
function gfxmode {
	set gfxpayload="$1"
	if [ "$1" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ ${recordfail} != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Linux Mint 17 Cinnamon 64-bit, 3.13.0-24-generic (/dev/sdb1)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	gfxmode $linux_gfx_mode
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  eca0464c-3fd5-4622-b6bc-a8929fad63c8
	else
	  search --no-floppy --fs-uuid --set=root eca0464c-3fd5-4622-b6bc-a8929fad63c8
	fi
	linux	/boot/vmlinuz-3.13.0-24-generic root=UUID=eca0464c-3fd5-4622-b6bc-a8929fad63c8 ro   quiet splash $vt_handoff
	initrd	/boot/initrd.img-3.13.0-24-generic
}
menuentry 'Linux Mint 17 Cinnamon 64-bit, 3.13.0-24-generic (/dev/sdb1) -- recovery mode' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  eca0464c-3fd5-4622-b6bc-a8929fad63c8
	else
	  search --no-floppy --fs-uuid --set=root eca0464c-3fd5-4622-b6bc-a8929fad63c8
	fi
	echo	'Loading Linux 3.13.0-24-generic ...'
	linux	/boot/vmlinuz-3.13.0-24-generic root=UUID=eca0464c-3fd5-4622-b6bc-a8929fad63c8 ro recovery nomodeset 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.13.0-24-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/15_Windows ###
### END /etc/grub.d/15_Windows ###

### BEGIN /etc/grub.d/15_windows ###
[color=#0000BF]menuentry "Windows 7" {
set root=(hd0,2)
chainloader +1
}[/color]
### END /etc/grub.d/15_windows ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
exec tail -n +3 $0
# 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.

menuentry "Windows vista/7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
chainloader +1
}
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sdb1/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
# / was on /dev/sdb1 during installation
UUID=eca0464c-3fd5-4622-b6bc-a8929fad63c8 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sdb5 during installation
UUID=9c2b0823-879a-4d9b-946b-ea5bf9286760 none            swap    sw              0       0
/dev/disk/by-uuid/3E3418333417ED21 /mnt/3E3418333417ED21 auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/90861B75861B5B54 /mnt/90861B75861B5B54 auto nosuid,nodev,nofail,x-gvfs-show 0 0
--------------------------------------------------------------------------------

=================== sdb1: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)


========= Devices which don't seem to have a corresponding hard drive: =========

no raid sets 

=============================== StdErr Messages: ===============================

ERROR: jmicron: wrong # of devices in RAID set "jmicron_Stew001" [1/2] on /dev/sda
ERROR: removing inconsistent RAID set "jmicron_Stew001"
ERROR: no RAID set found
ERROR: jmicron: wrong # of devices in RAID set "jmicron_Stew001" [1/2] on /dev/sda
ERROR: only one argument allowed for this option
ERROR: jmicron: wrong # of devices in RAID set "jmicron_Stew001" [1/2] on /dev/sda
ERROR: removing inconsistent RAID set "jmicron_Stew001"
ERROR: no RAID set found
ERROR: jmicron: wrong # of devices in RAID set "jmicron_Stew001" [1/2] on /dev/sda
ERROR: removing inconsistent RAID set "jmicron_Stew001"
ERROR: no RAID set found
cat: /tmp/BootInfo-d5xp7Mq0/Tmp_Log: No such file or directory
ERROR: jmicron: wrong # of devices in RAID set "jmicron_Stew001" [1/2] on /dev/sda
ERROR: only one argument allowed for this option
  No volume groups found
 
So thease two bits of has entered two optinons to boot windows in to the grub menu both of which come up with a black screen saying partition not reconised press any key to continue.

this is what happens when i sudo udate-grub

Code: Select all

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
  No volume groups found
/etc/grub.d/40_custom: 2: /etc/grub.d/40_custom: }#!/bin/sh: not found
done
I hope thats enough information for some to help find an answer to this. like i said at the start i am new to linux and i like to find the answers to my problems my self but now am giveing in and asking for help.
Last edited by si-co on Sat Jun 14, 2014 5:55 pm, edited 1 time in total.
Biker
Level 5
Level 5
Posts: 512
Joined: Sat Apr 17, 2010 1:58 am
Location: Where my hat is

Re: Dual boot problem windows7 mint separate hard drives

Post by Biker »

Try sudo grub-mkconfig -o /boot/grub/grub.cfg
Linux User #384279
si-co

Re: Dual boot problem windows7 mint separate hard drives

Post by si-co »

Hello biker thank you for your reply

this is the out put of sudo grub-mkconfig -o /boot/grub/grub.cfg

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
No volume groups found
/etc/grub.d/40_custom: 2: /etc/grub.d/40_custom: }#!/bin/sh: not found
done


just the same as sudo update-grub
Biker
Level 5
Level 5
Posts: 512
Joined: Sat Apr 17, 2010 1:58 am
Location: Where my hat is

Re: Dual boot problem windows7 mint separate hard drives

Post by Biker »

Mount sda and then try it again.
Linux User #384279
woodsman
Level 4
Level 4
Posts: 305
Joined: Tue May 11, 2010 10:22 pm

Re: Dual boot problem windows7 mint separate hard drives

Post by woodsman »

I install LMDE on a second drive. When I create the second system, I install Grub to sda --- the original Windows drive, and not to sdb the Mint drive. Perhaps that is what you need to do?

I do that because without changing anything, the original Windows remains the "first" drive in the boot process. You can edit the BIOS or Grub to reverse the boot order, but if the BIOS is ever reset then the Windows drive again becomes the "first" drive in the boot order. Thus I just install Grub to sda all the time rather than sdb.

As a precaution, I ensure the Windows drive is booting by itself without the Mint drive connected. Then I boot into Mint, mount the Windows partition, and copy the original Windows MBR. I copy the MBR to both my Mint /boot directory and to the root of the Windows system.

To copy the MBR:

dd if=/dev/sda of=/boot/windows_mbr_image.bin count=1 bs=512

I then copy /boot/windows_mbr_image.bin to the root of the Windows drive. This provides me a simple way to restore the Windows MBR.

After I have both systems booting as expected, I then copy the new sda MBR, which is from Grub and not Windows, to the Mint /boot directory. Same basic command but a different file name:

dd if=/dev/sda of=/boot/mint_mbr_image.bin count=1 bs=512

Thereafter I have copies of the MBR for both systems should the need arise to use either. Restoring either MBR is the same basic command but reversed:

dd if=/boot/windows_mbr_image.bin of=/dev/sda

There is no need for the count or bs options when restoring the files.

I use the Grub super disk to boot into either system until I get everything configured the way I want.
si-co

Re: Dual boot problem windows7 mint separate hard drives

Post by si-co »

Biker wrote:Mount sda and then try it again.

Hi biker how do i go about mounting sda? sorry still just finding my way around linux.
si-co

Re: Dual boot problem windows7 mint separate hard drives

Post by si-co »

woodsman wrote:I install LMDE on a second drive. When I create the second system, I install Grub to sda --- the original Windows drive, and not to sdb the Mint drive. Perhaps that is what you need to do?

I do that because without changing anything, the original Windows remains the "first" drive in the boot process. You can edit the BIOS or Grub to reverse the boot order, but if the BIOS is ever reset then the Windows drive again becomes the "first" drive in the boot order. Thus I just install Grub to sda all the time rather than sdb.

As a precaution, I ensure the Windows drive is booting by itself without the Mint drive connected. Then I boot into Mint, mount the Windows partition, and copy the original Windows MBR. I copy the MBR to both my Mint /boot directory and to the root of the Windows system.

To copy the MBR:

dd if=/dev/sda of=/boot/windows_mbr_image.bin count=1 bs=512

I then copy /boot/windows_mbr_image.bin to the root of the Windows drive. This provides me a simple way to restore the Windows MBR.

After I have both systems booting as expected, I then copy the new sda MBR, which is from Grub and not Windows, to the Mint /boot directory. Same basic command but a different file name:

dd if=/dev/sda of=/boot/mint_mbr_image.bin count=1 bs=512

Thereafter I have copies of the MBR for both systems should the need arise to use either. Restoring either MBR is the same basic command but reversed:

dd if=/boot/windows_mbr_image.bin of=/dev/sda

There is no need for the count or bs options when restoring the files.

I use the Grub super disk to boot into either system until I get everything configured the way I want.

Hi woodsman thank you for your reply

at one point i did have grub installed on both hard drives and it still was not seeing widows infact i could not boot windows7 at all. thats why i thourght i would fix the windows mbr.
woodsman
Level 4
Level 4
Posts: 305
Joined: Tue May 11, 2010 10:22 pm

Re: Dual boot problem windows7 mint separate hard drives

Post by woodsman »

at one point i did have grub installed on both hard drives and it still was not seeing widows infact i could not boot windows7 at all. thats why i thourght i would fix the windows mbr.
Easy to get confused along the way. :)

Try the same steps after restoring order. That is, get Windows booting by itself. Then start Mint and install grub to sda. See what happens.
si-co

Re: Dual boot problem windows7 mint separate hard drives

Post by si-co »

woodsman wrote:
at one point i did have grub installed on both hard drives and it still was not seeing widows infact i could not boot windows7 at all. thats why i thourght i would fix the windows mbr.
Easy to get confused along the way. :)

Try the same steps after restoring order. That is, get Windows booting by itself. Then start Mint and install grub to sda. See what happens.
Thanks Woodsman all sorted now used "boot repair" http://sourceforge.net/projects/boot-re ... =directory to install grub on both hard drives, In BIOS set hard drive sda (windows7 hard drive) to boot first. so now i have two entries in grub, both now boot to windows7.

Code: Select all

   Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    in partition 112 for .
 => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    in partition 112 for .

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sdb1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  Grub2 (v1.99)
    Boot sector info:  Grub2 (v1.99) is installed in the boot sector of sdb1 
                       and looks at sector 1489283600 of the same hard drive 
                       for core.img. core.img is at this location and looks 
                       in partition 112 for .
    Operating System:  Linux Mint 17 Qiana
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sdb2: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

sdb5: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953523055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048       206,847       204,800   7 NTFS / exFAT / HPFS
/dev/sda2             206,848 1,953,519,615 1,953,312,768   7 NTFS / exFAT / HPFS


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953523055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1    *          2,048 1,940,942,847 1,940,940,800  83 Linux
/dev/sdb2       1,940,944,894 1,953,521,663    12,576,770   5 Extended
/dev/sdb5       1,940,944,896 1,953,521,663    12,576,768  82 Linux swap / Solaris


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        3E3418333417ED21                       ntfs       System Reserved
/dev/sda2        90861B75861B5B54                       ntfs       
/dev/sdb1        eca0464c-3fd5-4622-b6bc-a8929fad63c8   ext4       
/dev/sdb5        9c2b0823-879a-4d9b-946b-ea5bf9286760   swap       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda1        /mnt/3E3418333417ED21    fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda2        /mnt/90861B75861B5B54    fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sdb1        /                        ext4       (rw,errors=remount-ro)


=========================== sdb1/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
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  eca0464c-3fd5-4622-b6bc-a8929fad63c8
else
  search --no-floppy --fs-uuid --set=root eca0464c-3fd5-4622-b6bc-a8929fad63c8
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_GB
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=10
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  fi
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 ###
function gfxmode {
	set gfxpayload="$1"
	if [ "$1" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ ${recordfail} != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Linux Mint 17 Cinnamon 64-bit, 3.13.0-24-generic (/dev/sdb1)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	gfxmode $linux_gfx_mode
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  eca0464c-3fd5-4622-b6bc-a8929fad63c8
	else
	  search --no-floppy --fs-uuid --set=root eca0464c-3fd5-4622-b6bc-a8929fad63c8
	fi
	linux	/boot/vmlinuz-3.13.0-24-generic root=UUID=eca0464c-3fd5-4622-b6bc-a8929fad63c8 ro   quiet splash $vt_handoff
	initrd	/boot/initrd.img-3.13.0-24-generic
}
menuentry 'Linux Mint 17 Cinnamon 64-bit, 3.13.0-24-generic (/dev/sdb1) -- recovery mode' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  eca0464c-3fd5-4622-b6bc-a8929fad63c8
	else
	  search --no-floppy --fs-uuid --set=root eca0464c-3fd5-4622-b6bc-a8929fad63c8
	fi
	echo	'Loading Linux 3.13.0-24-generic ...'
	linux	/boot/vmlinuz-3.13.0-24-generic root=UUID=eca0464c-3fd5-4622-b6bc-a8929fad63c8 ro recovery nomodeset 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.13.0-24-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/15_Windows ###
### END /etc/grub.d/15_Windows ###

### BEGIN /etc/grub.d/15_windows ###
menuentry "Windows 7" {
set root=(hd0,1)
chainloader +1
}
### END /etc/grub.d/15_windows ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
exec tail -n +3 $0
# 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.

menuentry "Windows vista/7 (loader) (on /dev/sda1)" {
set root=(hd0,1)
chainloader +1
}
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sdb1/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
# / was on /dev/sdb1 during installation
UUID=eca0464c-3fd5-4622-b6bc-a8929fad63c8 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sdb5 during installation
UUID=9c2b0823-879a-4d9b-946b-ea5bf9286760 none            swap    sw              0       0
/dev/disk/by-uuid/3E3418333417ED21 /mnt/3E3418333417ED21 auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/90861B75861B5B54 /mnt/90861B75861B5B54 auto nosuid,nodev,nofail,x-gvfs-show 0 0
Code i added to grub in blue

### BEGIN /etc/grub.d/40_custom ###
exec tail -n +3 $0
# 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.

menuentry "Windows vista/7 (loader) (on /dev/sda1)" {
set root=(hd0,1)
chainloader +1
}

### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/15_windows ###
menuentry "Windows 7" {
set root=(hd0,1)
chainloader +1
}

### END /etc/grub.d/15_windows ###


Thanks again for your help woodsman i knew there would be an easy answer to this guess some times you really cant see the forest for the trees!. :D
woodsman
Level 4
Level 4
Posts: 305
Joined: Tue May 11, 2010 10:22 pm

Re: [SOLVED] Dual boot problem windows7 mint separate hard d

Post by woodsman »

Often I find that just explaining the problem sows the seeds for solving. Some folks call that rubber ducking. :)
Post Reply

Return to “Installation & Boot”