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.

This question already has an answer here:

I have 2 drives in my laptop (Samsung NP530U4C), a 120GB SSD and a 25GB mSATA SSD. I have Windows 7 on the 120GB drive and after installing Ubuntu 12.04 on the mSATA I cant access Windows or get into the BIOS anymore.

When I select Windows 7 in grub it says "invalid EFI file path" and Windows/Linux USBs/CDs dont show up in grub.

The BIOS boot menu only shows 'ubuntu' (no drives or CDROM) and I cant get into the full BIOS and no I'm not pressing the wrong buttons.

I tried Boot-Repair but had no luck. Anybody have any suggestions?

share|improve this question

marked as duplicate by bain, Eric Carvalho, qbi, bodhi.zazen, Avinash Raj Jun 24 at 2:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
If you see ubuntu in "BIOS", it seems more like UEFI? Can you post link to BootINfo report from Boot-Repair? Is Windows installed in BIOS mode and Ubuntu in UEFI? That would also give boot from grub issues. –  oldfred Sep 30 '13 at 19:59
add comment

1 Answer 1

Ubuntu does not write anything to your motherboard where the bios is located.

First you will need to restore your Win 7 boot.

Do this first>> Disconnect the SSD with ubuntu on it.

Fixing the Master Boot Record (MBR)

Note: I strongly advise running all 3 commands fixmbr fixboot rebuildbcd

Step one: Turn your computer on, booting from either your Windows 7 Installation DVD or Windows 7 System Recovery Disc. Remember, you may need to change the boot order inside your BIOS to have the your DVD drive boot first.

Step two: After the installation or recovery disc loads, if prompted, select your language settings and then continue. If you are using the installation DVD, when prompted by the following screen select Repair your computer.

Step three: The computer will take a moment now to scan itself for any Windows installations, after which you will likely be given a choice to select which installation you wish to repair. Select the appropriate Windows installation from the list and then continue. If by chance a problem is detected in one of your Windows installations at this initial stage, the system may also ask you if it can try to repair the problem automatically. It is up to you if you wish to let the system try to repair itself, but otherwise just select No.

Step four: Once you have reached the System Recovery Options screen, as shown below, you will be faced with a list of choices that can aid you in repairing a damaged Windows 7 operating system. If you wish to try the Startup Repair option first, it is often successful in automatically fixing many different start up issues, but in this article we will be using the Command Prompt option to resolve our problems manually. So, click Command Prompt to continue.

Step five: Now sitting at the command prompt, enter the following command and then press enter:

     bootrec.exe /FixMbr

If successful, you should be greeted with the message The operation completed successfully. That's it! Your Master Boot Record has been repaired.

While the above command does fix the MBR, and sometimes that is enough, there still might be an error with the system partition's boot sector and Boot Configuration Data (BCD). This might occur if you have tried to install another operating system alongside Windows 7, such as Windows XP. To write a new boot sector, try the following command:

    bootrec.exe /FixBoot

If you are still faced with your Windows 7 installation not being detected during start up, or if you wish to include more than one operating system choice to your system's boot list, you can try the following command to rebuild your BCD:

    bootrec.exe /RebuildBcd

The above command will scan all your disks for other operating systems compatible with Windows 7 and allow you to add them to your system's boot list.

After you have done this you can reboot your computer and let windows start to make sure it is working. If it is then shut down your computer and reconnect your Ubuntu SSD.

Start your computer and press whatever key is needed for you to select the drive you want to boot to which is going to be ubuntu.

When ubuntu starts open up Synaptic and install a program called BOOT-REPAIR

You can easily use that to fix any boot problems in ubuntu

share|improve this answer
add comment

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