You are not logged in.
Pages: 1
Hi guys,
i have a little problem here booting Windows 7. So i installed Windows 7 with the VirtualBox in raw disk mode directly on my /dev/sda1. I ran os-prober and grub-makecfg -o /boot/grub/grub.cfg.
But when i try to boot Windows all i get is "Error: invalid EFI path"
Any hints for a newbie here please?
peter@antartica ~ $ fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 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
Disk identifier: 0x000c38a6
Device Boot Start End Blocks Id System
/dev/sda1 2048 309125119 154561536 7 HPFS/NTFS/exFAT
/dev/sda2 309125120 976773119 333824000 83 Linux
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdb: 256.1 GB, 256060514304 bytes, 500118192 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 2047 1023+ ee GPT
/dev/sdb2 204800 500084735 249939968 83 Linux
/dev/sdb3 * 2048 204799 101376 b W95 FAT32
Partition table entries are not in disk orderos-prober
No volume groups found
/dev/sda1:Windows 7 (loader):Windows:chainAny other information needed? Thanks
Last edited by r4ptor (2013-04-10 15:41:38)
Offline
Any help guys?
I played around with grub a little while.
My Windows entry looks like this in grub.cfg
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-5C08583C0858177C' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5C08583C0858177C
else
search --no-floppy --fs-uuid --set=root 5C08583C0858177C
fi
chainloader +1
}
### END /etc/grub.d/30_os-prober ###Now i get the error: not a valid boot device.
Strange thing I noticed: it I boot up with pressed option key I get the hardware option to boot Windows. Also this really boots Windows, but before I can log in I get a bluescreen and the system reboots.
Here are results of the bootinfoscript:
Boot Info Script 0.61 [1 April 2012]
============================= Boot Info Summary: ===============================
=> Windows is installed in the MBR of /dev/sda.
=> Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdb.
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:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
sdb1: __________________________________________________________________________
File system: ext4
Boot sector type: SYSLINUX 4.06 2012-10-23
Boot sector info: Syslinux looks at sector 495313616 of /dev/sdb1 for
its second stage. SYSLINUX is installed in the
/boot/syslinux directory. The 2 ADV sectors are not
the same (corrupt).
Operating System: Arch Linux ()
Boot files: /boot/grub/grub.cfg /etc/fstab
/boot/syslinux/syslinux.cfg /boot/syslinux/ldlinux.sys
sdb2: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: According to the info in the boot sector, sdb2 starts
at sector 0. But according to the info from fdisk,
sdb2 starts at sector 2048.
Operating System:
Boot files: /efi/arch_grub/grubx64.efi
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 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 * 2,048 206,847 204,800 7 NTFS / exFAT / HPFS
/dev/sda2 206,848 976,771,071 976,564,224 7 NTFS / exFAT / HPFS
Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 256.1 GB, 256060514304 bytes, 500118192 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/sdb1 1 2,047 2,047 ee GPT
/dev/sdb2 204,800 500,084,735 499,879,936 83 Linux
/dev/sdb3 * 2,048 204,799 202,752 b W95 FAT32
GUID Partition Table detected.
Partition Start Sector End Sector # of Sectors System
/dev/sdb1 204,800 500,084,735 499,879,936 Data partition (Windows/Linux)
/dev/sdb2 2,048 204,799 202,752 Data partition (Windows/Linux)
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 5C08583C0858177C ntfs System-reserviert
/dev/sdb1 95744744-5122-437b-82a7-6eb85b3a6448 ext4
/dev/sdb2 3B61-1C79 vfat
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sdb1 / ext4 (rw,noatime,discard,data=ordered)
=========================== 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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
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='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 95744744-5122-437b-82a7-6eb85b3a6448
else
search --no-floppy --fs-uuid --set=root 95744744-5122-437b-82a7-6eb85b3a6448
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_input console
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch GNU/Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-95744744-5122-437b-82a7-6eb85b3a6448' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 95744744-5122-437b-82a7-6eb85b3a6448
else
search --no-floppy --fs-uuid --set=root 95744744-5122-437b-82a7-6eb85b3a6448
fi
echo 'Loading Linux core repo kernel ...'
linux /boot/vmlinuz-linux root=UUID=95744744-5122-437b-82a7-6eb85b3a6448 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux.img
}
menuentry 'Arch GNU/Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-95744744-5122-437b-82a7-6eb85b3a6448' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 95744744-5122-437b-82a7-6eb85b3a6448
else
search --no-floppy --fs-uuid --set=root 95744744-5122-437b-82a7-6eb85b3a6448
fi
echo 'Loading Linux core repo kernel ...'
linux /boot/vmlinuz-linux root=UUID=95744744-5122-437b-82a7-6eb85b3a6448 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-fallback.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/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-EE74DF6B74DF3555' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 EE74DF6B74DF3555
else
search --no-floppy --fs-uuid --set=root EE74DF6B74DF3555
fi
chainloader +1
}
### 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/40_custom.pacsave ###
# 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 7 UEFI" {
search --fs-uuid --no-floppy --set=root 57307CBF23F07313
chainloader (${root})/efi/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/40_custom.pacsave ###
### 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
#
# <file system> <dir> <type> <options> <dump> <pass>
/dev/sdb1 / ext4 defaults,noatime,discard 0 1
#/dev/sda4 none swap defaults 0 0
tmpfs /tmp tmpfs defaults,noatime,nodiratime,mode=1777 0 0
tmpfs /var/tmp tmpfs defaults,noatime,nodiratime,mode=1777 0 0
--------------------------------------------------------------------------------
======================= sdb1/boot/syslinux/syslinux.cfg: =======================
--------------------------------------------------------------------------------
# Config file for Syslinux -
# /boot/syslinux/syslinux.cfg
#
# Comboot modules:
# * menu.c32 - provides a text menu
# * vesamenu.c32 - provides a graphical menu
# * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
# * hdt.c32 - hardware detection tool
# * reboot.c32 - reboots the system
# * poweroff.com - shutdown the system
#
# To Use: Copy the respective files from /usr/lib/syslinux to /boot/syslinux.
# If /usr and /boot are on the same file system, symlink the files instead
# of copying them.
#
# If you do not use a menu, a 'boot:' prompt will be shown and the system
# will boot automatically after 5 seconds.
#
# Please review the wiki: https://wiki.archlinux.org/index.php/Syslinux
# The wiki provides further configuration examples
DEFAULT arch
PROMPT 0 # Set to 1 if you always want to display the boot: prompt
TIMEOUT 50
# You can create syslinux keymaps with the keytab-lilo tool
#KBDMAP de.ktl
# Menu Configuration
# Either menu.c32 or vesamenu32.c32 must be copied to /boot/syslinux
UI menu.c32
#UI vesamenu.c32
# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
MENU TITLE Arch Linux
#MENU BACKGROUND splash.png
MENU COLOR border 30;44 #40ffffff #a0000000 std
MENU COLOR title 1;36;44 #9033ccff #a0000000 std
MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all
MENU COLOR unsel 37;44 #50ffffff #a0000000 std
MENU COLOR help 37;40 #c0ffffff #a0000000 std
MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std
MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std
MENU COLOR msg07 37;40 #90ffffff #a0000000 std
MENU COLOR tabmsg 31;40 #30ffffff #00000000 std
# boot sections follow
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*
LABEL arch
MENU LABEL Arch Linux
LINUX ../vmlinuz-linux
APPEND root=/dev/sda3 ro
INITRD ../initramfs-linux.img
LABEL archfallback
MENU LABEL Arch Linux Fallback
LINUX ../vmlinuz-linux
APPEND root=/dev/sda3 ro
INITRD ../initramfs-linux-fallback.img
# Windows 7 on partition hd0,1 (hda1)
LABEL win7
MENU LABEL ^Windows 7
COM32 chain.c32
APPEND hd0,1
LABEL hdt
MENU LABEL HDT (Hardware Detection Tool)
COM32 hdt.c32
LABEL reboot
MENU LABEL Reboot
COM32 reboot.c32
LABEL off
MENU LABEL Power Off
COMBOOT poweroff.com
--------------------------------------------------------------------------------
=================== sdb1: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
================= sdb1: Location of files loaded by Syslinux: ==================
GiB - GB File Fragment(s)
============== sdb1: Version of COM32(R) files used by Syslinux: ===============
boot/syslinux/chain.c32 : COM32R module (v4.xx)
boot/syslinux/hdt.c32 : COM32R module (v4.xx)
boot/syslinux/menu.c32 : COM32R module (v4.xx)
boot/syslinux/reboot.c32 : COM32R module (v4.xx)
boot/syslinux/vesamenu.c32 : COM32R module (v4.xx)
======================== Unknown MBRs/Boot Sectors/etc: ========================
Unknown BootLoader on sda2
========= Devices which don't seem to have a corresponding hard drive: =========
sdc
=============================== StdErr Messages: ===============================
hexdump: /dev/sda2: No such file or directory
hexdump: stdin: Bad file descriptor
hexdump: /dev/sda2: No such file or directory
hexdump: all input file arguments failed
cat: /tmp/BootInfo-ylbyqEVK/Tmp_Log: No such file or directory
cat: /tmp/BootInfo-ylbyqEVK/Tmp_Log: No such file or directory
No volume groups found
mdadm: No arrays found in config file or automaticallyOffline
This may not be a cause of your problem, but I noticed that your /dev/sdb uses a hybrid MBR, which is a dangerous and flaky hack. Ordinarily it's only useful on Macs that dual-boot with Windows and with some Hackintosh configurations. I recommend you switch to a pure-GPT or a pure-MBR setup on that disk. (I'm guessing pure-MBR makes more sense, but I'm not positive of that.) This may require you to create a fresh grub.cfg file, too. Read the page to which I linked for more information on hybrid MBRs, then read this associated page for information on converting between GPT and MBR formats.
Offline
Thanks for the hint, i will get into that.
But now i cant even boot from a usb stick where i dd-ed a *iso onto. Weird. This looks like to be my main problem now, cause if i mess things up i want to at least be able to boot from an usb stick to rescue the system.
God I'm loosing my nerves on this...
Offline
Pages: 1