Grub2 with Mint 13 and Windows 8

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
kbhit

Grub2 with Mint 13 and Windows 8

Post by kbhit »

I'm having problems getting Grub2 and Windows 8 to work together. I use Linux Mint 13 Cinnamon and am using Grub2 to dual-boot. Before moving to Windows 8, I had Mint 13 & Vista working well together. My normal workflow is that system goes into the Grub2 menu and I can choose to boot Mint 13 or Vista. However, with Windows 8 things are different. I can only get either A) Windows 8 to launch (but Grub2 doesn't launch) and it goes straight to Windows without giving me the option to go to Linux or B) Grub2 launches and shows Windows 8 (but when I choose Windows 8 I get the windows logo for 1.5 seconds, then it restarts my computer). What I actually want is the Grub2 menu (in B) but for the Windows 8 option to work properly.

When Windows 8 doesn't launch, the only way I can fix it is to put Windows 8 in repair mode and use its command line to fix the MBR such as (/fixmbr /fixboot). That gets Windows 8 happy again, but it stops Grub2 from loading. To get GRUB2 back, I boot into Linux Mint 13 Installation DVD and run grub-install / grub-update commands. It detects the OS's ok. Grub-2 then comes up and lists both Mint and Windows 8, but Windows 8 reboots when it's selected. Can somebody please help me end this cycle and get the two OS's working together?

Some details about my scenario:
- My computer does not support UEFI
- Linux Mint is on a separate disk. The disk it's on is a 3TB disk (GUID/GPT) separated in partitions of this order:
Grub-Boot flag partition (for GPT compat) -> Linux SWAP partition -> Linux EXT4 (main linux partition) -> NTFS partition (for Data only - no OS)
- Windows 8 is on a different disk. This is a 200GB disk (no GPT setup). The only partition on this is the Windows 8 partition and it's set with the BOOT flag (there's a 2Mb of free space at the end).
- The BIOS boot order is to load the 'Linux Mint' disk first
- I've tried GRUB versions 1.97 and 1.99
- Both OS's are 64-bit

Many thanks
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
keghn
Level 2
Level 2
Posts: 61
Joined: Sat Aug 18, 2012 11:38 am

Re: Grub2 with Mint 13 and Windows 8

Post by keghn »

Hello.
Are you installing from windows, or booting into live Mint dvd, or usb live thumb drive?
Two way to install. windows way is ???? becouse most of the people here are linux pro.s.
l have been using grub for 7 years and works fine to select which to boot into, windows, or
linux.
I have never used windows boot manager and I think it's been around for about two years.
Last edited by keghn on Fri Nov 16, 2012 3:25 pm, edited 1 time in total.
kbhit

Re: Grub2 with Mint 13 and Windows 8

Post by kbhit »

Hello Keghn, both the operating systems are installed already (using DVD ISO's for both). To recover GRUB I boot into the Linux Mint 13 DVD as described above. To recover Windows 9 booting I enter repair mode (normally through the Windows 9 DVD).
keghn
Level 2
Level 2
Posts: 61
Joined: Sat Aug 18, 2012 11:38 am

Re: Grub2 with Mint 13 and Windows 8

Post by keghn »

Try booting into a live Mint media and use "boot-repair".
https://help.ubuntu.com/community/Boot-Repair.
I have used it two time and work great.
kbhit

Re: Grub2 with Mint 13 and Windows 8

Post by kbhit »

I was able to SOLVE the problem! Last night I located a bug report filed with Redhat (https://bugzilla.redhat.com/show_bug.cgi?id=753923) referencing 'drivemap' not working properly in Grub2. I don't really understand fully the details, but when I commented out the drivemap line, both Windows 8 & Linux Mint 13 load just fine from the Grub2 menu. Grub2's update/os-prober also add the problematic/drivemap line. The key is, to remove the drivemap line once it's added. I'm sure drivemap does 'map' drives correctly in some cases, but in my case it wasn't. And, my Windows 8 drive is the 2nd hard-drive, so apparently Windows 8 doesn't have to come first because it works fine with drivemap out of the picture.

The fix that worked for me, edit the following file and comment out the line below: /boot/grub/grub.cfg
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 8p (loader) (on /dev/sdc1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set=root C4AC48E0AC48CE9C
# drivemap -s (hd0) ${root} <----- COMMENTING OUT THIS LINE FIXED THE PROBLEM
chainloader +1
}
Locked

Return to “Installation & Boot”