Install ROSA on EFI/UEFI system

From Rosalab Wiki
Revision as of 09:44, 31 August 2013 by Akdengi (Talk | contribs) (Install on system with preinstalled Windows 8 and disabled SecureBoot)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Install on system with preinstalled Windows 8 and disabled SecureBoot

1. If you had a systemd with preinstalled Windows 8 EFI partition already presented on disk . You need only run ROSA in Live mode as UEFI (go to you BIOS and run custom boot) and then execute install system in normal mode with install GRUB to /dev/sda. Then you need find you EFI partition. Execute this command (all command need run from root):

blkid  | grep EFI

output will be next

/dev/sda1: LABEL="BIOS_GRUB" UUID="6206-DF5F" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="03059cf0-2a7a-43bd-88b6-112418ad1baa"

So our partition is /dev/sda1. Mount it for future work:

mount /dev/sda1 /boot/efi

2. Run install EFI GRUB2:

modprobe dm-mod
grub2-efi-install --recheck --boot-directory=/boot/efi/EFI/

If all been OK, you will see output like "Install complete. No error".

3. Mount partition with preinstalled system (in my situatain there is /dev/sda6. This is usually the first partition in output for

blkid | grep ext4

):

mount /dev/sda6 /mnt

and copy grub.cfg

cp /mnt/boot/grub2/grub.cfg /boot/efi/EFI/grub2/

4. Add EFI string to BIOS (may be efibootmgr was not installed in system. In that situation will enable network, run drakrpm-edit-media, add media and install efibootmgr with command

urpmi efibootmgr

):

modprobe efivars
efibootmgr --create --gpt --disk /dev/sda1 --part 1 --write-signature --label "ROSA EFI" --loader "\\EFI\\grub2\\grub.efi"

4. Check adding

efibootmgr -v

If new boot string not appeared in BIOS or after reboot it disappear, you will need add it to BIOS manually. For this create new boot string ROSA EFI (for most BIOS in section BOOT) and setup path to efi bootloader:

\EFI\grub2\grub.efi

If you will want use grub as default, up it string on a top of boot priority.

On some system after that will be run Windows restore, so for first time save BIOS change (not save&exit) and run ROSA EFI for check.

6. Then we need generate new grub.cfg with support load Windows EFI. First update grub from test repo:

urpmi.addmedia efi_test http://abf-downloads.rosalinux.ru/akdengi_personal/repository/rosa2012.1/i586/efi_test/release

or for 64 bit

urpmi.addmedia efi_test http://abf-downloads.rosalinux.ru/akdengi_personal/repository/rosa2012.1/x86_64/efi_test/release

and update

urpmi grub2

Then generate new grub.cfg

update-grub2

After reboot you will possible run Windows 7/8 from EFI partition.