Page 1 of 1

Integrating Parted Magic 2.2 in UBCD

Posted: Sat May 24, 2008 7:43 am
by Icecube
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:

Code: Select all

pmagic\
isolinux.cfg
sample_pxelinux.cfg
syslinux.cfg
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:

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
Change to:

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
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:

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
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\"

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)
Remaster the iso
If you don't know how to do it, see viewtopic.php?t=1343.

Posted: Sun May 25, 2008 6:37 am
by grayfox
Icecube
Can I replace the ubcd old version isolinux with the new version isolinux with no problem with all of the ubcd folders ?

Posted: Sun May 25, 2008 7:44 am
by Icecube
Yes, you have to replace the isolinux.bin file and the menu.c32 file, with the ones of the syslinux archive.

Thanks !

Posted: Mon May 26, 2008 12:09 am
by twe4k
Wow thanks a lot for the very fast reply !

Instructions were pretty clean and I had no problems following them even if most of this stuff is still new to me... It took me a damn while to make the bootable ISO itself... untill I realised there's a neat tool in /tool expressly for this task !

So now it's all working well, again, thanks a lot for taking your time to write this beautiful tutorial !

Confusing

Posted: Thu Sep 25, 2008 10:43 am
by Piyono
Icecube, your instructions call for me to extract the Parted Magic ISO to c:\pmagic, but inside that folder is *another* folder with the same name, so when you say
Copy the "pmagic" folder to "c:\ubcd\".
do you mean the one in the root of C: or the one inside of that?

Perhaps you could edit the instructions to be a little less ambiguous? Maybe make the extract folder "c:\parted" or something.

Anyway, which "pmagic" folder do I move into the ubcd folder, the one in the root of C: or the one inside of it?


Also, will this method work with PartedMagic 3?


Thanks,


Piyono

Posted: Thu Sep 25, 2008 11:59 am
by Icecube
I mean the pmagic folder inside c:\pmagic.
I have updated my post.

It should work with Parted Magic 3.0

if you are interested in UBCD + Parted Magic 3.0, download UBCD5 (beta 5). UBCD5 will have included Parted Magic by default.
Icecube wrote:Replace all entries of "livecd" with "multiboot" in the pmagic.cfg file.
This doesn't apply to Parted Magic 3.0. You only have to change livecd to liveusb if you want to boot it from an USB stick, if you want to boot it from a CD don't change livecd.
You can also make 2 entries in the custom.cfg

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 pmagiccd
   MENU LABEL Pmagic v3.0 (CD version)
   CONFIG /pmagic/isolinux.cfg
LABEL pmagicusb
   MENU LABEL Pmagic v3.0 (USB version)
   CONFIG /pmagic/syslinux.cfg 
You have to copy c:\pmagic\isolinux.cfg to c:\ubcd\pmagic\isolinux.cfg.
You have to copy c:\pmagic\syslinux.cfg to c:\ubcd\pmagic\syslinux.cfg.

Posted: Thu Sep 25, 2008 12:16 pm
by coin
It should work with Parted Magic 3.0

if you are interested in UBCD + Parted Magic 3.0, download UBCD5 (beta 5). UBCD5 will have included Parted Magic by default.
:arrow: Just as a a reminder, please recall from previous posts and from the Parted Magic main site http://partedmagic.com/wiki/PartedMagic.php that Parted Magic 3.0 requires at least 300MB of system RAM to operate.
Parted Magic 3.0 in UBCD5, then, is unlikely to run reliably (if at all) on PC systems of 256MB system RAM or less.
Persons wishing to run Parted Magic on such lower-end PC systems will obviously have to stick with UBCD4 and Parted Magic version 2.2

Posted: Thu Sep 25, 2008 12:58 pm
by Piyono
Hey, thanks for the quick reply, Icecube!
And thanks for the information.

Much appreciated.

Piyono

Posted: Fri Nov 28, 2008 2:12 am
by aen007
28Nov2008
Greetings.
I just successfully followed this guide to integrate PartedMagic 3.1 into UBCDos4.11.
I thought I'd post the following regarding my experience.
1) Regarding Copy "c:\syslinux\isolinux.bin" to "c:\ubcd\isolinux\"-
I have SysLinux 3.70 from this summer & downloaded 3.72 for this exercise.
I found isolinux.bin not in the SysLinux root but rather in the "core" subdirectory.
2) Regarding Copy "c:\syslinux\memdisk\memdisk" to "c:\ubcd\isolinux\" (not necessary) -
I found three different files named "memdisk" in the memdisk subdirectory.
I did not copy any of them "(not necessary)".
Thank you.
Regards,
AEN
Æ

Posted: Fri Nov 28, 2008 9:58 am
by Icecube
@aen007
I updated the tutorial for the location of the isolinux.bin file. I had changed it already in my other tutorials some months ago.

Their is only one memdisk file in the memdisk folder. But windows doesn't show extensions of some files by default (I always disable it in Explorer, because this is very annoying when you can't easily see the extension of a file).
The following files are the actual files in the memdisk folder:

Code: Select all

memdisk
memdisk.asm
memdisk.h

Posted: Fri Apr 03, 2009 6:53 am
by aen007
3Apr2009
Greetings.
I would like to integrate PM3.7 into UBCDos 4.11.
I have not found any other tutorials.
Icecube wrote:@aen007
I had changed it already in my other tutorials some months ago.
Could/Would someone reply/advise
regarding steps to take to integrate PM3.7 into UBCDos 4.11?
Thank you.
Regards,
AEN
Æ

Posted: Sat Apr 04, 2009 3:33 am
by aen007
4Apr2009
Greetings.
It seems PM has just released PM 4.0.
Although I used the above to integrate PM 3.1 into UBCD 4.11,
I have not been able to use the above to integrate PM 3.7 into UBCD 4.11.
The above comments on the PM minimum RAM requirement,
but VC has stated in the "gParted How To" thread
that PM 3.6 & above has a low memory option.
Given all the "WIP" with PM & UBCDos 5.0ß,
I hope someone will be able to reply/advise with an update
on the steps to integrate PM 3.7 or 4x into UBCD 4.11.
Thank you.
Regards,
AEN
Æ

Posted: Sat Apr 04, 2009 3:54 am
by Icecube
Why don't you use UBCD50b12, it has an already integrated Parted Magic 3.7?

Posted: Sat Apr 04, 2009 4:34 am
by aen007
4Apr2009
Greetings.
Thanks for the reply.
I have made comments in the "gParted How To" thread
and in the UBCD 5.0ß forum PM 3.6 thread
about gParted, PM, UBCDos & UBCD4W.
Those comments explain why I would like to continue to know
how to continue to integrate current PM releases into UBCD 4.11.
Given all the "WIP" with PM & UBCDos 5.0ß,
I hope someone will be able to reply/advise with an update
on the steps to integrate PM 3.7 or 4x into UBCD 4.11.
Thank you.
Regards,
AEN
Æ