PDA

View Full Version : [ubuntu] Where does Grub go?



God Dammit
June 21st, 2010, 09:36 AM
I'm trying to dual boot between 64-bit Windows 7 and Ubuntu 10.04. I just have one question. Should I install Grub in the EFI system partition (/dev/sda1) or is there some place else I should be installing it?

ajgreeny
June 21st, 2010, 11:34 AM
I'm not totally sure about Windows 7, but I have always put grub on the MBR of the first disk and never had a problem with it. I would add, however, that this was with WinXP and Vista, and I think Win 7 may be different in so many ways, but nevertheless, I don't think grub needs to go on a partition but onto the MBR, ie in your case, just /dev/sda (with no number).

Wait for others to answer as well, but that is what I have always done, and I will be surprised if things have changed greatly.

I spite of some users unhappiness with grub 2, I have found it to be extremely good, once you realise that it has changed, and everything is now done differently from legacy grub. It is also I believe much better a bootloader than some of the alternatives around, and it will manage windows very well, in my experience.

wojox
June 21st, 2010, 11:41 AM
Same here, I install it on MBR

wilee-nilee
June 21st, 2010, 11:47 AM
I looked up EFI and found conflicting info.
http://en.wikipedia.org/wiki/GUID_Partition_Table
http://en.wikipedia.org/wiki/EFI_System_partition
I don't have a clue.

God Dammit
June 21st, 2010, 07:13 PM
The MBR on my hard disk simply tells the computer where to find the EFI system partition. If I install Grub at /dev/sda I won't be able to boot Windows 7. EFI is not specific to Windows. Most Linux distributions use it as well. I'm surprised that Ubuntu doesn't seem to know what EFI is considering most motherboards use it to boot the computer.

ajgreeny
June 21st, 2010, 08:11 PM
I'm surprised that Ubuntu doesn't seem to know what EFI is considering most motherboards use it to boot the computer.
I have to admit that ubuntu is not the only thing that doesn't know what EFI is; I had to google it to find out a bit more.

It's the first time I have ever heard of it, or seen anything written or asked about it, on this or any other computer website.

darkod
June 21st, 2010, 08:32 PM
Look here if it can help:
http://ubuntuforums.org/showthread.php?t=1466252

Post #22 seems to explain how to install 10.04 with OSX and EFI.

God Dammit
June 22nd, 2010, 07:12 AM
I'm not using a Mac. My PC has an Intel DP43TF motherboard which uses EFI.

darkod
June 22nd, 2010, 10:03 AM
I'm not using a Mac. My PC has an Intel DP43TF motherboard which uses EFI.

Most EFI and grub2 tutorials seem to be written from Mac perspective.

I guess you can put grub2 to the ubuntu root partition but how do you tell EFI to boot from it I have no clue. Can't the MB manual help?

wilee-nilee
June 22nd, 2010, 10:54 AM
I suspect this EFI partition is a add on from the manufacturer of the computer. I would call them and see if a OEM disc set installs without the EFI and reinstall and get rid of it, since it will be nothing but trouble. The best at this on the forum have no clue about it and the web is conflicting about it's use, and sporadic in information. I have found links that say that Linux can't even use it, probably not true, but a indicator of looking for a more stable setup. Call the manufacturer and get more information at the least

darkod
June 22nd, 2010, 11:12 AM
I suspect this EFI partition is a add on from the manufacturer of the computer. I would call them and see if a OEM disc set installs without the EFI and reinstall and get rid of it, since it will be nothing but trouble. The best at this on the forum have no clue about it and the web is conflicting about it's use, and sporadic in information. I have found links that say that Linux can't even use it, probably not true, but a indicator of looking for a more stable setup. Call the manufacturer and get more information at the least

I didn't want to go that far, but I agree.
It's time to talk to the manufacturer if your machine came with it.
If you assembled it and decided to use EFI, then you should have searched for information how to add ubuntu to EFI before you started.

I can't really find anything about grub2 and none-Mac EFI.

wilee-nilee
June 22nd, 2010, 11:18 AM
I didn't want to go that far, but I agree.
It's time to talk to the manufacturer if your machine came with it.
If you assembled it and decided to use EFI, then you should have searched for information how to add ubuntu to EFI before you started.

I can't really find anything about grub2 and none-Mac EFI.

I don't think the EFI is a embedded partition in the motherboard just hidden, somebody could PM herman or meierfra, and see what they think. oldfred says he will install it to figure it out, I sure would like to know whats up.

darkod
June 22nd, 2010, 11:25 AM
I don't think the EFI is a embedded partition in the motherboard just hidden, somebody could PM herman or meierfra, and see what they think. oldfred says he will install it to figure it out, I sure would like to know whats up.

I didn't mean to say it's on the MB, just that if you build your own computer and decide to set it up and use EFI, you should know what to do with it. Or the manufacturer needs to give you support if they shipped the computer with it.

It's part of the boot process so I was hoping the MB manual might have some info on it.

Another alternative is just to create small FAT32 partition, so you can install grub2 on it, in addition to the standard /, swap, /home, etc. But you still need to know how to "add" grub2 from that FAT32 partition to the EFI, or how to make the EFI recognize it.

wilee-nilee
June 22nd, 2010, 11:56 AM
I didn't mean to say it's on the MB, just that if you build your own computer and decide to set it up and use EFI, you should know what to do with it. Or the manufacturer needs to give you support if they shipped the computer with it.

It's part of the boot process so I was hoping the MB manual might have some info on it.

Another alternative is just to create small FAT32 partition, so you can install grub2 on it, in addition to the standard /, swap, /home, etc. But you still need to know how to "add" grub2 from that FAT32 partition to the EFI, or how to make the EFI recognize it.

I wasn't referencing your post I was just sharing what this partition seemed to be after looking at the web information.

oldfred
June 23rd, 2010, 01:45 AM
Three years ago I read an article about efi being the future and wanted to buy a motherboard with it. None at reasonable price and only one or two were available. Then Apple adopted.

More info
http://packages.ubuntu.com/hardy/grub-efi

It also uses the gpt partition scheme which is a new improvement over the 20+ year old MBR scheme that has a max of 2TiB.

http://ubuntuforums.org/showpost.php?p=8822200&postcount=14
For GPT sdc disk:
added the GRUB_PRELOAD_MODULES="part_msdos" to /etc/default/grub and ran grub-install /dev/sdc and it worked!
now see all the partitions on my IDE drives and boot from them too!!!!!
grub2 & GPT info
http://kubuntuforums.net/forums/index.php?topic=3106368.0
http://www.ibm.com/developerworks/linux/library/l-gpt/
http://www.ibm.com/developerworks/linux/library/l-gpt/index.html

God Dammit
June 23rd, 2010, 07:43 AM
I built the computer myself. Intel seems to assume the operating system should know how to handle EFI and includes no special installation instructions for any OS.