Dualboot with Windows from secondary MBR drive using e.g. grub/refind

Hi!
I'm trying to get my secondary drive with Windows 8, installed in MBR-mode to boot using either grub2, refind or any other suitable bootloader. "bootinfoscript" return:
Boot Info Script 0.61 [1 April 2012]
============================= Boot Info Summary: ===============================
=> is installed in the MBR of /dev/sda.
=> Windows is installed in the MBR of /dev/sdb.
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /grub/grub.cfg /efi/arch_grub/grubx64.efi
/efi/refind/refind_x64.efi
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Arch Linux ()
Boot files: /etc/fstab
sdb1: __________________________________________________________________________
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
sdb2: __________________________________________________________________________
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 /Windows/System32/winload.exe
sdb3: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 55.9 GiB, 60022480896 bytes, 117231408 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 1 117,231,407 117,231,407 ee GPT
GUID Partition Table detected.
Partition Start Sector End Sector # of Sectors System
/dev/sda1 40 409,639 409,600 EFI System partition
/dev/sda2 409,640 115,752,999 115,343,360 Data partition (Linux)
Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 1.4 TiB, 1500301910016 bytes, 2930277168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdb1 2,048 718,847 716,800 7 NTFS / exFAT / HPFS
/dev/sdb2 718,848 882,276,351 881,557,504 7 NTFS / exFAT / HPFS
/dev/sdb3 * 882,276,352 2,930,272,255 2,047,995,904 af HFS / HFS+
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 39D2-CCE0 vfat
/dev/sda2 0c5d5c14-1e89-44ec-af4d-7b180ed693bc ext4
/dev/sdb1 780CD4910CD44BAE ntfs System Reserved
/dev/sdb2 105CD9745CD95556 ntfs
/dev/sdb3 bb50e1d4-cc4c-43cc-8597-54815366422f ext4
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda1 /boot vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda2 / ext4 (rw,noatime,discard,data=ordered)
/dev/sdb3 /home ext4 (rw,relatime,data=ordered)
============================= sda1/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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
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 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_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 0c5d5c14-1e89-44ec-af4d-7b180ed693bc
else
search --no-floppy --fs-uuid --set=root 0c5d5c14-1e89-44ec-af4d-7b180ed693bc
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_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_archlinux ###
menuentry "Arch Linux pkg-linux kernel" --class arch-linux --class arch --class gnu-linux --class gnu --class os {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
fi
set gfxpayload=keep
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 39D2-CCE0
else
search --no-floppy --fs-uuid --set=root 39D2-CCE0
fi
echo 'Loading Arch Linux pkg-linux kernel ...'
linux /vmlinuz-linux root=UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc rw quiet
echo 'Loading Arch Linux pkg-linux kernel initramfs ...'
initrd /initramfs-linux.img
menuentry "Arch Linux pkg-linux kernel (fallback initramfs)" --class arch-linux --class arch --class gnu-linux --class gnu --class os {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
fi
set gfxpayload=keep
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 39D2-CCE0
else
search --no-floppy --fs-uuid --set=root 39D2-CCE0
fi
echo 'Loading Arch Linux pkg-linux kernel ...'
linux /vmlinuz-linux root=UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc rw quiet
echo 'Loading Arch Linux pkg-linux kernel fallback initramfs ...'
initrd /initramfs-linux-fallback.img
### END /etc/grub.d/10_archlinux ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0c5d5c14-1e89-44ec-af4d-7b180ed693bc' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 39D2-CCE0
else
search --no-floppy --fs-uuid --set=root 39D2-CCE0
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-0c5d5c14-1e89-44ec-af4d-7b180ed693bc' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-0c5d5c14-1e89-44ec-af4d-7b180ed693bc' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 39D2-CCE0
else
search --no-floppy --fs-uuid --set=root 39D2-CCE0
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
### END /etc/grub.d/10_linux ###
### 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/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.
menuentry "Microsoft Windows Vista/7/8 BIOS-MBR" {
insmod part_msdos
insmod ntfs
insmod search_fs_uuid
insmod ntldr
search --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 780CD4910CD44BAE
ntldr /bootmgr
### 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 ###
### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###
=================== sda1: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
=============================== sda2/etc/fstab: ================================
# /etc/fstab: static file system information
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda2
UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc / ext4 rw,defaults,noatime,discard,data=ordered 0 1
# /dev/sda1
UUID=39D2-CCE0 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
# /dev/sdb3
UUID=bb50e1d4-cc4c-43cc-8597-54815366422f /home ext4 rw,relatime,data=ordered 0 2
=============================== StdErr Messages: ===============================
cat: /tmp/BootInfo-2fUreQzU/Tmp_Log: No such file or directory
No volume groups found
mdadm: No arrays found in config file or automatically
As seen, windows is installed in the MBR of /dev/sdb and grub, using the chainloader should be able to boot it (i guess).
I have the following in my 40-custom.
menuentry "Microsoft Windows Vista/7/8 BIOS-MBR" {
insmod part_msdos
insmod ntfs
insmod search_fs_uuid
insmod ntldr
search --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 780CD4910CD44BAE
ntldr /bootmgr
where the first is  "--hint-bios= ..." is given by
sudo grub-probe --target=hints_string -d /dev/sdb1
and the UUID by
sudo grub-probe --target=fs_uuid -d /dev/sdb1
When I try to boot the above configuration, I get an error saying that "ntldr cannot be found" - and indeed, while I find "ntldr.mod" in "/usr/lib/grub/i386-pc/" I cannot find it in "/usr/lib/grub/x86_64-efi/".
I've also tried getting refind to identify "bootmgr" from windows without success. I guess it does not support NTFS or something.
Anyway, do anyone have any idea of how to get this to work - without reinstalling Windows in EFI-mode?
Thanks in advance,
elt

dieelt wrote:
Hi!
I'm trying to get my secondary drive with Windows 8, installed in MBR-mode to boot using either grub2, refind or any other suitable bootloader. "bootinfoscript" return:
Boot Info Script 0.61 [1 April 2012]
============================= Boot Info Summary: ===============================
=> is installed in the MBR of /dev/sda.
=> Windows is installed in the MBR of /dev/sdb.
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /grub/grub.cfg /efi/arch_grub/grubx64.efi
/efi/refind/refind_x64.efi
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Arch Linux ()
Boot files: /etc/fstab
sdb1: __________________________________________________________________________
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
sdb2: __________________________________________________________________________
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 /Windows/System32/winload.exe
sdb3: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 55.9 GiB, 60022480896 bytes, 117231408 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 1 117,231,407 117,231,407 ee GPT
GUID Partition Table detected.
Partition Start Sector End Sector # of Sectors System
/dev/sda1 40 409,639 409,600 EFI System partition
/dev/sda2 409,640 115,752,999 115,343,360 Data partition (Linux)
Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 1.4 TiB, 1500301910016 bytes, 2930277168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdb1 2,048 718,847 716,800 7 NTFS / exFAT / HPFS
/dev/sdb2 718,848 882,276,351 881,557,504 7 NTFS / exFAT / HPFS
/dev/sdb3 * 882,276,352 2,930,272,255 2,047,995,904 af HFS / HFS+
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 39D2-CCE0 vfat
/dev/sda2 0c5d5c14-1e89-44ec-af4d-7b180ed693bc ext4
/dev/sdb1 780CD4910CD44BAE ntfs System Reserved
/dev/sdb2 105CD9745CD95556 ntfs
/dev/sdb3 bb50e1d4-cc4c-43cc-8597-54815366422f ext4
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda1 /boot vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda2 / ext4 (rw,noatime,discard,data=ordered)
/dev/sdb3 /home ext4 (rw,relatime,data=ordered)
============================= sda1/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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
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 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_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 0c5d5c14-1e89-44ec-af4d-7b180ed693bc
else
search --no-floppy --fs-uuid --set=root 0c5d5c14-1e89-44ec-af4d-7b180ed693bc
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_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_archlinux ###
menuentry "Arch Linux pkg-linux kernel" --class arch-linux --class arch --class gnu-linux --class gnu --class os {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
fi
set gfxpayload=keep
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 39D2-CCE0
else
search --no-floppy --fs-uuid --set=root 39D2-CCE0
fi
echo 'Loading Arch Linux pkg-linux kernel ...'
linux /vmlinuz-linux root=UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc rw quiet
echo 'Loading Arch Linux pkg-linux kernel initramfs ...'
initrd /initramfs-linux.img
menuentry "Arch Linux pkg-linux kernel (fallback initramfs)" --class arch-linux --class arch --class gnu-linux --class gnu --class os {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
fi
set gfxpayload=keep
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 39D2-CCE0
else
search --no-floppy --fs-uuid --set=root 39D2-CCE0
fi
echo 'Loading Arch Linux pkg-linux kernel ...'
linux /vmlinuz-linux root=UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc rw quiet
echo 'Loading Arch Linux pkg-linux kernel fallback initramfs ...'
initrd /initramfs-linux-fallback.img
### END /etc/grub.d/10_archlinux ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0c5d5c14-1e89-44ec-af4d-7b180ed693bc' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 39D2-CCE0
else
search --no-floppy --fs-uuid --set=root 39D2-CCE0
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-0c5d5c14-1e89-44ec-af4d-7b180ed693bc' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-0c5d5c14-1e89-44ec-af4d-7b180ed693bc' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 39D2-CCE0
else
search --no-floppy --fs-uuid --set=root 39D2-CCE0
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
### END /etc/grub.d/10_linux ###
### 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/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.
menuentry "Microsoft Windows Vista/7/8 BIOS-MBR" {
insmod part_msdos
insmod ntfs
insmod search_fs_uuid
insmod ntldr
search --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 780CD4910CD44BAE
ntldr /bootmgr
### 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 ###
### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###
=================== sda1: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
=============================== sda2/etc/fstab: ================================
# /etc/fstab: static file system information
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda2
UUID=0c5d5c14-1e89-44ec-af4d-7b180ed693bc / ext4 rw,defaults,noatime,discard,data=ordered 0 1
# /dev/sda1
UUID=39D2-CCE0 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
# /dev/sdb3
UUID=bb50e1d4-cc4c-43cc-8597-54815366422f /home ext4 rw,relatime,data=ordered 0 2
=============================== StdErr Messages: ===============================
cat: /tmp/BootInfo-2fUreQzU/Tmp_Log: No such file or directory
No volume groups found
mdadm: No arrays found in config file or automatically
As seen, windows is installed in the MBR of /dev/sdb and grub, using the chainloader should be able to boot it (i guess).
I have the following in my 40-custom.
menuentry "Microsoft Windows Vista/7/8 BIOS-MBR" {
insmod part_msdos
insmod ntfs
insmod search_fs_uuid
insmod ntldr
search --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 780CD4910CD44BAE
ntldr /bootmgr
where the first is  "--hint-bios= ..." is given by
sudo grub-probe --target=hints_string -d /dev/sdb1
and the UUID by
sudo grub-probe --target=fs_uuid -d /dev/sdb1
When I try to boot the above configuration, I get an error saying that "ntldr cannot be found" - and indeed, while I find "ntldr.mod" in "/usr/lib/grub/i386-pc/" I cannot find it in "/usr/lib/grub/x86_64-efi/".
I've also tried getting refind to identify "bootmgr" from windows without success. I guess it does not support NTFS or something.
Anyway, do anyone have any idea of how to get this to work - without reinstalling Windows in EFI-mode?
Thanks in advance,
elt
UEFI GRUB(2) does not support booting BIOS boot loaders in non-Apple systems. For Apple Macs that support exists in form of 'appleloader' grub command. You might have better luck with rEFInd bios boot support but as per its author Rod Smith (srs5694) even that support is severely limited http://rodsbooks.com/refind/using.html#legacy .
You 40_custom is correct but that will work only in bios grub(2), not in uefi grub(2). 'ntldr' grub module is specific to bios grub(2).
Last edited by the.ridikulus.rat (2014-04-13 20:09:25)

Similar Messages

  • Run Windows from an external drive......

    I want to boot Windows from an external drive. Why would Apple not allow this to be done. It makes no sence to me at all. You would still have to run Windows from the intel-Mac. To make you waste good MacOS space on the internal drive is a shame. I know... I can remove Windows and re-gain my "lost" space. However, my kid needs to run some school programs that are in the Windows format only. I hope that someday Apple will let BootCamp run from an external drive also.
    Apple //GS

    I run OS X from one drive, have my home account on a second drive and improves performance.
    VMware image is on non OS X boot drive which I think helps so there isn't I/O contention.
    OS X shouldn't really be doing much paging regardless of what you are running if you have enough memory. A lot of system and application paging 'maps' to VM, and you can't disable or want to with either Windows or OS X. The Windows \C: is going to be wherever the VM client is located.
    Now, whether VMware or Parallels running as an application is paging and using OS X swap, that just depends on your system memory, and goes to OS X boot drive like any application.
    OS X can run off external and you could install some windows programs to use an external drive (FAT or NTFS partition) to free up space also. Or use Parallels and put the VM there.

  • ITunes Match now stalls on step 1.  I have a PC with Windows Vista.  I've use Match for a long time

    iTunes Match now stalls on step 1.  I have a PC with Windows Vista.  I've used iTunes Match for a long time & it has worked well until last week.  Most of my songs now have a dotted outlined cloud beside them & I can't download to my phone.  6 new albums can't be seen at all.  I've turned off Match (with shift key down) & turned it back on - restricted my upload speed to 75% of max - I even uninstalled iTunes & re-installed it.  Any suggestions?

    iTunes Match is stalled in the same place again today.  Step 1 seems to have completed as the blue progress bar is complete.  The message says "Delivering your iTunes Match results..."  When I went to bed last night, this is where iTunes was stuck.  But this morning, Match had stopped trying to "deliver."  It obviously did not finish because 6 new albums do not show up on my iPhone 5 - all of the 3 steps on the Match page were grayed out this morning & the "Start" button was available.
    This is what I did yesterday - I looked at My Music and clicked "Songs."  I then added the "iCloud" column and sorted by that field.  I found about 100 files that had a problem of some sort (cloud with exclamation point inside).  Each of them had lost track of where the music file was - even though the music files were exactly where they should have been.  I re-linked (one at a time) all of the music files to the song titles.  In the cloud field one song was described as "ineligible for iTunes Match."  It had a could with a line drawn through it.   I didn't know what that meant, so I deleted the song.
    I then turned off iTunes Match holding the shift key down & iTunes began collecting information from my library.  This took several hours but it did seem to complete because it changed to the "delivering results" message.  However, this morning I noticed that all of the files I re-linked yesterday still had the "error cloud" symbol today - a cloud with an exclamation mark inside.  Yesterday these songs wouldn't play until I re-linked the files.  Today they will play as expected, but they still have the "error cloud.'  To add to my confusion albums marked with the "error file" are still able to be downloaded to my phone, but the songs with the "error cloud" will not play smoothly on my PC.  They stutter regularly throughout playback.  However, if I download one of those songs or albums to my phone, it plays perfectly.
    I hope this helps someone to explain what my problem is & the appropriate solution.  I have a little more than 12,000 songs in my library in case that makes a difference.  Should I just delete the files with he "error cloud"?  All of the songs appear to be still in the cloud because they are available for download to my phone.

  • Could we write and read from a external drive using a IPad?

    √could we write and read from a external drive using a IPad?

    No, the iPad doesn't work that way. The only thing you can access is camera cards (with the adaptor).
    Matt

  • Safari 6.0, what happened with option to open with windows from last session?

    Made the upgrade from Snow Leopard to Mountain Lion and realized that I don't longer have the option to open Safari with windows from last session (Preferences->General). The option has been removed:

    They don't. I can access them by history ->reopen all windows from last session, but that's not what I want.
    Does anybody else have this problem or is it just me that lost that option on Preferences -> General?

  • I have the app "viPlay" on my iPad and iPhone. Is there any way that it could be available for the Apple TV? I'd like to access my personal videos from my hard drive using the Apple TV through the 'viPlay' app.

    I have the app "viPlay" on my iPad and iPhone. Is there any way that it could be available for the Apple TV? I'd like to access my personal videos from my hard drive using the Apple TV through the 'viPlay' app.

    Welcome to the Apple Community.
    Nobody here will have any information about that since the community is only made up of users like you or I. Anything else is mere speculation and speculation is not permitted here under the Terms of Use for these communities.
    Any responses you may receive may well be removed and would be wholly unreliable in any case.
    If you believe that Apple's product may be enhanced in anyway you can leave feedback here.

  • I have a pc with windows 7 professional.  I use adobe cs6 production suite and all of a sudden premiere pro stopped working.  I had installed a program recently and created a system restore point prior to it's installation.  I installed Zaxwerks proanimat

    I have a pc with windows 7 professional.  I use adobe cs6 production suite and all of a sudden premiere pro stopped working.  I had installed a program recently and created a system restore point prior to it's installation.  I installed Zaxwerks proanimator 5.1.  Restored computer back and I now get an error when trying to run any cs6 program it is a configuration error and it says to uninstall and reinstall.Won't uninstall says I have an error 1.  What should I do?

    clean and then reinstall, Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • I'm having trouble with the folder "Automatically add" function. She opens a folder "not added". My machine is a Vaio with Windows 7 home basic antivirus using Microsoft. Regards.

    I'm having trouble with the folder "Automatically add" function. She opens a folder "not added". My machine is a Vaio with Windows 7 home basic antivirus using Microsoft. Regards.

    Its a 64 bits.

  • Export the data with Alias from the alternative table using ODI

    Hi!
    How to export the data from Essbase with Alias from the alternative table using ODI?
    Thanks.

    Are you on 10.1.3.6.x? Then: http://john-goodwin.blogspot.com/2008/09/odi-series-part-2-agent.html
    Are you on 11g? Then: http://john-goodwin.blogspot.com/2010/12/managing-odi-11g-standalone-agents.html
    I will say with only a mild amount of shame and a large amount of gratitude that I installed both releases' agents through John's blog posts.
    Regards,
    Cameron Lackpour
    Edited by: CL on Jun 4, 2012 5:48 PM
    Whoops, had the same link in there twice.

  • T400s Linux/Windows dual boot with Linux from Esata Flash Drive

    This project is about a dual boot Windows/Linux system without using the normal dual boot changes in the bootloader of the windows hard drive. When I started this I found bits and pieces of information on the web but no complete description so I wrote this post.
    I have done a dual boot system on my previous Thinkpad where I had partitioned the hard drive between Linux and windows. For this project I wanted to leave the windows hard drive absolutely intact and unaltered, and boot Linux from a flash drive in the esata port on the back of the T400s. Obviously this uses the F12 boot list function key to boot from the flash. The advantage of this is that Windows is totally unaltered and when I need Linux, I plug in the esata flash drive, hit F12 during the boot cycle and select booting from the esata flash drive. The reason for Esata rather than USB is simply speed. I have a nice fast Linux installation.
    I used the OCZ esata flash drive but suspect any of the alternatives will work. It did not need the accessory usb cable because the Thinkpad powered the esata flash directly.
    To boot from the esata drive I had to make the following changes in the bios
        I left the esata flash plugged in as I went into the bios
        Bios>config>Serial ATA and changed the Sata controller mode option to compatibility
        Restart and back into the Bios
        Bios>startup>boot - in my case the esata flash drive showed up as ATA HDD2 and was excluded from the boot order so I had to un-exclude it and move it to the point in the boot order that I wanted.
    Next I downloaded a linux installation iso and put it on a CD - in my case opensuse. Then booted from the CD
    From now on this instructions are specific to opensuse and yast but can be generalized to whatever Linux is being used.
    In my case yast came up with a good set of suggestions for automatically partitioning the flash drive but then crashed during the partitioning itself. So I rebooted and specified the partitions manually.
        A fat32 partition left as a partition which both windows and Linux could see (in my case about 20% of the drive) (/dev/sdb1)
        An extended partition with the remainder of the drive (/dev/sdb2) which contains the following logical partitions
        A linux Swap partition of 2GB (/dev/sdb5)
        A linux /home partition –the remainder of the drive (/dev/sdb6)
        A linux /root partition of 8GB (/dev/sdb7)
    Yast automatically suggested mount points of C,D,E for the windows partitions. Unfortunately because of the way the Thinkpad hard drive was laid out Yast had C assigned the ThinkPad Service partition and D assigned to the SW_Preload (or main windows partition). However there was an edit function that allows for the reversal of those mount points so that the windows C drive is mounted in Linux as Windows/C thereby avoiding confusion. I had already backed up and removed the Thinkpad factory install data so I did not have to deal with that. Yast suggested Windows/E for the mount point of the FAT32 partition on the flash drive, which I accepted.
    The yast install configurator made all this manual selection easy, and after the manual configuration the partitioning worked perfectly.
    Next step was Linux user configuration which went fine
    Next was booting.
    In the section management tab
        delete the windows 1 and 2 options (since we are not dual booting directly)
    In the boot loader installation tab
        uncheck boot from mbr ( this stops the install from installing Grub and dual boot on the windows c drive
        check boot from root partition (this installs grub and all associated files in the Linux root partition (/dev/sdb6)
    I believe that the correct procedure at this point is to click Boot Loader installation details which will bring up the Grub device map. In the device map there will be a line for the fixed hard drive (aka the windows drive) and a line for the esata flash drive. When the installer started up these were in hard drive and esata drive order. However when we boot directly from the flash the esata drive will be grub drive hd0 and the fixed hard drive will be grub hd1. The device map order needs to be changed to reflect this ie the esata drive should be first not second.
    I did not do this and ended up initially doing Grub command line editing to boot and later manually editing the grub files using information I had previously learned the hard way and through google.
    At this point let the installer go ahead and install Linux. After doing this it should come back and tell you to reboot. Do not do it yet because we need to install the MBR into the flash drive.
    I suspect that there is a way of doing this in Yast running from the Live CD but it was not obvious to me so I used the manual method that I have used before.
    Open a root terminal
    Mount /dev/sdb6 to /mnt/sdb6 (my linux root)
    Touch /mnt/sdb6/boot/grub/flag
    The purpose of this is when we go looking later at the grub command prompt we need an easy to find unique file
    Start grub and do the following
    #grub
                grub> find /boot/grub/flag
                    (hd1,5)    -- the result of the find in my example
                grub> root (hd1,5)   -- using the result of the find in my example
                grub> setup (hd1)   -- install mbr -- my example parameters - if you get this wrong you will trash some other drive!!!
                      hopefully grub announces success
                grub> quit
    Reboot and select the flash drive. In my case I still had the grub devicemap wrong and had to edit the grub commands during boot to tell grub how to find the correct partition and then edit them again after booting
    Typical linux install issues that we all always seem to have and can be solved with a little (or a lot of) google research.
    As I said at the beginning I now have an untouched windows installation and a nice fast Linux installation. I hope that this will be of some use to someone.

    Hi chrissh
    i tried this exact procedure... on the exact same notebook (T400s). However, as soon as I set the 
        Bios>config>Serial ATA to "compatibility", I cannot use my default Windows installation! I immediately get the "blue screen of death".
    I doubt I did anything differently since this is the first step of your procedure and my laptop is brand new!
    any idea? 

  • How do I move all my settings from my old computer with Vista to a New one with Windows 7 ? I'm using V. 14.0.1 on both Systems

    Hello All,
    How do I move all my Settings & Bookmarks from my 5 year old Computer running Vista and Firefox V. 14.0.1 , to my New Computer with Windows 7 and also Firefox 14.0.1 ?
    Thank you very much.

    You can copy your Firefox profile from one computer to the other and continue working with almost no changes :)
    [[Back up and restore information in Firefox profiles]]
    A really easy way to do this is the following:
    #Click the Start button, type %APPDATA% into the search bar, press Enter (on your old PC)
    #Right click on the Mozilla folder, copy to a thumb drive (or something you can use to transfer it to your new PC)
    #Go to %APPDATA% the same way on your new computer
    #If the Mozilla folder already exists, I'd either delete it or rename it
    #Paste the Mozilla folder into the same place on your new PC
    #then upgrade to Firefox 15
    You can also use Firefox Sync. [[How do I set up Firefox Sync?]]

  • W541: Cannot boot from USB created with Windows 8 create recovery drive

    Hello, I have just bought a W541, and want to install the supplied Windows 8 on an m.2 SSD.I created the recovery drive on a USB following the instructions in the User Manual, but the recover image procedure under Advanced Options cannot find the USB.During the re-image step, it fails to find a drive with a valid image.I've confirmed using the command window available under the Advanced Options that the USB is mounted Searching these forums, I found the following, which describes a similar problem for a T540:https://forums.lenovo.com/t5/ThinkPad-W-Series-Laptops/Lenovo-W540-won-t-boot-from-USB-flash-drive-ThinkPad/m-p/1500902#M39097 This implies that the USB should first be formatted with FAT32 before use, which cannot work, since FAT32 only has a maximum 4 GB  partition, whereas when copied to the USB, the Windows 8 recovery drive occupies nearly 10 GB. Is it possible to specify the boot order from insde the BIOS? I could only find an entry under Security about UEFI boot enabling, nothing about the boot order. Can anyone help?Paul    

    Hello Z, thanks for the reply. I tried another USB drive, and created a recovery drive, as before.This time it was able to detect the presence of the drive when I tapped on the Enter key when starting up, followed by the F12 key.  However, there are still problems when I clicked through the options:Choose the languageChoose your keyboard layoutTroubleshootAdvanced optionsSystem Image Recovery At this point I am offered the option Windows 8.1.When I select this, it indicates it is scanning for system disks, and then displays the the pop-up window "Re-image your computer": "Windows cannot find a system image on this computer" Why does this happen if it detected that there was a Windows 8.1 installation on the USB? I've spent a whole day now on this. Luckily, if I can't solve it, the machine is new and I can send it back to Lenovo, and ask to have it re-imaged with the downgrade option to Windows 7.

  • Install PIXMA MG5320 on my second computor with windows 8 software/ .printer drive already in use.

    I installed the printer on my wifes computor without and issues. Now I am attempting to install it on my computor. I am getting blocked in the installation point where you select all the software needed . when i hit ok it goes into the install mode but a window pops up saying printer driver is already in use. I never had a printer associated with this computor ...thisis the first. what do I do?

    Hey addonag!
    The reason this is occurring is because the driver bundled with Windows 8 is already installed on your computer.  This happened automatically when the printer was connected to your computer through a USB cable.  The installation does not overwrite this.  All you need to do is uninstall the bundled driver and then this will install correctly.  Please perform the following to do this:
    1.  On your keyboard, hold the windows key and press " X ".
    2.  Click Control Panel.
    3.  Select Devices and Printers.  The Devices and Printers window opens.
    4.  Right click the PIXMA MG5320, then click Remove or Delete.
    5.  Confirm deletion.
    6.  Disconnect the USB cable if connected.
    7.  Reinstall with the disc that came with the printer.
    I hope this helps.

  • How to restrict "Open Applications" window from showing C drive? Or use the Windows Explorer "Open" Window?

    Hi, Im new to JDeveloper and I work in a school which requires restriction of the C: Drive. Does any one know how I can either stop the "Open Applications" dialog from showing this drive or Use the Windows Explorer "Open" dialog window to browse files, the drive has been hidden and restricted using GPO but JDeveloper shows the C: drive?
    Any help is much appreciated.

    Hi and thanks Timo. We are using 12c. On the Windows side of things, we are using Win7 and we have hidden the drives we don't want the user to see using GPO but obviously Jdev then shows these drives in its "Open Applications" Window and allows access. As far as the environmental variable is concerned this is something that I put in place.
    Many thanks for your reply and the link to the tech doc.
    Nigel

  • Options in running Windows from an mSATA drive

    I recently ordered an x220 and expect to receive it this week. I also ordered an mSATA drive that I would like to install. Once I have it installed, I am not sure the best method to install Windows to the new drive and would appreciate some feedback.
    I don't really like the idea of cloning the HDD to the mSATA because of solid-state disk alignment issues and degredaded performance. Also, I believe Windows 7 will correctly configure itself to utilize a solid-state when it goes through the installation process, and simply cloning the HDD will not give Windows an opprotunity to perform the configurations.
    I could install Windows from scratch.  I like that this option will ensure Windows will configure itself for solid-state drives. I am concerned, however, that I will not be able to reinstall all of the Lenovo drivers and applications as correctly as they should. I reviewed the User Guide for my x220 (available here) under the section of installing a new OS, and it points to registry patches to update Windows and mentions downloading various drivers from the Lenovo site. If Lenovo integrates into Windows to the degree that it requires manual registry edits, I'm not sure I want to attempt to manually place the Lenovo software on top of a plain Windows installation.
    The third choice I see, although I'm not sure it will work, is burning the backup recovery media and using this to install the Lenovo configured OS onto the mSATA drive. I question if this will work because if the recovery process is only dumping flat files into the partition, it will not configure Windows properly to utilize a solid-state disk. If, however, the recovery process is a true Windows installation, it should determine that I am utilizing a solid-state and should adjust its configuration accordingly. Does anyone know how the recovery process works?
    If you were in my shoes, how would you proceed with getting Windows onto the new mSATA drive? Looking forward to any replies, thanks.
    Jesse

    I could do that, but I would suffer write performance loss due to the SSD partition being out of alignment. I found this helpful article that describes what alignment is, and why it is important.
    I think you are probably running your SSD at less than full performance capacity. Since you cloned the original HDD to the SSD, you probably didn't even notice your SSD could be performing faster. You can check you alignment by following this.
    Additionally, if you don't let WIndows detect that it is being installed on a solid state disk, it won't optimize itself for that disk. I am referring to things like disk defragmentation, indexing services, or prefetching. These tasks really only apply to traditional spinning disks, and should not be enabled on a solid state. There are other things that are enabled that could be turned off, such as hibernation. With solid states, it is just as fast or faster to completely shut down the computer rather than hibernate, so why waste the disk space?
    What are other people doing when they install solid states in their lenovos?

Maybe you are looking for

  • ABAP dump error while updating product master in APO

    Hi All, Greetings from Vijay! I need to your help to resolve below issue ; I am getting error ' No simulation parameters could be set for the active version' While i am updating and trying to assign active version to my product master in APO which ar

  • Sales Man wise Sales Report.

    Dear All, I need to develop the Report SalesMan Wise in the below format. *_SL No/Sales Man/Customer/Customer Name/Target of Current Year (Previous Year Sales1.35)/Jan Sales/Feb Sales./Mar Sales/Apr Sales/ till Aug Sales (2011 Year) i.e Last 7 Months

  • Predictive Text not smooth in ios 8.1.3

    Does anyone know why predictive text is not good after updating ios 8.1.3. What's happening ? I turned on and off again and again, but still the same. The previous one is much better. Why?

  • Using TRUNC in timestamps

    Sir, As you know we were using TRUNC function in DATE datatype. But I want to use it with TIMESTAMP datatypes. For example: select trunc(systimestamp,'hh24:mi:ss') from dual; The main idea to get some part of given timestamp without using type conver

  • Consuming WS blues

    Hi Everyone, I just got started on a site which needs to pull data via a SOAP WS. Whilst I have a bit of experience with CF and conventional datasources I have never used a WS before. The WSDL is located here: http://www.villarenters.com/Villarenters