blogblogblogblogblogblog SyKoHPaTh

Dual Boot Mint 12 and Windows 7 on MST G

Mainly putting this here for my own reference, since I posted it on another site, and promptly forgot where it was. Some newer hardware does not support the default Ubuntu/Mint installation, and requires some flags in order to get it work. This was the case for my MSI GT780 DXR laptop, which I use for work (mint 12) and home (win 7).

I got it to load Mint 12 off the DVD. Mint 10 worked, but drivers were a big pain to deal with, and newer distros automagically have them. Note that this is from straight out of the box hardware.

First, remove any former raid setup, and install Windows 7 first.

1) After BIOS post, press CTRL I to enter RAID BIOS
2) press 2 to delete RAID
3) press 5 to exit
4) enter system BIOS (delete key) and setup SATA from RAID to AHCI
5) press F10 to save and exit
6) (re)install Windows

Next, install Mint 12. This is sort of a carpet-bomb approach as regards to the settings, so I know a majority of these are pointless, but here's what I had set for the boot from DVD to work (I assume this works for the newer Ubuntu distros as well, since Mint is built on it):

1) BIOS:
USB Options:
Legacy USB: AUTO
XHCI: Disable
EHCI: Disable
2) Boot off CD, press any key to stop the 10 second countdown. Press TAB, and change the following:
REMOVE: quiet splash (optional)
ADD (before the --): noapic noapci nomodeset acpi=oldboot

I have a suspicion it's just the "acpi=oldboot" that is the magic fix on this one, so someone with more knowledge can chip in at this part.

I can confirm that wireless ethernet adapter AND the webcam work for the install.


Booting into it after install: problem. Boot fails...not surprised. We need to edit boot options.

Boot normally, and it fails, so you'll have to edit the boot command. Fun stuff:

1) At boot menu, press "e" to edit the boot command.
2) Go down to where it says "linux /boot/vmlin"
3) Remove "quiet splash" (optional)
4) Add "noapic noapci nomodeset acpi=oldboot"
5) press F10 to boot into it. The first time I did this, it actually froze while booting. Did it again and it worked (I might have misspelled something first time)
6) Now you're in!
7) Change the boot permanently: Open Terminal
8) sudo bash

Now, at this point you can edit the existing boot, or make your own script. I made my own since I'm a noob and can't comprehend the existing boot scripts yet. All I did was copy the innards from the boot menu, and added the working options.

9) gedit /etc/grub.d/01_gt780dxr (or whatever your favorite editor is :P) (you can change the 01 to any number to change the ordering - with it at 01, it comes before the other options in the boot menu)
10) SCRIPT: ("simply" copy what is there in the other script when you press 'e' on boot menu - we're just adding the other options in the linux boot line)
#!/bin/sh -e
echo "I hope this works"
cat << EOF
menuentry "Mint 12 - MSI GT780DXR boot options" {
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root c876a7ef-2ae7-4492-a481-c5150cd69408
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=c876a7ef-2ae7-4492-a481-c5150cd69408 ro noapic noapci nomodeset acpi=oldboot vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
11) chmod x /etc/grub.d/01_gt780dxr
12) update-grub
13) exit
14) reboot and pray it somehow works...oh wow it worked

Now I hope some linux script god will reply and tell me I did this all wrong and post an easier way to do this

mint 12, ubuntu, windows 7, dual boot, gt780, msi