How to add custom images

Try looking for help here if you are having problems with the Ultimate Boot CD.

Moderators: Icecube, StopSpazzing

Locked
Message
Author
Perplexer
Posts: 5
Joined: Wed Nov 19, 2008 8:20 pm

How to add custom images

#1 Post by Perplexer » Wed Nov 19, 2008 8:57 pm

I have a third party recovery bootable CD which I would like to incorporate into UBCD, if that is at all possible.

The recovery CD consists of these files:
dos\
bm.bin
bm_hide
bm_mbr
bm_stat
boot.catalog
cd.cfg
cd_plg.bmp
cd_plg.cfg
cd_plg.exe
dos.eng
dos.frn
dos.ger
dos.img
dos.itl
dos.jpn
dos.pls
dos.rus
dos.spn
initrd.gz
lilo.eng
lilo.frn
lilo.ger
lilo.itl
lilo.jap
lilo.rus
lilo.spn
memdisk
vmlinuzp

I opened UBCD.iso and copied all the dirs/files from the recovery CD into the /custom/recovery/ folder on the UBCD.iso. I then edited the file /custom/custom.cfg so it looks like this:

MENU INCLUDE /menus/defaults.cfg
LABEL back
MENU LABEL ..
KERNEL menu.c32
APPEND /menus/main.cfg
LABEL bootimg
MENU LABEL Your own boot image here
KERNEL memdisk
APPEND initrd=/custom/recovery/dos.img

I then burned the UBCD.iso and booted from it. I went into the custom menu and started the entry for the recovery CD but the recovery CD didn't boot correctly (it booted half way and then threw out an error). Can anyone tell me what I'm doing wrong ?

Thanks.

Perplexer
Posts: 5
Joined: Wed Nov 19, 2008 8:20 pm

#2 Post by Perplexer » Wed Nov 19, 2008 9:39 pm

Or how about this one:

I have a floppy diskette with Seagate SeaTools 2.07 which is newer than the version on UBCD. It contains these files:

AUTOEXEC.BAT
COMMAND.COM
CONFIG.SYS
HIMEM.EXE
KERNEL.SYS
RDISK.EXE
SEATOOLS.ZIP
SYS.COM
TDSK.EXE
unzip.exe

How do I go about adding this floppy to UBCD ?

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

Re: How to add custom images

#3 Post by Icecube » Thu Nov 20, 2008 4:54 am

Copy the files to a dos folder of the extracted UBCD path (e.g c:\ubcd-extract\ubcd\dos\).

Code: Select all

dos\
bm.bin
bm_hide
bm_mbr
bm_stat
boot.catalog ==> can be deleted
cd.cfg
cd_plg.bmp
cd_plg.cfg
cd_plg.exe
dos.eng
dos.frn
dos.ger
dos.img
dos.itl
dos.jpn
dos.pls
dos.rus
dos.spn
initrd.gz
lilo.eng
lilo.frn
lilo.ger
lilo.itl
lilo.jap
lilo.rus
lilo.spn
memdisk ==> can be deleted
vmlinuzp
The lilo files can probalby also deleted (for boot menu) But because I can't see the content of them I am not sure.

/custom/custom.cfg

Code: Select all

MENU INCLUDE /menus/defaults.cfg
LABEL back
	MENU LABEL ..
	KERNEL menu.c32
	APPEND /menus/main.cfg
LABEL bootimg
	MENU LABEL Your own boot image here
	CONFIG /dos/cd.cfg
The CONFIG command loads the config file for other CD, with all options as the normal , but it requires a new version of isolinux.
Download syslinux from http://www.kernel.org/pub/linux/utils/boot/syslinux/.

Extract the syslinux archive to "c:\syslinux\".

To update isolinux for the CD version
- Copy "c:\syslinux\core\isolinux.bin" to "c:\ubcd-extract\isolinux\".
- Copy "c:\syslinux\com32\menu\menu.c32" to "c:\ubcd-extract\isolinux\".
- Copy "c:\syslinux\com32\modules\chain.c32" to "c:\ubcd-extract\isolinux\"
- Copy "c:\syslinux\memdisk\memdisk" to "c:\ubcd-extract\isolinux\"

To update syslinux for the bootable USB key
- Copy "c:\syslinux\core\ldlinux.sys" to "c:\ubcd-extract\syslinux\".
- Copy "c:\syslinux\mbr\mbr.bin" and "c:\syslinux\ldloader.bss" to "c:\ubcd-extract\tools\ubcd2usb\".
- Copy "c:\syslinux\com32\menu\menu.c32" to "c:\ubcd-extract\syslinux\"
- Copy "c:\syslinux\com32\modules\chain.c32" to "c:\ubcd-extract\syslinux\"
- Copy "c:\syslinux\memdisk\memdisk" to "c:\ubcd-extract\syslinux\"

Make the new iso.
Test it first in a Virtual machine (VirtualBox, qemu, VMware, ...), before burning to see if it works.

Post also the content of the cd.cfg file.


For the Seagate Seatools:
Make a disk image of it, if you don't have the image anymore (name it seatools.img)
Compress it with 7zip or another archiver to gzip format.
Rename the compressed file toseatools.igz.

Delete /images/seatools.igz and place the new file here.

Update the section in /menus/hdd2.cfg.

Code: Select all

LABEL seatools
	MENU LABEL SeaTools for DOS V2.07 (Seagate/Maxtor)
	KERNEL memdisk
	APPEND initrd=/images/seatools.igz

Perplexer
Posts: 5
Joined: Wed Nov 19, 2008 8:20 pm

#4 Post by Perplexer » Thu Nov 20, 2008 11:06 am

Thank you very much. I went for Seatools first since it seemed easier. Worked beautifully. I noticed though that floppy image creating tools create the extension *.bif instead of *.img. I changed it to *.img and gzipped it and it worked nonetheless. I was just confused at the start.

I'll try the Recovery CD procedure later.

The cd.cfg from that disc looks like this:

Code: Select all

#WARNING!
#Not more than 7 of 10 languages simultaneously 
#allowed by current BM version!!!
#
#BM Plug-in section - always presents
begin section
    revnum=65
    method=8
    title="Plug-in"
    image="cd_plg.exe"
    initrd="cd_plg.bmp"
    lilo="cd_plg.cfg"
end section
# Paragon Linux (eng)
begin section
    revnum=66
    method=5
    os=11
    title="###NlenHlen"
    image="vmlinuzp"
    initrd="initrd.gz"
    lilo="lilo.eng"
end section
# PTS DOS (English)
begin section
    revnum=66
    method=5
    os=9
    title="###NdenHden"
    image="memdisk"
    initrd="dos.img"
    lilo="dos.eng"
end section
# PTS DOS (English, safe mode)
begin section
    revnum=66
    method=5
    os=9
    title="###NdseHdse"
    image="memdisk"
    initrd="dos.img"
end section

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

#5 Post by Icecube » Thu Nov 20, 2008 1:07 pm

My method won't work. I thought that the cfg file was for isolinux.
Can you post the contents of cd_plg.cfg and lilo.eng?

Or do you have a download link for this iso?

Perplexer
Posts: 5
Joined: Wed Nov 19, 2008 8:20 pm

#6 Post by Perplexer » Thu Nov 20, 2008 2:34 pm

Here are the files: http://css.setti.info/~perplexer/recovery/

The main problem I have understanding how this thing works is that I can't figure out the sequence of files being processes when booting, I don't know which files gets executed first when I boot from the CD. If I knew that I could probably slowly figure it out step by step as files get processed and executed. Is there a good guide somewhere ? I was reading BartPE's page but there's so much stuff there it's overwhelming.

Again, thanks for your efforts.

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

#7 Post by Icecube » Fri Nov 21, 2008 9:16 am

Can you upload the original iso also, so I can see how it looks when you boot it in an emulator.

Can you give a link to the site from which you have downloaded the image?

Perplexer
Posts: 5
Joined: Wed Nov 19, 2008 8:20 pm

#8 Post by Perplexer » Sun Nov 23, 2008 2:16 pm


Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

#9 Post by Icecube » Mon Nov 24, 2008 5:53 pm

When you boot the ISO in a virtual machine or the cd on a real PC, you see the following:
  • * Normal Mode (linux)
    * Safe Mode (dos)
    * Low-Graphics Safe Mode(dos)
    * Floppy disk
    * Hard disk 0 MBR
    * Find OSes on your hard disks
I got the linux part working:
You need only the initrd.gz and vmlinuzp file for it.
Copy them to c:\ubcd-extract\custom\paragon\.

Edit the c:\ubcd-extract\custom\custom.cfg config file:

Code: Select all

LABEL back
MENU LABEL ..
KERNEL menu.c32
APPEND /menus/main.cfg
LABEL paragon
MENU LABEL Paragon Partition Manager v9.0
KERNEL /custom/paragon/vmlinuzp
APPEND initrd=/custom/paragon/initrd.gz splash=silent vga=0x314 medialable=UBCD411
If it doesn't boot on certain PCs, you can add the noapic parmeter to the append line (press TAB when you want to edit the line on boot time).

Code: Select all

APPEND initrd=/custom/paragon/initrd.gz splash=silent vga=0x314 medialable=UBCD411 noapic
If the PC's for which you want to use it, have enough memory (128MB isn't enough to run a program, I think. 256MB should be enough), you only need the linux version.

For the dos part:
It doesn't work (only partly).

Copy the dos.img to c:\ubcd-extract\custom\paragon\.
Put the other files in c:\ubcd-extract\, except for dos.img, initrd.gz and vmlinuzp.

Code: Select all

LABEL paragon2
MENU LABEL Paragon Partition Manager v9.0 (Save Mode)
KERNEL memdisk
APPEND initrd=/custom/paragondos.img paragon_lang=en
It boots, but it says "Recovey media error".

The emulated floppy doesn't find the CD (memdisk emulates a floppy image).

In the autoexec.bat of dos.img there is a CDDRIVE variable, which is empty by default. I suspect that the CDDRIVE variable gets it value by the cd_plg.exe program.

I tried to make a superfloppy (which contains \dos and the files inside the dos.img), but it didn't boot.
You can try to make a large floppy image yourself (don't know if it will work) and add the following line in autoexec.bat (e.g.: after the 'doslang' line):

Code: Select all

set CDDRIVE=A:

Locked