Instalando Windows e Linux Em Partições UEFI

Download Instalando Windows e Linux Em Partições UEFI

Post on 20-Nov-2015




0 download




Instalando Windows em Parties GPT GPT (Tabela de Partio Guid) um novo layout de particionamento de disco rgido. Ela nasceu para substituir a MBR que limita o uso do disco rgido em at 2Tb. Utilizando a GPT no vamos ter mais problema com unidades superiores a 2Tb, mas quem utiliza Windows da Microsoft, apenas os sistemas Vista, Windows 7 e Windows 8 podem ler ou gravar neste tipo de partio. Junto com a GPT veio a EFI que uma especificao que define uma interface de software entre o sistema operacional e a plataforma de firmware. A EFI destina-se a ser um substituto significativamente melhorado para o velho BIOS firmware interface, historicamente usado por todos os computadores pessoais IBM PC compatveis. A especificao EFI foi originalmente desenvolvida pela Intel, e atualmente gerida pelo Unified EFI Frum que oficialmente conhecido como Unified EFI (UEFI). Tive um problema ao instalar o Windows7 em um Asus K45A, uma mensagem de erro era exibida: "O Windows no pode ser instalado neste disco. O disco selecionado est no estilo da partio GPT." Pesquisando pela internet encontrei em um frum uma soluo que tive xito para poder instalar o Windows no meu notebook, segui os passos abaixo: 1. Depois de dar boot via Windows7, na tela de idiomas pressione + para abrir o terminal (console) Digite os seguintes comandos na linha de comando: CUIDADO, OS COMANDOS ABAIXO APAGARO TODAS AS PARTIES DO HDdiskpart (Este comando permite acessar ao utilitrio para gerir parties) list disk (Mostra todos os discos. Verifica se o disco 0 corresponde ao disco que compraste (basta verificares o tamanho) select disk 0 (Vai escolher o disco 0 para efetuar operaes sobre ele. Se o disco novo no for o 0, ento voc deve alterar o nmero no comando para, por exemplo, select disk 1 ) clean (Este comando vai eliminar as informaes de configurao existentes no disco, ou seja, todos os dados e TODAS as parties sero EXCLUDAS! )create partition primary (Este comando vai criar uma partio primria (no disco que selecionou no passo select disk x) exit (para abandonar o utilitrio diskpart ) exit (para regressar ao programa de instalao)3 - Agora na tela de seleo de partio, escolhe aquela que acabou de criar. Se continuar a dar erro, reinicia o computador e verifica se o erro desapareceu (de vez em quando necessrio um reboot para que as alteraes fiquem visveis ao setup do Windows); 4 - Antes de instalar o Windows, formate o disco. Fonte: Wikipedia, Frum UOL

Erro instalando o LinuxDescrio do BugDurante a instalao no modo UEFI, "Could not open \EFI\BOOT\fallback.efi: 14" shows after passed the BIOS phase.SoluoCriar um pendrive de instalao do Linux e depois renomear o arquivo /EFI/BOOT/grubx64.efi para /EFI/BOOT/fallback.efiFonte:

How to repair the EFI Bootloader in Windows 8The fixStart up your dilapidated computer with the USB or DVD Windows 8 recovery media in the system. You want to get to theAdvanced optionsscreen so you can openthe beloved command prompt.When the computer boots off the recovery media, pick theTroubleshootoption

Then chooseAdvanced Options

and head on over to theCommand Prompt.

The computer should reboot and then ask you for the account. Click your account to continue.

Then login to get started

Were going to use the built in partitioning tool calleddiskpartto confirm that:1. We have all the right partitions2. EFI partition is formatted correctly.In the black screen that looks like a dark abyss, type:diskpartand enter this command:sel disk 0Now that the first disk is selected we need to view all the partitionslist vol

Verify that the EFI partition is using theFAT32 file systemthen select the volume and assign a drive letter to it.Sinceim using Windows 8 from a VirtualBox imageyou wont see the FAT32 partition on the screenshot above; but on yours you can select it by noting the Volume Number.

1. Assign the Drive LetterLets say your EFI partition is onVolume 3, the next thing you would type is:sel vol 3Then assign an arbitrary drive letter to the parition. Lets usev.assign letter=v:You should see a message saying:DiskPart successfully assigned the drive letter or mount point.Exit the diskpart tool by typing:exitYou should still be in the command prompt but outside of theDISKPART>prompt.2. Repair the Boot RecordWe need to repair the boot record. We can pull that off like so:cd /d v:\EFI\Microsoft\Boot\bootrec /fixbootThe CD command tells the command line interpreter to change the directory to the volume label that has the EFI boot record.Then thebootrec /fixbootcommand attempts to repair the selected volume.Alright, still with me?3. Rebuild the BCD storeNow we need to recreate the Boot Configuration Data (BCD) store, so lets backup the existing store firstType:ren BCD BCD.oldNow that we backed it up, lets recreate the BCD store:bcdboot c:\Windows /l en-us /s v: /f ALLBCDBoot is little tool that lets you manage the system partition files. In plain english, this command says:Hey Windows, Im going to useC:\Windowsas the source for copying all my boot-environment files and Im going to use the Englishlocaleand select the volume letter that begins withv: The/f ALLthingy updates all the BIOS settings.Now remove the recovery media and reboot and you should be all set.Fonte: Installed/Updated Windows 8 UEFI after Ubuntu - Restore GRUB

Using Boot Repair, as MariusMatutiae suggests, may work; however, that program sometimes does more than is wise, so I prefer to avoid it. There are at least three less radical solutions:Solution 1: Use the FirmwareMany EFIs provide a built-in boot manager that enables you to adjust the boot order. Your Ubuntu/GRUB entry probably still exists, so all you need to do is to adjust the boot order using the firmware. The trouble with this approach is that the EFI setup utilities vary so much that it's impossible to provide universally-applicable instructions for how to do this. If your firmware supports this feature, though, it's likely to be the simplest way to do it -- once you figure out how to get to the option!Solution 2: Usebcdeditin WindowsThe Windowsbcdedittool can add a non-Windows boot loader to the boot list. The trick is figuring out what the file is. You can do it this way:1. Boot to Windows2. Open anAdministratorCommand Prompt window. (Don't use a third-party shell for this, either; I've seen reports thatbcdeditwon't work correctly with some of them.)3. Typemountvol S: /Sto mount the ESP asS:. (You can changeS:to something else if you like.)4. Using the Command Prompt, checkS:to locate your Ubuntu boot loader. It's probably eitherS:\EFI\ubuntu\grubx64.efiorS:\ubuntu\shimx64.efi. If you see the latter, it should be safe to use it, and it may be necessary to use it -- shim is how Ubuntu deals with Secure Boot (SB), but on a non-SB computer, it will have little effect. If Secure Boot is inactive, then shim may or may not be installed, so you may need to refer togrubx64.efidirectly.5. Typebcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi, changingshimx64.efitogrubx64.efiifshimx64.efiisn't present. Change the path if it's something else, which is unlikely.6. Optionally, typebcdedit /set {bootmgr} description "Ubuntu"to set the name that appears in the EFI's own boot manager list. ChangeUbuntuto whatever you like.If you already know the filename for your boot loader, you can skip steps #3 and #4. (The ESP doesn't need to be mounted to usebcdeditin this way.)This method has the advantage that it keeps Windows from messing with the boot order -- sometimes Windows will try to adjust the boot order unbidden. I don't know if this would prevent a repeat of this problem if/when you upgrade to whatever comes after Windows 8.1, though.Solution 3: Boot to Linux and UseefibootmgrYou can probably boot to Linux by using the firmware's own boot manager, which you can access on most computers by hitting Esc or a function key at boot time, although which key varies from one computer to another. Alternatively, you may be able to userEFIndon a USB flash drive or CD-R as a boot manager if yours is inadequate. You can also boot using a Linux live CD or emergency disk, but be sure you boot in EFI mode -- a BIOS-mode boot won't be adequate. Once you're in Linux, you can useefibootmgrto adjust the boot order:1. Open a Terminal window.2. Typesudo efibootmgr -vto obtain a list of boot programs. One will be for Linux, and will launch either shim or GRUB. Note theBootOrderlist. Chances are the Windows entry is now first, and the Ubuntu entry comes later in the list. Some entries may be confusing. Just ignore them; focus on finding the Ubuntu entry and identifying its number (in theBoot####entry at the start of the line).3. Typesudo efibootmgr -o {list}, changing{list}to a comma-separated list of boot numbers, as insudo efibootmgr -o 5,0ifBoot0005is for Ubuntu andBoot0000is for Windows. You can add more entries if you like, but the first one is the most important, since that's what will be booted first.If an Ubuntu entry doesnotexist, you can create one withefibootmgr, as in:efibootmgr -c -d /dev/sda -p 1 -l '\EFI\ubuntu\shimx64.efi' -L "Ubuntu"Change-d /dev/sdato point to your whole-disk device and-c 1to specify the partition number. (In fact,/dev/sdaand1are the defaults, so you really need these only if your ESP is not/dev/sda1.)