Sunday, 19 June 2022

Fix for the KINGS_OVERKILL USB drive not booting to the AMD files on Partition 3

I have updated the previous article with instructions on how to boot to the AMD test files on Partition 3 of the KINGS_OVERKILL USB drive.

So after fixing the problems, you can Legacy and UEFI-boot to the AMD graphics RAM test programs as well as the two nVidia RTX test images.

Please refer to the previous article here.

Adding the AMD files to an E2B drive

It is possible to add an image of the AMD large (60GB) ext4 Partition 3 to an E2B USB drive as a .imgPTNREP3 file.

Please contact me if you want a download link for my 63GB TEST_AMD_GPU_PTN3.imgPTNREP3 file (split into 17 x 2GB 7Zip files).

The method I used to make a working image was as follows:

1. First ensure that the KINGS_OVERKILL USB drive will boot to Partition 3 correctly (Legacy and UEFI).

2. Use RMPrepUSB - Drive>File button to capture the whole of Partition 3 as a single file (a 60GB file!). Start P3, End P3, file start 0.

3. If your E2B USB drive is a large drive with 3 partitions, copy the image file you just made to E2B Partition 3 (NTFS) and name it something like TEST_AMD_GPU_PTN3.imgPTNREP3. As an alternative, you could just use Disk Genius to create a Primary Partition 3 on the E2B USB drive using the 3.pmf image file (not tested and you may have to fix up the fsck files as mentioned in the previous article!).

Here is the NTFS Partition 3 on my E2B USB drive (the large file must be defragmented - I used Defraggler for this)...


4. Now we will need to create a grub4dos .mnu file (for legacy booting from the E2B menu) and a .cfg grub2 boot file for agFM Legacy+UEFI booting. 

The E2B and agFM Menu files for TEST_AMD_GPU_PTN3.imgPTNREP3 are here. Copy them to a menu folder (e.g. \_ISO\MAINMENU) on the E2B USB drive - Partition 1.

\_ISO\MAINMENU\AMD_GPU.MNU

iftitle [if exist (hd0,2)/TEST_AMD_GPU_PTN3.IMGPTNREP3] SWITCH IN AMD GPU TEST TO PTN3
qrun.g4b (hd0,2)/TEST_AMD_GPU_PTN3.IMGPTNREP3
errorcheck off
boot
iftitle [if exist (hd0,2)/boot/vmlinuz-2.6.32-24-generic] RUN AMD GPU TEST (RX4xx/RX5xx/RXVEGA64/R7/R9)\nUse Type 0x83 when prompted
root (hd0,2)
kernel /boot/vmlinuz-2.6.32-24-generic root=UUID=6425f52d-e164-4004-a961-808a1a0afe88 ro single mem=512M quiet
initrd /boot/initrd.img-2.6.32-24-generic
boot
iftitle [if exist (hd0,2)/boot/vmlinuz-2.6.32-24-generic] REMOVE AMD GPU TEST\nRestores Partition 3\nType Y to restore partitions
(bd)/%grub%/RestoreMBR.g4b
chainloader (bd)/grldr
boot


The grub2  agFM .cfg file for agFM is below (for both Legacy and EFI). Note that if you omit the set gfxpayload=text line then you will not see the Linux console at all (grub2 - legacy boot).

\_ISO\MAINMENU\RUN AMD GPU TEST.cfg
# Run this menu entry if .imgptnREP3 has been switched in

if [ -e "(${grubfm_disk},3)/boot/vmlinuz-2.6.32-24-generic" ] ; then 
set root=${grubfm_disk},3
search --no-floppy --fs-uuid --set 6425f52d-e164-4004-a961-808a1a0afe88
# must be in text mode for legacy boot or no display!
set gfxpayload=text
if [ -e "(${grubfm_disk},3)/boot/vmlinuz-2.6.32-24-generic" ] ; then 
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=6425f52d-e164-4004-a961-808a1a0afe88 ro single mem=512M noefi quiet
#debug nomodeset ro  rootdelay=90 biosdevname=0 net.ifnames=0 consoleblank=0 nomodeset nokaslr 
initrd /boot/initrd.img-2.6.32-24-generic
boot
else
echo ERROR: UUID of Ptn 3 not found
read
fi
fi

menuentry "Back" {
grubfm "${grubfm_current_path}"
}
If prompted for a partition type number when switching in the image file, use 0x83.


After switching in the image file, you can then run it from the MAINMENU folder or use the 'Restore E2B Partitions' agFM option or 'REMOVE AMD GPU TEST' option in the E2B MAINMENU menu to restore the original E2B Partition 3 contents.




E2B MAINMENU (legacy)

agFM menu - MAINMENU folder (legacy\UEFI64)


If you have made the five-partition "easymats 005" USB drive (Google for it), you could follow a similar process using partitions 4 (ext 50GB) and 5 (NTFS 80GB) and make .imgPTNREP3 files from those partitions too.

easy2mats 0005 5-partition menu


No comments:

Post a Comment