Page 1 of 1

How to add HCi Memtest x86 and x64?

Posted: Wed Jul 28, 2010 10:36 pm
by IsLNdbOi
I have HCi Memtest Deluxe x86 and x64. Both come in their own ISO files.

The x86 version's ISO file is structured like this:

MemTestDlx4.0a 32 bit.iso

Code: Select all

 - chatty.bat
 - manual.html
 - readme.txt
 - This is the deluxe MemTest CD.txt
 - memTestPro.exe
 - memTestPro.zip
     (inside this zip file)
     - chatty.bat
     - manual.html
     - memTestPro.exe
     - readme.txt
================

The x64 version's ISO file is structured like this:

MemTest 4.0r1 64 bit.iso

Code: Select all

 - BOOT (Folder)
    - ISOLINUX (Folder)
    - BZIMAGE. (File type just says "File")
    - INITRD.GZ
        (inside this GZ file)
        - initrd (File type just says "File")
================================================================================

Anyone know how to add both ISOs to UBCDv5?

Re: How to add HCi Memtest x86 and x64?

Posted: Thu Jul 29, 2010 2:14 am
by Icecube
Any link to the actual ISO files or website?

The "MemTest 4.0r1 64 bit.iso" should work with something like this:
gzip the iso with 7-zip (not necessary, but may save some space)
Place the iso (gzipped or not) in /ubcd/images/ (choose a name, e.g.: memtest4.0r1_64.iso)
in /ubcd/custom/custom.cfg:

Code: Select all

LABEL memtest_40r1_64bit
MENU LABEL MemTest 4.0r1 64 bit
LINUX /boot/syslinux/memdisk
INITRD /ubcd/images/memtest4.0r1_64.iso
APPEND iso
Looking at the filenames inside "MemTestDlx4.0a 32 bit.iso", it doesn't seem to be a bootable ISO.
Maybe it uses floppy emulation and is the floppy image hidden.
Open the iso with 7-zip and see if you see a folder [BOOT]. If it is there, tell me the filename.

Re: How to add HCi Memtest x86 and x64?

Posted: Thu Jul 29, 2010 2:34 am
by IsLNdbOi
Ok, installed 7-Zip and opened the 32-bit ISO. Found this folder in it:
[BOOT]

inside the [BOOT] folder is:
Bootable_1.44M.img

Re: How to add HCi Memtest x86 and x64?

Posted: Thu Jul 29, 2010 2:47 am
by Icecube
It uses floppy emulation (and it has hidden the floppy image file on the ISO):

Code: Select all

LABEL memtest_40a_32bit
MENU LABEL MemTestDlx4.0a 32 bit
LINUX /boot/syslinux/memdisk
INITRD /ubcd/images/memtest_40a_32.iso
APPEND iso raw
Maybe 'raw' isn't needed (depends on what it inside the floppy image).

You also can extract the floppy image file [BOOT]/Bootable_1.44M.img, gzip it an place it in /ubcd/images/memtest_40_32bit.img.gz.

Code: Select all

LABEL memtest_40a_32bit_floppy
MENU LABEL MemTestDlx4.0a 32 bit (floppy)
LINUX /boot/syslinux/memdisk
INITRD /ubcd/images/memtest_40_32bit.img.gz
APPEND raw

Re: How to add HCi Memtest x86 and x64?

Posted: Thu Jul 29, 2010 2:55 am
by IsLNdbOi
Do I need to GZip the Bootable_1.44M.img file as well?

Inside the Bootable_1.44M.img:

Code: Select all

XEOS (Folder)
IBMBIO.COM
IBMDOS.COM
COMMAND.COM
AUTOEXEC.BAT
CONFIG.SYS

   - Inside the XEOS folder:
      - mem (Folder)
      - ANSI.SYS
      - MEMTEST.EXE
      - MODE.COM
      - CHOICE.COM
      - loadlin.exe
      - bzimage (no extension)
      - start.bat
      - initrd.gz

         - Inside the mem folder:
           - CWSDPMI.EXE

         - Inside initrd.gz:
           - initrd (no extension)

Re: How to add HCi Memtest x86 and x64?

Posted: Thu Jul 29, 2010 3:29 am
by Icecube
No, you don't "need" to gzip the floppy image, but it will boot faster if you do so (a smaller file needs to be read from the CD/USB/hard drive).

The floppy image will finally boot a linux kernel (bzImage) and initrd (initrd.gz) with the loadlin.exe (= load linux from a dos environment) program.

Re: How to add HCi Memtest x86 and x64?

Posted: Thu Jul 29, 2010 4:12 am
by IsLNdbOi
Icecube wrote:It uses floppy emulation (and it has hidden the floppy image file on the ISO):

Code: Select all

LABEL memtest_40a_32bit
MENU LABEL MemTestDlx4.0a 32 bit
LINUX /boot/syslinux/memdisk
INITRD /ubcd/images/memtest_40a_32.iso
APPEND iso raw
Maybe 'raw' isn't needed (depends on what it inside the floppy image).

You also can extract the floppy image file [BOOT]/Bootable_1.44M.img, gzip it an place it in /ubcd/images/memtest_40_32bit.img.gz.

Code: Select all

LABEL memtest_40a_32bit_floppy
MENU LABEL MemTestDlx4.0a 32 bit (floppy)
LINUX /boot/syslinux/memdisk
INITRD /ubcd/images/memtest_40_32bit.img.gz
APPEND raw
So, seeing what's in the floppy image, is the "raw" still needed?

Re: How to add HCi Memtest x86 and x64?

Posted: Thu Jul 29, 2010 5:31 am
by Icecube
IsLNdbOi wrote:So, seeing what's in the floppy image, is the "raw" still needed?
I think it isn't needed in this case.
Only some PCs need the 'raw' parameter in some cases.
For example, my PC will show Invalid Opcodes messages when I boot the UBCD FreeDOS image without 'raw':
viewtopic.php?f=7&t=1845

I only need 'raw' when I boot DOS with some memory managers.

I don't see any memory manager used in your floppy image, so you won't need to add 'raw'.

Re: How to add HCi Memtest x86 and x64?

Posted: Fri Jul 30, 2010 3:07 am
by IsLNdbOi
Wait, so the only thing I need from "MemTestDlx4.0a 32 bit.iso" is that hidden "[BOOT]" folder? I don't need anything else from the "MemTestDlx4.0a 32 bit.iso" file?

Or do I need to extract EVERYTHING from the "MemTestDlx4.0a 32 bit.iso" (including the [BOOT] folder) and use 7-Zip to put everything into one gzip file?

Re: How to add HCi Memtest x86 and x64?

Posted: Fri Jul 30, 2010 4:50 am
by Icecube
You only need this file from the ISO: [BOOT]/Bootable_1.44M.img, the other files in the ISO aren't used when you boot the ISO.
But you can boot the whole ISO too, if you don't want to extract the file from the ISO.

Re: How to add HCi Memtest x86 and x64?

Posted: Sat Jul 31, 2010 12:25 am
by IsLNdbOi
Ok, now I'm confused. If the only file I take from the 32-bit ISO is the "Bootable_1.44M.img" file, how will Memtest Deluxe run? Aren't all of the other files in the ISO the actual Memtest Deluxe program?

So, to get the 64-bit ISO to work, I will:
- gzip "MemTest_v4.0r1_x64.iso"
- add the gzip-ed "MemTest_v4.0r1_x64.iso" to the /ubcd/images directory

- Edit the custom.cfg file by adding:

Code: Select all

    LABEL MemTest_v4.0r1_x64
    MENU LABEL MemTest v4.0r1 x64
    LINUX /boot/syslinux/memdisk
    INITRD /ubcd/images/MemTest_v4.0r1_x64.iso
    APPEND iso
For the 32-bit ISO to work, I will:
- extract ONLY the "Bootable_1.44M.img" file from the hidden [BOOT] folder in the 32-bit ISO
- gzip the "Bootable_1.44.img" file
- add the gzip-ed "Bootable_1.44.img" file to /ubcd/images directory

- Edit the custom.cfg file by adding:

Code: Select all

    LABEL MemTest_Deluxe_v4.0a_x86
    MENU LABEL MemTest Deluxe v4.0a x86
    LINUX /boot/syslinux/memdisk
    INITRD /ubcd/images/MemTest_Deluxe_v4.0a_x86.img.gz
    APPEND raw

Does that all look right? Please correct me where you see errors.

Thanks!

Re: How to add HCi Memtest x86 and x64?

Posted: Sat Jul 31, 2010 12:29 am
by Icecube
It looks good.
You only need to see that the INITRD line matches a real filename.

You can test if a virtual machine (VirtualBox, Qemu, VMware, ...) to see if your modifications work like expected.
Ok, now I'm confused. If the only file I take from the 32-bit ISO is the "Bootable_1.44M.img" file, how will Memtest Deluxe run? Aren't all of the other files in the ISO the actual Memtest Deluxe program?
The files you see in the iso are Windows executables. When you boot the 32-bit ISO, the Windows executables aren't executed at all. It will boot the hidden floppy image, which contains IBMDOS as OS. IBMDOS will finally execute loadlin.exe (= Load Linux from dos environment). loadlin.exe will boot the Linux kernel (bzImage) and initrd (initrd.gz).
Floppy image inside 32-bit iso:

Code: Select all

XEOS (Folder)
IBMBIO.COM ==> IBMDOS
IBMDOS.COM ==> IBMDOS
COMMAND.COM
AUTOEXEC.BAT
CONFIG.SYS

   - Inside the XEOS folder:
      - mem (Folder)
      - ANSI.SYS
      - MEMTEST.EXE
      - MODE.COM
      - CHOICE.COM
      - loadlin.exe ==> Boot Linux kernel from DOS
      - bzimage (no extension) ==> Linux kernel
      - start.bat
      - initrd.gz ==> initrd used together with the linux kernel

         - Inside the mem folder:
           - CWSDPMI.EXE
64-bit iso:

Code: Select all

- BOOT (Folder)
    - ISOLINUX (Folder)
    - BZIMAGE. (File type just says "File") ==> Linux kernel (booted directly from ISOLINUX bootloader)
    - INITRD.GZ ==> initrd used together with linux kernel
So finally both ISO's will boot a linux kernel (bzImage) and initrd (initrd.gz).
The 32-bit iso will first run IBMDOS (probably for determining which parameters to pass to the linux kernel based on the PC configuration). While the 64-bit iso will just boot directly from the ISOLINUX bootloader.

If you "really" want, you can extract only bzImage and initrd.gz from the floppy image of the 32-bit iso and boot Memtest Deluxe with only these files. You only need to extract the parameters which are passed to the linux kernel from the dos batch files.

I don't have the actual ISO's, so I am just basing all this on the filenames inside the ISO's.

Re: How to add HCi Memtest x86 and x64?

Posted: Sat Jul 31, 2010 12:32 am
by IsLNdbOi
Can I email or PM the ISOs to you so you can check?

Thanks again!

Re: How to add HCi Memtest x86 and x64?

Posted: Sat Jul 31, 2010 12:36 am
by Icecube
IsLNdbOi wrote:Can I email or PM the ISOs to you so you can check?
You can PM me, but I am pretty sure it works like I said.

Get a virtual machine (VirtualBox, ...) and attach the Bootable_1.44M.img as floppy drive and set the boot order to floppy as first item. You will see that it will boot.

Re: How to add HCi Memtest x86 and x64?

Posted: Sat Jul 31, 2010 1:11 am
by IsLNdbOi
Icecube, I've PM'd you a download link for the file. Thanks again!

Oh, one thing. When I try to extract "Bootable_1.44M.img" with 7-zip, I get this message:

Data error in "XEOS/bzImage". File is broken.



The file is there in the folder I extracted to, but the size is 0KB and when I open it with notepad, it's completely empty.

Re: How to add HCi Memtest x86 and x64?

Posted: Sat Jul 31, 2010 8:52 am
by IsLNdbOi
If this bzImage file is becoming corrupt when trying to extract it with 7-zip, does that mean it really is corrupt or that 7-zip is somehow corrupting it during extraction?

I tried extracting it with MagicISO and there weren't any issues using that program to extract it.

Also, when extracting with 7-zip the file was 0KB and blank when opened with notepad. When extracted with MagicISO it is 511KB and is definitely not blank when opened w/ notepad.

Re: How to add HCi Memtest x86 and x64?

Posted: Sat Jul 31, 2010 8:59 am
by Icecube
It is very likely a bug in the handling of FAT partitions in 7-zip.
I can extract the file with mcopy of mtools just fine.

Re: How to add HCi Memtest x86 and x64?

Posted: Sat Jul 31, 2010 11:17 pm
by IsLNdbOi
Ok, so this is what I've done:
- extract ONLY the "Bootable_1.44M.img" file from the hidden [BOOT] folder in the 32-bit ISO
- gzip the "Bootable_1.44.img" file
- rename the gzip-ed "Bootable_1.44.img" file to "MemTest_Deluxe_v4.0a_x86.img.gz"
- add the gzip-ed "MemTest_Deluxe_v4.0a_x86.img.gz" to /ubcd/images directory

- Edit the custom.cfg file by adding:

Code: Select all

    LABEL MemTest_Deluxe_v4.0a_x86
    MENU LABEL MemTest Deluxe v4.0a x86
    LINUX /boot/syslinux/memdisk
    INITRD /ubcd/images/MemTest_Deluxe_v4.0a_x86.img.gz
    APPEND raw
==========

- gzip "MemTest_v4.0r1_x64.iso"
- resulting file is: "MemTest_4.0r1_x64.iso.gz"
- add the gzip-ed "MemTest_4.0r1_x64.iso.gz" to the /ubcd/images directory

- Edit the custom.cfg file by adding:

Code: Select all

    LABEL MemTest_v4.0r1_x64
    MENU LABEL MemTest v4.0r1 x64
    LINUX /boot/syslinux/memdisk
    INITRD /ubcd/images/MemTest_v4.0r1_x64.iso
    APPEND iso

===============================================================

Burned the CD, tried booting from it and got this:

Loading Operating System...

ISOLINUX 3.86 2010-04-01 ETCDisolinux:
Image checksum error, sorry...

Boot failed: press a key to retry...

Re: How to add HCi Memtest x86 and x64?

Posted: Sun Aug 01, 2010 12:55 am
by Icecube
IsLNdbOi wrote:O

Burned the CD, tried booting from it and got this:

Loading Operating System...

ISOLINUX 3.86 2010-04-01 ETCDisolinux:
Image checksum error, sorry...

Boot failed: press a key to retry...
Never use a ISO editor (ISOMagic, ...) to edit a bootable ISO image.
Recreate the iso with ubcd2iso (uses mkisofs to recreate the ISO from scratch).

See for instructions: http://wiki.ultimatebootcd.com/index.ph ... emastering

Test the new created ISO in a virtual machine, before burning the ISO to CD-R(W).

Re: How to add HCi Memtest x86 and x64?

Posted: Sun Aug 01, 2010 8:03 am
by IsLNdbOi
That was the first time I had ever received that error and I've always used UltraISO to edit UBCD and save changes I've made.