You are not logged in.

#1 2014-02-10 07:38:15

forkenbrock
Member
Registered: 2011-12-06
Posts: 43

[Solved] GRUB issues with new Windows 8.1 Partition

I'm having a problem with GRUB recognizing a new Windows installation.  I had an old Win 7 installation in the grub menu and wanted to replace it with Win 8, which was located and configured on another drive I ended up deleting the Win 7 by formatting the partition to NTFS and used Clonezilla to copy Win 8 into that partition.  However, my efforts to boot into Win 8 have failed so far.  Here's a description of some of the things I've tried: 

First I tried just running the command "grub-mkconfig -o /boot/grub/grub.cfg" and it returns this. 

Generating grub configuration file ...
Found background: /boot/grub/Grub_Splash2.png
Found linux image: /boot/vmlinuz-linux-rt
Found initrd image: /boot/initramfs-linux-rt.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
  /dev/cdrom: open failed: No medium found
  No volume groups found
Found Windows 8 (loader) on /dev/sda1
/usr/bin/grub-mkconfig: /etc/grub.d/40_custom: /bin/shexec: bad interpreter: No such file or directory


I saw a GRUB menu entry for Microsoft Windows, but selecting this entry produces the following message for a few seconds, then it goes back to the GRUB menu.

Error: no such device
Error: file /bootmgr not found


Next, I mounted the Windows partition to /mnt/windows in FSTAB, ran the install command from the GRUB Wiki "grub-install --target=i386-pc --recheck --debug /dev/sda", and ran the mkconfig command again, but no change.

When I ran the grub-mkconfig command I was expecting that the grub.cfg file in /boot/grub would be replaced with a fresh file, but nothing changes in the file.



Thanks for your help.

Last edited by forkenbrock (2014-02-13 21:48:43)

Offline

#2 2014-02-10 10:46:10

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: [Solved] GRUB issues with new Windows 8.1 Partition

Hi there!

/usr/bin/grub-mkconfig: /etc/grub.d/40_custom: /bin/shexec: bad interpreter: No such file or directory
 

It's possible the entry is there, but incorrectly generated since there is a failing script. Still, this could be unrelated, but the first thing to look into. The error points at the first line of /etc/grub.d/40_custom containing something like:

#!/bin/shexec

Which is bogus since most installations don't have that executable. It's likely that the exec part should be seperated from the sh part. If you don't know, post the content of the file so we can help you further.

Last edited by Rexilion (2014-02-10 10:46:46)


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#3 2014-02-11 09:32:13

forkenbrock
Member
Registered: 2011-12-06
Posts: 43

Re: [Solved] GRUB issues with new Windows 8.1 Partition

Yes, I noticed that error, but inspecting the 40_custom file shows no change from the default.

I ran the "grub-mkconfig" command, then pasted the section below into the /boot/grub/grub.cfg file.  It seems to have generated the correct UUID.  Now, in the GRUB boot menu when I select Windows entry it goes to a continuous blinking cursor and doesn't boot.


### BEGIN /etc/grub.d/30_os-prober ###
  /dev/cdrom: open failed: No medium found
  No volume groups found
Found Windows 8 (loader) on /dev/sda1
menuentry 'Windows 8 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-86F$
        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=a$
        else
          search --no-floppy --fs-uuid --set=root 86F0CC8AF0CC8243
        fi
        drivemap -s (hd0) ${root}
        chainloader +1
}
fi

Last edited by forkenbrock (2014-02-11 09:37:32)

Offline

#4 2014-02-11 13:31:02

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: [Solved] GRUB issues with new Windows 8.1 Partition

Look here. I don't have much experience with Windows on Efi and grub2.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#5 2014-02-11 19:33:19

forkenbrock
Member
Registered: 2011-12-06
Posts: 43

Re: [Solved] GRUB issues with new Windows 8.1 Partition

I've been all over that page by now.  I don't know why it mentions EFI.  The drive is set up as MBR, not GPT and I was under the impression that it's also set up as BIOS, not EFI.  I'm using a Sandy Bridge board, so I assume EFI is not even available.  Also, Fast Startup was disabled in Win 8 before I cloned the OS and Secure Boot is not available in this BIOS.

Last edited by forkenbrock (2014-02-12 02:03:23)

Offline

#6 2014-02-12 06:02:44

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: [Solved] GRUB issues with new Windows 8.1 Partition

Ah, my bad. You indirectly mentioned that in your first post.

Okay, assuming the parameters are correct try this menuentry:

menuentry 'Windows 8 (loader)'
        insmod part_msdos
        insmod ntfs
        set root='hd0,msdos1'
        ntldr /bootmgr

fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#7 2014-02-12 09:57:14

forkenbrock
Member
Registered: 2011-12-06
Posts: 43

Re: [Solved] GRUB issues with new Windows 8.1 Partition

Thank you Rexilion.  That seems to be a step in the right direction.  Win 8 starts to boot, but it seems the Windows startup needs to be repaired.  Before marking this issue as solved I'll leave it open for a bit, in case anyone has a recommendation for the best repair process.

Offline

#8 2014-02-12 10:20:48

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: [Solved] GRUB issues with new Windows 8.1 Partition

How exactly do you mean 'repaired'? As in boot procedure?

'Repairing' Windows 8 will almost surely erase grub2, so save that grub.cfg.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#9 2014-02-13 21:47:45

forkenbrock
Member
Registered: 2011-12-06
Posts: 43

Re: [Solved] GRUB issues with new Windows 8.1 Partition

Well, none of the BCD repair options seemed to repair my Win 8.1 boot partition.  It may be that cloning a Win 8 setup to another drive causes severe problems with the boot setup.  None of the things I tried to rebuild the boot structure seemed to work.  I ended going back to the old drive and the NTLDR command above seemed to fix the issue with GRUB.  Thank you for the help.

Offline

Board footer

Powered by FluxBB