Integrating Parted Magic 2.2 in UBCD
Posted: Sat May 24, 2008 7:43 am
Tutorial for Parted Magic 2.2
After you have downloaded the Parted Magic ISO image, extract its content to the harddisk (assume "c:\pmagic"). Also extract the UBCD ISO image to the harddisk (assume "c:\ubcd") if you haven't done so.
"c:\pmagic" should have the following files/folders:
Copy the pmagic folder to your ubcd folder:
Copy the contents of "c:\pmagic\pmagic\" folder to "c:\ubcd\pmagic\".
Rename the isolinux.cfg from Parted Magic to pmagic.cfg and place it in "c:\ubcd\custom\".
Edit "c:\ubcd\custom\pmagic.cfg" with a text editor:
Replace all entries of "livecd" with "multiboot" in the pmagic.cfg file.
Example:
Original:
Change to:
You can change your keyboard map for Parted Magic also in this config file.
Look at the file "c:\ubcd\pmagic\message2.txt" for all possible keyboard layouts. Change "keymap=us" to "keymap=azerty" for example.
Edit "c:\ubcd\custom\custom.cfg" with a text editor:
The CONFIG command loads the isolinux config file for Parted Magic, with all options as the normal Parted Magic cd, but this 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\isolinux\".
- Copy "c:\syslinux\com32\menu\menu.c32" to "c:\ubcd\isolinux\"
- Copy "c:\syslinux\com32\modules\chain.c32" to "c:\ubcd\isolinux\" (not necessary)
- Copy "c:\syslinux\memdisk\memdisk" to "c:\ubcd\isolinux\" (not necessary)
To update syslinux for the bootable USB key
- Copy "c:\syslinux\core\ldlinux.sys" to "c:\ubcd\syslinux\".
- Copy "c:\syslinux\mbr\mbr.bin" and "c:\syslinux\ldloader.bss" to "c:\ubcd\tools\ubcd2usb\".
- Copy "c:\syslinux\com32\menu\menu.c32" to "c:\ubcd\syslinux\"
- Copy "c:\syslinux\com32\modules\chain.c32" to "c:\ubcd\syslinux\" (not necessary)
- Copy "c:\syslinux\memdisk\memdisk" to "c:\ubcd\syslinux\" (not necessary)
Delete unnecessary files:
You can delete the following files in "c:\ubcd\pmagic\"
Remaster the iso
If you don't know how to do it, see viewtopic.php?t=1343.
After you have downloaded the Parted Magic ISO image, extract its content to the harddisk (assume "c:\pmagic"). Also extract the UBCD ISO image to the harddisk (assume "c:\ubcd") if you haven't done so.
"c:\pmagic" should have the following files/folders:
Code: Select all
pmagic\
isolinux.cfg
sample_pxelinux.cfg
syslinux.cfg
Copy the contents of "c:\pmagic\pmagic\" folder to "c:\ubcd\pmagic\".
Rename the isolinux.cfg from Parted Magic to pmagic.cfg and place it in "c:\ubcd\custom\".
Edit "c:\ubcd\custom\pmagic.cfg" with a text editor:
Replace all entries of "livecd" with "multiboot" in the pmagic.cfg file.
Example:
Original:
Code: Select all
LABEL normal
KERNEL /pmagic/bzImage
APPEND noapic initrd=/pmagic/initrd root=/dev/ram0 init=/linuxrc ramdisk_size=200000 pmodules=/pmagic/pmodules squashfs=/pmagic/pmagic keymap=us livecd vga=791 quiet toram
Code: Select all
LABEL normal
KERNEL /pmagic/bzImage
APPEND noapic initrd=/pmagic/initrd root=/dev/ram0 init=/linuxrc ramdisk_size=200000 pmodules=/pmagic/pmodules squashfs=/pmagic/pmagic keymap=us multiboot vga=791 quiet toram
Look at the file "c:\ubcd\pmagic\message2.txt" for all possible keyboard layouts. Change "keymap=us" to "keymap=azerty" for example.
Edit "c:\ubcd\custom\custom.cfg" with a text editor:
Code: Select all
MENU INCLUDE /menus/defaults.cfg
LABEL back
MENU LABEL ..
KERNEL menu.c32
APPEND /menus/main.cfg
LABEL pmagic
MENU LABEL Pmagic v2.2
CONFIG /custom/pmagic.cfg
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\isolinux\".
- Copy "c:\syslinux\com32\menu\menu.c32" to "c:\ubcd\isolinux\"
- Copy "c:\syslinux\com32\modules\chain.c32" to "c:\ubcd\isolinux\" (not necessary)
- Copy "c:\syslinux\memdisk\memdisk" to "c:\ubcd\isolinux\" (not necessary)
To update syslinux for the bootable USB key
- Copy "c:\syslinux\core\ldlinux.sys" to "c:\ubcd\syslinux\".
- Copy "c:\syslinux\mbr\mbr.bin" and "c:\syslinux\ldloader.bss" to "c:\ubcd\tools\ubcd2usb\".
- Copy "c:\syslinux\com32\menu\menu.c32" to "c:\ubcd\syslinux\"
- Copy "c:\syslinux\com32\modules\chain.c32" to "c:\ubcd\syslinux\" (not necessary)
- Copy "c:\syslinux\memdisk\memdisk" to "c:\ubcd\syslinux\" (not necessary)
Delete unnecessary files:
You can delete the following files in "c:\ubcd\pmagic\"
Code: Select all
boot.cat (boot catalog file needed for the iso image, but when you remaster the iso an updated boot catalog will be formed.)
isolinux.bin (already included in ubcd)
If you don't know how to do it, see viewtopic.php?t=1343.