You are not logged in.

#1 2014-04-17 11:47:48

celebrimbor
Member
From: Philadelphia, PA
Registered: 2012-07-04
Posts: 56

Grub cannot detect Windows 8 partition (Yields error)

Hi! I have installed Archlinux in my Samsung ATIV Book 4.

sudo blkid

yields,

/dev/sda2: LABEL="Recovery" UUID="648265F58265CBDC" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="594f6bb6-b7f3-4663-8f77-f9473da45702" 
/dev/sda5: UUID="30D66A21D669E814" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="df174719-57b3-4d9b-982c-536f33faac55" 
/dev/sda8: LABEL="Metanoia" UUID="1c886c4c-d6f4-4a9f-8f42-082abb95dccd" TYPE="xfs" PARTUUID="8b16bd95-1858-4395-a92a-69817e318469" 
/dev/sda1: PARTLABEL="Basic data partition" PARTUUID="067cfb82-ff81-4398-9b66-09821a442c0f" 
/dev/sda3: UUID="7467-9968" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="ba5109ac-f01c-4838-9334-0ef9c667cb2f" 
/dev/sda4: PARTLABEL="Microsoft reserved partition" PARTUUID="1de2e683-b553-4bba-99b9-b67350177d3d" 
/dev/sda6: UUID="b1554842-1ae8-40bc-8422-abe9a412ce95" TYPE="ext4" PARTLABEL="Anoia" PARTUUID="19a1c96d-f1ed-4d43-ba39-b7227503d3cf" 
/dev/sda7: UUID="2d51872f-57af-4523-bd9a-c42b2f25eeec" TYPE="jfs" PARTLABEL="Pronoia" PARTUUID="704783d2-0630-4297-83fa-da9daef22dfc" 

I have disabled secure/fast boot. Have installed dosfstools, mtools, and ntfs-3g.

My fstab is

UUID=b1554842-1ae8-40bc-8422-abe9a412ce95       /               ext4            rw,relatime,data=ordered        0 1

# /dev/sda7
UUID=2d51872f-57af-4523-bd9a-c42b2f25eeec       /home           jfs             rw,relatime     0 2

# /dev/sda3
UUID=7467-9968          /boot           vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro    0 2

bootmgfw.efi is at /boot/EFI/Microsoft/Boot/bootmgfw.efi

I have installed both archlinux and Windows in UEFI-GPT mode.

When I followed Wiki instructions, and tried to regenerate grub, I receive

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initramfs image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
  No volume groups found
Found Windows Boot Manager on /dev/sda3@/EFI/Microsoft/Boot/bootmgfw.efi
error: out of memory.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 216
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
done

What should I do to dual boot with Windows?

My /etc/grub.d/40-custom file is

#!/bin/sh
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.
if [ "${grub_platform}" == "efi" ]; then
	menuentry "Microsoft Windows Vista/7/8/8.1 UEFI-GPT" {
		insmod part_gpt
		insmod fat
		insmod search_fs_uuid
		insmod chain
		search --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 7467-9968
		chainloader /EFI/Microsoft/Boot/bootmgfw.efi
	}
fi

/boot/grub/grub.cfg is this

When I select give Windows the highest priority, I receive a grub error. (When I manually try to load Windows from UEFI shell using fs0:\EFI\Microsoft\Boot\bootmgfw.efi or bootx64.efi, I receive "error: file '/boot/grub/x86_64-efi/normal.mod' not found. Entering rescue mode...
grub rescue >")

I know I the Windows 8 bootloader is there because I can boot into Windows from Grub if I install Ubuntu and run boot-repair.

Tried this as well but nothing changes.

Here is my /etc/default/grub

Last edited by celebrimbor (2014-04-17 12:10:27)


“If you wish to make an apple pie from scratch, you must first invent the universe.”
― Carl Sagan, Cosmos

Offline

#2 2016-01-09 08:45:41

gbj13
Member
Registered: 2010-05-06
Posts: 109

Re: Grub cannot detect Windows 8 partition (Yields error)

I am in the same situation.  Have you found any solution to your problem?

Offline

Board footer

Powered by FluxBB