Sign in with
Sign up | Sign in
Your question

Can't boot Win7 after Mint Install

Last response: in Linux/Free BSD
December 13, 2012 1:41:25 PM

So I broke my cardinal rule... Don't screw with anything important without making sure your backup is secure.

My HDD started with 4 partitions:

sda1 - 100mb Win7 Boot
sda2 - 215gb Win7
sda3 - 215gb NTFS Storage
sda4 - 500gb NTFS Storage

I then installed took the 4th partition and broke it up with GParted for a Mint install, so currently it looks like this:

sda1 - 100mb Win7
sda2 - 215gb Win7
sda3 - 215gb NTFS Storage

sda4 - 500gb Ext (Broken into the following logical drives)
sda5 - 75gb ext4 mounted /
sda6 - 8gb swap
sda7 - 420gb est4 mounted /home

So after I installed, Mint works like a dream, but as soon as I select Win7 it flashes a black screen and sends me back to grub.

So now GParted shows sda1 and sda2 as filesystem "unknown" instead of NTFS...
I am worried I will not be able to recover my Win7 install.

I ran a few scripts to try to recover recover the MBR, which worked, but once it tried to boot it said no os found.

So I ran Boot-Repair to get grub back going.
(If you arent familiar with boot-repair, all it does is run bootinfoscript, fix grub to default settings and create a url with the results.)
Here are those results:

Mint works fine still. (Using it to make this post.) But boot-repair did not even recognize Win7, so it isnt in the grub list.

  1. =================== blkid:
  2. /dev/loop0: TYPE="squashfs"
  3. /dev/sr0: LABEL="Linux Mint 14 Cinnamon 64-bit" TYPE="iso9660"
  4. /dev/sda3: UUID="2EC87599C8755FCF" TYPE="ntfs"
  5. /dev/sda5: UUID="fc5e665e-bce0-4112-8ada-1655abeba1a3" TYPE="ext4"
  6. /dev/sda6: UUID="3a1ed50e-8cff-493c-90dc-bbce83541dbb" TYPE="swap"
  7. /dev/sda7: UUID="fa6619db-7ea3-4d02-b7e7-db9f303a300b" TYPE="ext4"
  10. 1 disks with OS, 1 OS : 1 Linux, 0 MacOS, 0 Windows, 0 unknown type OS.

At this point I couldn't care less about the Mint Install, I barely got it going. I can reinstall it with no problem.
I just hope there is a way to recover my Win7 without too much trouble. I have many work files on there.

Thanks in advance for any help!

More about : boot win7 mint install

Best solution

December 13, 2012 6:12:14 PM

you may need to use something like testdisk to recover the partition table
December 13, 2012 7:22:42 PM

Update: I was able fix the sda2 (recover the table?) with ntfs-3g and ntfsprogs.

But the 100mb boot partition still said unknown.

So I then downloaded the win 7 recovery disc, ran fixmbr, fixboot, and rebuildbcd.
Then did the startup repair and it booted to Win7, now I am on my win7 as I type this...

The 100mb partition is gone from windows, but I assume it is in the same state it was, and that the startup repair moved all the boot info to the C drive (sda2).

Now my question is how do I get grub to dual boot win and mint.

I have set up multiple boots on many machines in the past and never had any issues... Did I screw it up this time? Just lucky the times before? or is this a sign that my drive is failing?

Again, I dont mind wiping mint and starting fresh, just afraid I will have the same problem...
Related resources
December 13, 2012 9:38:55 PM

boot into mint and run 'sudo update-grub'

should automagically find your windows 7 install and add it to grub boot menu
December 13, 2012 10:57:59 PM

I guess I wasn't clear on the update. So I will try to clarify.

I boot my pc and it goes directly to windows. The Win 7 repair disc effectively killed grub,

So my question is can I boot a live cd and setup the grub to boot both? or will the same problem I originally had happen again?
December 13, 2012 11:32:47 PM

Got it running!

No data lost, dual boot with grub is working!

I had to run grub install with these parameters:

  1. sudo grub-install --root-directory=/mnt/ /dev/sda

Got my info from here.

@skittle: Thanks for the quick responses.
December 13, 2012 11:37:01 PM

Best answer selected by tj223.