Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I know that there are several posts about operating system not found problem. But my situation is severe. My company will start to develop embedded systems on Linux at the end of this year and I wanted to get familiar with Linux.

I wanted to install Ubuntu 12.04. First, Ubuntu did not recognize windows partitions. I try to solve this problem (I do not know and remember what I did here but I think this is the problem). After several hours I manage to install Ubuntu on a 50 GB partition (in fact I think that I successfully install). After rebooting the computer, I see the screen OS not found. I realized that I cannot install Ubuntu properly and cannot boot from Windows 7 now. I use my Windows 7 disk to repair Windows 7 but installation cannot see any harddisk partition and cannot find anything to repair or re-install.

I am in a desperate situation since my work on my work computer is about to get lost. My boss is not happy with that and give me time to solve this problem by the end of this day.

Please Help!!!!!

Ekrem.

share|improve this question
1  
Can you please pop in the Ubuntu Live CD that you might have used to install, and then download and run this script - Boot Info Script - and then paste it in a site like Ubuntu's Pastebin and edit your question to share the link with us? –  nitstorm Aug 16 '12 at 6:44
    
I download Boot Info Script but do not know how to use it :( –  Ekrem Bayraktar Aug 16 '12 at 6:50
    
Once you've extracted the folder, take a look at the readme file in there, it'll guide you through it :) Here's a weblink to it. –  nitstorm Aug 16 '12 at 6:56
    
look at my answer askubuntu.com/questions/142750/… –  virpara Aug 16 '12 at 7:03
    
paste.ubuntu.com/1150180 –  Ekrem Bayraktar Aug 16 '12 at 7:04
show 2 more comments

2 Answers 2

From your pastebin, it appears you still have windows. Give this a try:

Boot into Ubuntu and open the terminal(Press Ctrl+Alt+T on your keyboard) or look for it in the dash. Once opened, type the following commands:

sudo grub-install "(hd0)"
sudo update-grub

This will install grub(the boot manager for Ubuntu on you hard drive.

That should do it.

Tell me if it works. Hope this helps you.

PS. Tell me if you get a picture similar to this:

Example of what sudo update-grub renders

share|improve this answer
    
ubuntu@ubuntu:~$ sudo grub-install "(hd0)" /usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?). ubuntu@ubuntu:~$ –  Ekrem Bayraktar Aug 16 '12 at 7:21
    
How many hard drives do you have on your computer? –  Max Tither Aug 16 '12 at 7:22
1  
At first I have three, one is for windows and two other seperate partitions. When I was trying to install Ubuntu, I divide another 50 GB part, after that I divide a 10 MB space for bios (ubuntu installation ask me to do) and 4 GB swap area. –  Ekrem Bayraktar Aug 16 '12 at 7:25
    
You can maybe use the software that Virpara told you(Specificly in the Grub location tab) As for the console that pops up, that is fine. The software is a GUI for the commands –  Max Tither Aug 16 '12 at 7:37
    
but I cannot reach that GUI screen –  Ekrem Bayraktar Aug 16 '12 at 7:48
show 7 more comments

Here are few steps that might help you solve your problem

First, boot into your Windows 7 repair disk and click on startup repair. Once the repair is over, you will be able to boot into windows. After you boot into windows, follow the steps in this link to remove Ubuntu:

Go to ubuntu.com and download the windows installer for Ubuntu and install it.

After installation, you will be able to boot into both the operating systems. Hope it helps

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.