Windows Installation with EFI
In MBR disks with legacy boot enabled OS installs bootloader on first 446 bytes of active primary partition. In case of EFI files required to boot are put on EFI partition. EFI bootloader applications are EFI files which should properly be put in System's EFI partition.
As for Windows installations Windows automatically detects whether the system is using EFI or legacy and installs accordingly. Usually there is also an option in modern mainboards BIOS to enable/disable EFI boot. When it is enabled for GPT disks Windows will install EFI bootloader instead of legacy bootloader which uses mbr.
When your hard-disk size is 2 TB or more GPT is best for you. Actually legacy mbr disks are getting out-dated. The future is GPT which has advantages of creating numerous primary partitions and other recovery flexibility. The reason I choose GPT is simply for hobby.
Convert MBR disk to GPT disk
You can use an existing Windows or use the command prompt of recovery tool of Windows 7/8 Installation DVD to follow the procedure. You have to start command prompt as administrator if you run from existing Windows and then apply 'diskpart' command. If you are running from recovery console you only to run diskpart
1
2
3
4
5
6
C:\Windows\system32>diskpart
Microsoft DiskPart version 6.2.9200
Copyright (C) 1999-2012 Microsoft Corporation.
On computer: Matrix-PC
On disk-part prompt list your disks and select the disk that you want to convert to GPT:
1
2
3
4
5
6
7
8
9
10
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 465 GB 3072 KB
Disk 1 Online 465 GB 15 MB
DISKPART> select disk 1
Disk 1 is now the selected disk.
Run clean command to delete all partitions, Be sure to backup data from the hard-disk before proceeding with this command.
1
DISKPART> clean
This should wipe out all partitions.
Now run convert
1
DISKPART> convert gpt
Where 'convert gpt' command converts a disk layout to GPT 'convert mbr' converts to mbr. Before proceeding with installation of Windows or other OS we need to create the EFI and MSR partitions. Following commands perform this,
1
DISKPART> create partition efi size=112
which creates an EFI partition of 112 MB. To format the partition,
1
DISKPART> format fs=fat32 quick
the efi partition is formatted used fat32 filesystem. EFI requires fat or fat32 filesystem. We also need to create a microsoft reserved partition which can be of size 50 MB
1
DISKPART> create partition msr size=50
Now let's go ahead and create a primary partition where Windows will be installed.
1
DISKPART> create partition primary size=102400
It creates a partition with size 100 GB. Let's mark it as active partition.
1
DISKPART> active
The format operation is optional, which can be done with following command,
1
DISKPART> format fs=ntfs label="WinOS" quick
Now we can go ahead with Windows installation. During installation of Windows when partition selection screen appears we have to select the partition of 100 GB for installation. Window will automatically put its efi bootloader files inside EFI partition.
Installation of Fedora 18 in GPT disks with EFI boot enabled (dual boot with Windows)
Fedora 18, 17, 16 releases has by default EFI support. I am not sure about the earlier releases than 16 about EFI support as I haven't tested. If you are creating a bootable USB stick using livecd-tools be sure to add these options: "--efi --format --msdos --reset-mbr". Otherwise EFI support will not be available with installation from bootable usb.
Installation procedure for Fedora 18 with EFI boot is same to regular installations except the boot partition selection. During partition selection after selecting the root partition change the mount point of EFI partition that you have created earlier with "/boot/efi"
Rest of the parts proceed with the installation in regular way. After installation is complete Fedora will be listed on EFI boot managers. Usually, Windows is boot by osbootmgr, Fedora is named as Fedora. Only problem is that I have to manually select Fedora each time otherwise Windows gets booted by default.
0 nhận xét:
Đăng nhận xét