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: Windows 7 and Ubuntu dual boot

01 Apr 2010   #1

Windows 7 Premium, SP1 64-Bit
Windows 7 and Ubuntu dual boot

Forum admin, please bump this if you feel it is in the wrong local:grin:

I recently tried loading Ubuntu onto a separate drive on my computer. All went well except for the boot process. Upon booting I no longer was brought to the normal dual boot screen, instead I now got what I beleive to be the Linux boot screen. From here I was able to still load windows, with a few more steps. What didn't like was the thought that Ubuntu took over. I did some research and figured I should reinstall it. I went to the Windows partition and formatted the section that had Ubuntu on it. Much to my surprise Ubuntu loaded itself on the same HDD as Windows 7. I formatted the section holding Ubuntu and restarted the system to this problem: grub loading error: unknown filesystem grub rescue So here I' stuck. The only ability I have is to get into bios and change my boot devive. I need help retrieving Windows.

Thank you, Tom

My System SpecsSystem Spec
02 Apr 2010   #2

Windows 7 Ultimate 64 bit

Hi Tom

Do you have a windows 7 repair disk? If you do, then boot from the disk (by using your computer Bios). Once the disk has loaded you can do a system restore as it restores your computer to an earlier point in time before your computer crashed.

A similar problem happened to my computer (with Linux Mint) and I used that method to restore windows 7.
My System SpecsSystem Spec
02 Apr 2010   #3

Windows 7 Premium, SP1 64-Bit

I already tried this, it didn't work, I got an error telling me to try another source. I just completed a backup to my external HDD. Can i some how restore from here?

My System SpecsSystem Spec

02 Apr 2010   #4

Windows 7 Premium, SP1 64-Bit

I was sent this great bit of information from the Ubuntu site, I hope it helps others

How to restore the Ubuntu/XP/Vista/7 bootloader (Updated for Ubuntu 9.10)

This How-to is for windows dual booters who reinstall an operating system only to find that it has taken away access to their other operating system.
Whether you want to restore the XP, Vista, 7 or Ubuntu (Grub) bootloader, this guide will walk you through it.

All three parts of this tutorial require that you boot from a cd. If you don't know how to do this, check here.

If you have made a mistake and want to revert the changes, simply follow the instructions for reinstalling the previous bootloader. For example, if you have installed vista over ubuntu, try to get the ubuntu bootloader back, but want to get the vista bootloader back, simply follow my instructions for installing the vista bootloader.

How to restore the Ubuntu grub bootloader (9.10 and beyond)

Since Ubuntu 9.10 uses Grub 2, the above method will not work. However, it can still be done and this is how:
First you need to find out what your drives are called. You can do this by going to a terminal and typing: Code:
sudo fdisk -l
You will get something like this:

From that you need to find the device name of your Ubuntu drive, something like “/dev/sda5″.
So, still in the terminal, type:
sudo mkdir /media/sda5sudo mount /dev/sda5 /media/sda5
And then, to reinstall the grub: Code:
sudo grub-install --root-directory=/media/sda5 /dev/sda
Push enter and you’re done! Of course you need to replace “/dev/sda5″ and “/dev/sda” with what you found in the fdisk output.

How to restore the Ubuntu grub bootloader (9.04 and older)

First of all, all credit for this part of the tutorial goes to catlet. I am simply rewriting his tutorial to have all three bootloaders in this tutorial.

So, lets begin. To restore the grub, you must boot off the ubuntu live cd. Any ubuntu live cd will do.

Once there, open a terminal (Applications>Accessories>Terminal) and type this:

sudo grub
Next, you need to find which hard drive ubuntu and the grub is installed to. You do this by running this command:

find /boot/grub/stage1
Take note of what it returns (something like (hd0,1).)

Now you need to tell Grub where it is installed. Using the output of the last command, change this one and run it:

root (hd<a>,<b>)
Replacing <a> and <b> with what you got back before. For example, if "find /boot/grub/stage1" gave me "(hd0,1)", you would run "root (hd0,1)"

Ok, so thats the configuration over and done with. Now we just need to run one command to install the Grub to your hard drive:

setup (hd0)
Now to quit and check if it has worked:

sudo reboot
Make sure you have taken the live cd out of your disc tray. All going well, you should start back up and see the grub once again.

How to restore the Windows XP bootloader

For this you will need your Windows XP installation CD. Boot into it now.

You will get to a part where it asks if you want to repair or recover. To do so, press "r".

If prompted, enter your Windows XP administrator password. This will leave you at at a command line, so type in the following two commands:

Then type Code:
then remove your XP cd. If everything has gone well, you should come to your XP bootloader.

How to restore the Windows Vista or 7 bootloader

To restore the Windows Vista/7 bootloader, you must first boot off your Windows Vista/7 installation DVD.
If you have one of the many OEM computers that didnt come with a Vista/7 installation disk, you can get the same effect with a Vista recovery disk, which you can download from here.
When you get to the Regional settings, select your Location/Keyboard setting then click next. On the next page you must click on "Repair your computer."

On the next page, if it finds your Windows Vista/7 installation, make sure it is UNSELECTED before clicking next.
Then click on "Command prompt". From there, type in the folowing:

bootrec.exe /fixboot
bootrec.exe /fixmbr
Now close the two windows and click "Restart."

Take out your Vista/7 DVD and hopefully, you will be left with your Windows Vista/7 Bootloader.
My System SpecsSystem Spec
29 Aug 2010   #5

Windows 7
Ubuntu and Win 7 Grub Issues

I have a problem. I installed Ubuntu and Win 7 in separate partitions. Now, every time i load win 7, it deletes the grub. So, each time i need to re-install the Grub using Ubuntu Live CD. Any idea why this happens?
My System SpecsSystem Spec
30 Aug 2010   #6

Windows 7 Ultimate 64 bit

Quote   Quote: Originally Posted by ksram View Post
I have a problem. I installed Ubuntu and Win 7 in separate partitions. Now, every time i load win 7, it deletes the grub. So, each time i need to re-install the Grub using Ubuntu Live CD. Any idea why this happens?
I don't know how to solve the but i recommend starting a new thread so your problem will get more attention.
My System SpecsSystem Spec
30 Aug 2010   #7
Microsoft MVP


When you install OS's on separate HD's in order to (wisely) boot via BIOS, you must unplug the other HD during installation so it won't interfere.

Then set one OS HD as first to boot in BIOS setup (after DVD drive) and boot the other OS HD's using the one-time BIOS Boot Menu key:

Asus - F8
HP/Compaq - Esc
Sony - F2
Acer - F2
Gateway - F10
eMachnes - F10
Toshiba - F12
Dell - F12
IBM/Lenovo - the blue Thinkvantage button

This keeps the HD's independent to come and go as you please, without GRUB corrupting Win7, and without interlocking as with a Windows-managed Dual Boot.
My System SpecsSystem Spec

 Windows 7 and Ubuntu dual boot

Thread Tools

Similar help and support threads
Thread Forum
Wanted to Dual Boot Win7 and Ubuntu - Windows Won't Boot Anymore
I wanted to set up Ubuntu on my computer, and followed the instructions in the first answer to this thread: dual boot - How to install Ubuntu alongside Windows 7/8 - Ask Ubuntu As instructed, I created a logical partition using EaseUS software. I did this on my H:/ drive, a hard disk drive...
Installation & Setup
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 Windows 7 and Ubuntu
How to Dual Boot Windows 7 and Ubuntu This tutorial is a simple guide that will explain the two easiest ways to setup and install Ubuntu to dual-boot with your current installation of Windows. One option describes how to do this via WUBI. Another describes how to do this as a native dual-boot....
Unable to boot Windows 7 after unistalling Ubuntu Dual boot
After deleting the partition on which Ubuntu was installed and enlarging the windows partition to fill the old space at the same time( stupid I know), I am unable to boot to Windows 7. All I see is a command line message that says Unknown File System and on the next line says Grub Rescue> with...
Installation & Setup
Windows 7 and Ubuntu dual boot?
Hello all, First off, if this is in the wrong forum, I apologize. OK what I am trying to do here is have my computer dual boot Windows 7 and Ubuntu 9.10. I have Windows 7 installed on my original hard disk. I bought a second hard disk last week and installed Ubuntu 9.10 on it. I am trying...
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 22:06.
Twitter Facebook