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).

Just for interest sake - I used RMPrepUSB to make a working image as follows: I first ensured that the original large multipartition KINGS_OVERKILL USB drive would boot to Partition 3 correctly (Legacy and UEFI). Then I used 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.

How to add the AMD image file to your E2B USB drive

1. First create an E2B USB drive using a 200GB or larger USB drive. You should add agFM and Ventoy for Easy2Boot too. Use the custom gear-wheel button to make the E2B drive and be sure to create a large (100GB) NTFS partition 1, a 10+ GB FAT32 partition 2 and a large 100GB+ NTFS partition 3.

2. Copy the downloaded image file to E2B Partition 3 (NTFS) and name it something like TEST_AMD_GPU_PTN3.imgPTNREP3. 

3. Defragment the .imgptnrep3 file.

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 had already 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