How to remove linux

Hairygoat22

Honorable
Dec 31, 2013
4
0
10,510
When trying to get Ubuntu on a pc without an os I accidentally installed it onto the pc I was using to install it onto an external hard drive.Now I have windows 7 and Ubuntu on the same hard drive I have no idea how to even access windows. If someone could tell me how to access it that would be great.
 

stillblue

Honorable
Nov 30, 2012
1,163
0
11,660
If it boots to ubuntu when the ext is plugged in and you see a windows drive while in Ubuntu but not when its not then do as alabacho said to fix the mbr . You'll then have to fix the grub, the Ubuntu loader on the external because you had installed it on the computer drive.

If you can boot Ubuntu without the external then you over wrote windows and have to reinstall after you try to recover files.
 

Hairygoat22

Honorable
Dec 31, 2013
4
0
10,510
Sorry for getting back to this so late. When I open the grub there are no windows options. However I am certain windows is still on there at looking through my files. I also haven't technically install Ubuntu yet since I always click on try Ubuntu instead of install at the set up.
 

stillblue

Honorable
Nov 30, 2012
1,163
0
11,660


Where are you running ubuntu from?
Not installed/installed on the external?
Not installed/installed on the internal drive?

If it is not installed on the hard drive then you need to restore your mbr. fixmbr. This can be done from your windows install dvd or a recovery console or other dvds that allow you to fixmbr


 

Edir

Honorable
Oct 6, 2013
99
0
10,660
"Should" is the key word - a ubuntu grub of mine once didn't recognise a fedora install. If this fails, then you'll have to go into Ubuntu, recover any files worth keeping on the other drive, then delete the partition windows is on, OR if you have another windows disk (no matter what one, as long as it is xp+), you can install that over the windows 7 install and choose to keep files during the installation process.

P.S. once you are done, don't delete Ubuntu, it's very good.
 

Hairygoat22

Honorable
Dec 31, 2013
4
0
10,510

I am in Ubuntu and when I look through my files I can still see the os files on my hardrive. I am not looking at partitions.


 

stillblue

Honorable
Nov 30, 2012
1,163
0
11,660
With newer versions of Ubuntu your windows partition is automatically mounted and visible. If you are in the default Ubuntu desktop, Unity, they high on the left you see a file cabinet icon that has your files in it. If windows is still on your computer then it will be listed under devices as xxx GB volume. If not listed like that it is no longer there. So, if it is there then install boot-repair. It doesn't cost anything but a few minutes of your time to try.
 

Edir

Honorable
Oct 6, 2013
99
0
10,660
It is possible Ubuntu auto partitioned your drive. There is an option to do this during install. Install Ubuntu alongside windows is what it says. It is impossible to have two full independent OS's on the same hard drive without partitions. So if windows is still there, and by the sounds of it it is, it is on another partition. Partitions can be viewed from Linux. This is probably how you are seeing your windows files. Using boot repair in this situation should work.

Note: the icon stillblue mentioned is a just a file icon in some versions