Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Dual-boot: Windows 7 & Ubuntu - problem

07 Apr 2011   #11

Windows 7 Home Premium x64

Edit: So I managed to type the command successfully, but it still boots into Ubuntu.

My System SpecsSystem Spec
07 Apr 2011   #12
Mike Connor

Several, including Windows 7 x64 Ultimate

I have never seen "This tool can only be run on systems booted using PC/AT BIOS. This system was booted using EFI or some other firmware type." before.

In the last year or so I have had this problem on various machines with SATA drives, after various people installed Ubuntu, and once with Linux Mint.

Each time I had to try various things to get the machines running again.

Regards....Mike Connor
My System SpecsSystem Spec
07 Apr 2011   #13

Windows 7 Home Premium x64


I unplugged ALL my harddrives except my SSD (with Windows 7 on it).
I managed to boot into Windows 7, and I now need a permanent fix.
What commands should I run to fix my bootloader, and removing my GRUB (for me it looked like it never was installed anyways..)?

And should I follow "gregrocker" idea ?
Unplug all harddrives except the one I want Ubuntu on
Install Ubuntu on the hole drive
Plug all drives back on
(Windows bootloader will still be installed instead of GRUB?
And if I want to boot into Ubuntu I simply hit F8 during BIOS and choose the drive with Ubuntu on it?
My System SpecsSystem Spec

07 Apr 2011   #14
Mike Connor

Several, including Windows 7 x64 Ultimate

Sorry, but I just don't know. This grub loader business caused me a lot of headaches. I managed to solve it every time, but I spent hours trying all sorts of things until it worked. No single fix worked every time.

The grub loader is in the MBR on one of those drives, and you have to find it and either edit it, or delete it, and set up your dual-boot again.

Regards....Mike Connor
My System SpecsSystem Spec
07 Apr 2011   #15
Mike Connor

Several, including Windows 7 x64 Ultimate

This might help you;

[ubuntu] Add Windows 7 to Grub Menu - Ubuntu Forums

Regards....Mike Connor
My System SpecsSystem Spec
07 Apr 2011   #16

Win 7 Ult + Starter, XP Pro +Home, 2kAS, Linux Mint 8, SuperOS

Sounds like the grub installation has been overwritten by the Windows repair, but not the MBR.

If you can boot into Ubuntu, are you happy to open a terminal console?

If you are, type
sudo fdisk -l
(that is SUDO FDISK -L, but in lowercase)

the output will have lines like this (among many others if you have 6 hard disks plus a ssd):

device		boot	start	end	blocks	id	system
/dev/sda1 	*	nnnnn	nnnnn	nnnnn	7	HPFS.NTFS ---BOOT DISK sda

/dev/sdb5 		nnnnn	nnnnn	nnnnn	83	LINUX     ---FIRST LINUX PARTITION
Main interest is the device mapping where the boot partition is and where any NTFS partitions reside - there are no drive letters in Linux, only Windows/dos use those, and inconsistently, too.

In this case the Boot disk is /dev/sda, which is where the grub installation should be.

In this case, you would need to type
sudo grub-install /dev/sda

(/dev/sda1 is the partition numbered 1 on the disk /dev/sda)

You may get error messages, but the last line should indicate success or failure.

Lastly, you need to reboot, and the grub menu should not only list your Ubuntu installation, but should list windows 7 (loader) at the bottom, unless something has overwritten your Windows 7 winload command.
My System SpecsSystem Spec
07 Apr 2011   #17
Microsoft MVP


If you unplug all but Win7 HD and it boots no problem then your Win7 is good.

What I would do next is unplug Win7 HD, plug in Ubuntu then uninstall GRUB and see if you can boot Ubuntu HD by itself the same way. If not I would reinstall Linux with all other HD's unplugged.

Then set the preferred OS HD as first to boot in BIOS setup, when you need to boot the other one use the one-time BIOS Boot Menu key which is F8 on most Asus'.

fafhrd: if he wants to uninstall GRUB, can you help there?
My System SpecsSystem Spec
08 Apr 2011   #18

Windows 7 Home Premium x64

I recently installed Ubuntu on one of my other HD's (Windows 7 on SSD).
I ran into problems right after install with GRUB (Linux bootloader), and I could only enter Ubuntu.

I fixed the problem by disconnecting my HD with Ubuntu, and now I cannot boot proberly with the HD with Ubuntu unless I disconnect it.
I tried to boot into Ubuntu LiveCD and formated the drive (the drive have several different partitions - and I just formated the partitions with Ubuntu on it, because I have some file I need on the other partition) but it dosen't seem to help my problem. I cannot boot into Windows with the drive unless I disconnect it.

I tried to fix the problem with my Windows 7 DVD, but I get an error message saying "bla bla bla... Not compatiable with your version of Windows"..
My System SpecsSystem Spec
08 Apr 2011   #19

Win 7 Ult + Starter, XP Pro +Home, 2kAS, Linux Mint 8, SuperOS

BCD is the easiest way to get rid of the problem - it is a problem from the Windows pov - but if hemulen installs grub properly, it should make Windows available to do that.

He has started a new thread - having formatted the Ubuntu partitions - thus stuffed. Ubuntu could have rewritten the Windows MBR, now only a live linux hard disk could do it. Here's an untested (by me) solution:

How to fix your Windows MBR with an Ubuntu liveCD*|*ArsGeek

Here's the crib I use when Windows repair/install has wiped out Grub:

When windows reinstallation wipes out grub, boot into a live Linux installation either on CD or USB - I use Mint 8 Helena,

These instructions were found at

Fix / Restore GRUB Boot Loader ~ Web Upd8: Ubuntu / Linux blog

$ sudo fdisk -l ----------------------------list the storage volumes

The output should have several lines like this:

device boot start end blocks id system
/dev/sda1 * nnnnn nnnnn nnnnn 7 HPFS.NTFS ---------------BOOT DISK sda
/dev/sdb5 nnnnn nnnnn nnnnn 83 LINUX ---------------FIRST LINUX PARTITION

$ sudo mkdir /mnt/system ------------------make a directory for the system

$ sudo mount /dev/sdb5 /mnt/system ---------mount the linux volume there

$ sudo -i ----------------------------------elevate permissions to root

you are now root, the prompt has changed

# mount -o bind /dev /mnt/system/dev -------to get inside the device so that changes can be made

# chroot /mnt/system -----------------------become root of the installed system

# grub-install /dev/sda --------------------install grub to the boot record on the boot disk

I often see a load of failure errors, but it says grub installed successfully at the end!

ignore $ and # - these just indicate how the terminal prompt changes for me

Official Windows solution is:
My System SpecsSystem Spec
08 Apr 2011   #20

Windows 7 Ultimate x64

I had to learn the hard way as I have 6 hdd on my computer, so when installing Linux along with my Windows 7, the best way is too only have the two drives attached.

I never used to have any problem with older linux versions, but the last few I sure did.

For some reason Grub always installed to wrong drive, and then my Windows 7 would not say C: anymore, but something like F: or G:

Nothing helped me, none of the sudo commands recommended, nor bcdedit.

The only thing I could do was wipe Linux , then only have my Windows 7 hdd attached to computer and reboot with the repair disc in.
Had to run it like three times to fix it.

I am sure this doesn't help you, but just wanted to put my two cents in.:)
My System SpecsSystem Spec

 Dual-boot: Windows 7 & Ubuntu - problem

Thread Tools

Similar help and support threads
Thread Forum
Win 7 , Ubuntu dual boot, windows wont boot, startup disk doesnt help
Hi a couple of months ago my system crashed, windows 7 wouldnt boot, and I misplaced my installation disk. I had the problems several times since obtaining the computer several years ago. (Lenovo IDeaPad y450). I attributed the problem to what I believed was a bad hard disk, so I replaced it with a...
General Discussion
Dual Boot problem, Ubuntu is the main boot
hello I have Asus laptop with OEM Win7 HomeP 64bit on it, I installed Ubuntu 12.04 along side with Win7, didn't know that Ubuntu will be the main boot, I used Ubuntu 11.10 a year a go and Windows was my main boot, I tired several way to retrieve Win7 as main boot but didn't work. I tried to...
Installation & Setup
Dual boot Ubuntu and Windows 7 wireless problem
I set up a dual boot of Ubuntu and Windows 7 on my lenovo u330 laptop a couple months ago and everything was working fine. That was till I found a problem with the wireless when switching from Ubuntu over to 7. I found that if I left the wireless off in Ubuntu and restart to 7, the wireless is...
Network & Sharing
Dual boot problem while installing ubuntu 10.10 with windows 7 on hp
Hello friends, I am trying to make my new laptop hp- dv6 3174 dual boot with two operating systems Windows 7(which is preinstalled) and Ubuntu 10.10. But after i install ubuntu, windows is getting erased. I tried repairing with system repair disc but not possible. Even if i put system repair...
Installation & Setup
Old Ubuntu dual boot problem
I had Ubuntu installed on an external HDD, but back when I had XP, I formatted it for general storage. Now I'm running Seven and I have no idea how to remove the Ubuntu option from my Dual Boot menu. Please help...
Installation & Setup

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 08:24.
Twitter Facebook Google+