2012JUL27:
I am correcting / updating / improving this tutorial so:
_ to reflect suggestions or corrections from the following posts;
_ to make it easier to read and follow.
A history of the changes made can be read at the end of this post.
[/EDIT]
This procedure will customize UBCD 5.1.1 with an updated version of PartedMagic (for versions of PartedMagic newer than v.6.7.).
This tutorial is simple to follow, and you should finish sooner than you think

Alternatively, you can use some multiboot tool to merge the original UBCD511*.ISO with a new updated PartedMagic version.
If you already remastered (edited) this same UBCD511*.ISO image using this same tutorial before, then some of the steps can be skipped now (ie. "One time steps").
In this procedure:
<ubcd511_extracted> : is the folder where UBCD511*.ISO is extracted;
<pmagic_extracted> : is the folder where PMAGIC*.ISO is extracted.
01_ Extract ubcd511*.iso.
02_ Extract pmagic*.iso.
03_ (One time step)
Delete the old folder (if exists)
Code: Select all
<ubcd511_extracted>\pmagic\pmagic\
Note: The old path in the original UBCD 5.1.1 had a "double" "/pmagic" path. We are now deleting the second "/pmagic/" subfolder and its contents, but not the first "/pmagic/" (parent) folder.
04_ Delete the old "pmagic*.sqfs" (either lower case or upper case) file from
Code: Select all
<ubcd511_extracted>\pmagic\pmodules\
Code: Select all
<pmagic_extracted>\pmagic\
Code: Select all
<ubcd511_extracted>\pmagic\
Note2: Be sure that you have moved the entire content of the folder, including subfolders and their files (the complete path tree under the parent folder).
Note3: Some new file names of PartedMagic are different from the old ones. For example, the new SQFS file(s) (always) use upper case letters and their new file name "format" is as:
Code: Select all
PMAGIC_<yyyy_MM_dd>.SQFS
Code: Select all
PMAGIC_2011_12_30.SQFS
Note5: Do not edit the new file names(for example, leave the SQFS file with upper case), or PartedMagic may not boot correctly.
06_ Move (Merge) the content from
Code: Select all
<pmagic_extracted>\boot\
Code: Select all
<ubcd511_extracted>\pmagic\boot\
07_ Open (when using Windows OS, preferably use Wordpad for this step)
Code: Select all
<ubcd511_extracted>\pmagic\boot\syslinux\syslinux.cfg
Code: Select all
boot/
Code: Select all
pmagic/boot/
Note1: By using the "replace all" function, this entire step only takes a few seconds.
Note2: Be very careful with the above text replacement. If you happen to repeat the same replacement (or a similar one) in the same file, the text to be replaced could still be found (again), hence leaving you with incorrect paths.
08_ (Optional)
For completeness, you may want to move also the script file
Code: Select all
<pmagic_extracted>\mkgriso
Code: Select all
<ubcd511_extracted>\pmagic\mkgriso
Partial resume: all the original PMAGIC*.ISO content was just been moved (merged) into the "/pmagic/" subfolder of UBCD. You can now delete the old folder "<pmagic_extracted>" where you extracted the original PMAGIC*.ISO.
09_ (One time step)
In the following files:
Code: Select all
<ubcd511_extracted>\ubcd\menus\syslinux\main.cfg
<ubcd511_extracted>\ubcd\menus\syslinux\hdd\cloning.cfg
<ubcd511_extracted>\ubcd\menus\syslinux\hdd\devmgmt.cfg
<ubcd511_extracted>\ubcd\menus\syslinux\hdd\partmgmt.cfg
<ubcd511_extracted>\ubcd\menus\syslinux\hdd\recovery.cfg
Code: Select all
CONFIG /pmagic/boot/syslinux/syslinux.cfg
Code: Select all
CONFIG /pmagic/boot/syslinux/syslinux.cfg /pmagic/boot/syslinux/
10_ (Optional)
You can edit the help text entries for (software included in) PartedMagic at
Code: Select all
<ubcd511_extracted>\ubcd\menus\syslinux\main.cfg
<ubcd511_extracted>\ubcd\menus\syslinux\hdd\cloning.cfg
<ubcd511_extracted>\ubcd\menus\syslinux\hdd\devmgmt.cfg
<ubcd511_extracted>\ubcd\menus\syslinux\hdd\partmgmt.cfg
<ubcd511_extracted>\ubcd\menus\syslinux\hdd\recovery.cfg
11_ If either step #09 and/or #10 were performed, then SAVE and CLOSE the respective *.cfg file(s).
12_ (One time step)
In the file:
Code: Select all
<ubcd511_extracted>\ubcd\menus\syslinux\cpu.cfg
Code: Select all
pmagic/pmagic
Code: Select all
pmagic
Additional comments:
The syslinux (isolinux) menu was changed in this tutorial. I have not checked whether the alternative grub4dos menu (or anything related to grub4dos in UBCD) needs changes too, as UBCD 5.1.1. no longer supports booting PartedMagic using grub4dos.
Since the path for the "/pmodules/" folder has NOT changed, the scripts to update the antivirus databases should work as usual in regards to such path.
Now you can run the "ubcd2iso" (or "ubcd2usb") script and you should have a customized UBCD with a new updated PartedMagic version (newer than v6.7.).
Please note that the method described here in this tutorial is not the only way to accomplish the update of PartedMagic in your customized UBCD. This tutorial preserves all "pmagic" related files inside one unique folder (as the original UBCD511.ISO does), while simplifies (just by a little bit) the original folder structure (making it just a little bit "more compatible" with some auxiliary multiboot tools).
Since the PartedMagic project is independent and more frequently updated than UBCD, there might be additional corrections, changes and/or improvements in the future.
Please report any problems you find in this tutorial.
_________________________________
[EDIT][TUTORIAL'S CHANGES HISTORY]
2012JUL27:
1_ Step 07_ : Change the "text to be replaced" and the "new text to replace the previous one" so to include other menu entries of PartedMagic (in its "Extras" submenu, for example).
2_ Step 08_ (Optional) : Minor text improvement.
3_ Step 09_ (One time step) : Add additional files on which to perform the same text replacement.
4_ Step 10_ (Optional) : Add additional files on which to perform the same type of changes.
5_ Step 11_ : Re-word in accordance to other changes.
6_ Step 12_ (One time step) : Delete unnecessary file path; and re-word for easier reading.
7_ In the Additional comments: section : Minor text improvements.
[/EDIT][/TUTORIAL'S CHANGES HISTORY]