SEO, BASH, PHP et plus si affinités

Adding UEFI to pimp OS

Pour tous les lecteurs habituels, cet article sera rédigé en anglais et ne traitera pas de sujets habituels puisqu’il est destiné aux utilisateurs de pimp OS.

This post will tackle an issue for all users of pimp OS who are unable to boot when they enable the 4G feature into the BIOS (especially for MSI motherboard). My motherboard is a MSI B150 PC-MATE flashed with the latest BIOS (7971vCC). I’m using the current stable pimp-os release (pimp-2.1-rc3-amdgpu.zip ) on this post, so if you’re using a different version, please take a look at the refind.conf file (last section of this post).

What’s the problem and solution ?

The problem i’ve encountered is when i enabled the « Above 4G decoding » into the bios, Pimp doesn’t boot anymore.

After some researches, i found a post who retain my attention. When you enable this feature,  all devices must have 64 bits addresses, including HD so your drive should be GPT (*not necessary in our case) and boot should be UEFI.
So I decide to verify some stuff. I checked the pimpos img partitions and it appears that there’s no efi partition …

 

So it’s a good thing !! I’ve a track to exploit 😉 Let’s go !!

Mount and modify the second partition

For all screenshots and examples, i’ll use « /dev/sdd » disk. So adapt with your device (use fdisk -l).

The first step is to modify the second partition like this :

  1.  Write the image to your SSD/HDD (pimp os user guide section 2.2)
  2. Check the partitions with « sudo fdisk -l /dev/sdd »
  3. Change the second partition type and make it bootable
    1. sudo fdisk /dev/sdd
    2. t (change partition type)
    3. 2 (partition number)
    4. ef (partition type => ef correspond to efi)
    5. a (toggle a bootable flag)
    6. 2 (partition number)
    7. w (write changes)
  4. Mount and remove content on the second partition
    1. sudo mkdir /mnt/efi
    2. sudo mount /dev/sdd2 /mnt/efi
    3. sudo rm -rf /mn/efi/System\ Volume\ Information/

Patitions type before changes

Fdisk commands

Partitions after changes

Mount and remove Directory

 

Use rEFInd to enable EFI boot

In order to not modify all the disc, i decide to use rEFInd for adding EFI. If you want you can download the full version on the website, or just use my ready to use version for pimp 😉

If you use my version, just follow these few steps :

  1. sudo tar -xpzf /path/to/my/efi-pimp.tgz -C /mnt/efi
  2. cd
  3. sudo umount /mnt/efi
  4. sudo rm -rf /mnt/efi
  5. sync

Add EFI steps

And you’ve finished !!

Important things to check !!

First of all, check your device !! I’m using /dev/sdd and /dev/sdd2 (for second partition) on my post, but it could be /dev/sdb and /dev/sdb2 or another one.

And if the version of pimp-os is not the same as the one used in this article, take a look at the refind.conf file into the /mnt/efi/EFI/BOOT/ directory (after extracting my rEFInd configuration in section 2 on paragraph below) in order to use correct kernel image and initrd 😉 (you have to mount the first partition and check the filename in the /boot directory)

 

I hope that this article will help you. I know that’s a « technical » article, especially for non-linux user, but i think that melt will have a look at it and add EFI for future releases of Pimp OS 😉

 

Laisser une réponse

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Je suis un gros footer de merde !! - Powered by le Presse mot