Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've been trying to install Ubuntu 12.04 as secondary OS on my laptop. The primary OS I have is Windows 8.

So I have partitioned drive where NTFS is for Windows 8 and other partition is EXT4 for Ubuntu.

When I installed Ubuntu I picked the EXT4 partition and picked 3 boot loader options so far:

/dev/sta ATA HITACHI (750 GB) <-= this...
/dev/sta1 Windows 8 (loader) <-= and this...
/dev/sta2
/dev/sta5
/dev/sta6 Ubuntu 12.04 (12.04) <-= and this...
/dev/stb

After like 3 installations I still can't boot Ubuntu, nor can even see any boot loader... It goes straight to Windows 8 booting...

Please help! This has been very frustrating day and a half... And I don't think it should take that long to figure out =[

share|improve this question
The first one on the list should work.. Was there no effect at all? – Karthik T Nov 20 '12 at 6:42
No effect what so ever. – HelpNeeder Nov 20 '12 at 7:26
was your problem solved ? – Mevin Babu Dec 20 '12 at 3:40
Yes and no, I had to repartition my hard drive. I couldn't didn't find any other cause of this but partition table. – HelpNeeder Dec 20 '12 at 3:42

1 Answer

How about you use /dev/sta6 for the grub bootloader. Next steps:

  • Run update-grub to write the ubuntu bootsector
  • Copy the ubuntu bootsector into a file: dd if=/dev/sta6 of=boot.lnx bs=512 count=1
  • Transfer the file to the windows loader partition /dev/sta1, either by copying or via usb stick and booting to windows.

Then use these commands in windows shell to add a Linux selection to the windows loader:

bcdedit /create /d “Linux” /application BOOTSECTOR

BCDEdit will return an alphanumeric identifier for this entry that I will refer to as {ID} in the remaining steps. You’ll need to replace {ID} by the actual returned identifier. An example of {ID} is {d7294d4e-9837-11de-99ac-f3f3a79e3e93}. Next, let’s specify which partition hosts a copy of the boot.lnx file:

bcdedit /set {ID} device partition=c:

bcdedit /set {ID} path \boot.lnx

bcdedit /displayorder {ID} /addlast

bcdedit /timeout 30

http://www.iceflatline.com/2009/09/how-to-dual-boot-windows-7-and-linux-using-bcdedit/

share|improve this answer

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.